diff --git a/module/VuFind/tests/unit-tests/src/VuFindTest/Cache/Storage/Adapter/NoCacheAdapterTest.php b/module/VuFind/tests/unit-tests/src/VuFindTest/Cache/Storage/Adapter/NoCacheAdapterTest.php index 8d516fc7749aa6bf1bfb0f501a274f0ab1bba297..0b9f9e8703834d4e1f8e3b1d90d0ea3406ff2e34 100644 --- a/module/VuFind/tests/unit-tests/src/VuFindTest/Cache/Storage/Adapter/NoCacheAdapterTest.php +++ b/module/VuFind/tests/unit-tests/src/VuFindTest/Cache/Storage/Adapter/NoCacheAdapterTest.php @@ -52,6 +52,6 @@ class NoCacheAdapterTest extends PHPUnit_Framework_TestCase { $cache = new NoCacheAdapter(); $cache->setItem('key', 'value'); - $this->assertFalse((boolean)$cache->hasItem('key')); + $this->assertFalse((bool)$cache->hasItem('key')); } } diff --git a/module/VuFindSearch/src/VuFindSearch/Backend/EIT/Connector.php b/module/VuFindSearch/src/VuFindSearch/Backend/EIT/Connector.php index 6059dc196dd52f6544160b81468b1c40a58a63aa..63fe7c2729edbc53f054d54a74e4797a032ea4e4 100644 --- a/module/VuFindSearch/src/VuFindSearch/Backend/EIT/Connector.php +++ b/module/VuFindSearch/src/VuFindSearch/Backend/EIT/Connector.php @@ -124,7 +124,7 @@ class Connector implements \Zend\Log\LoggerAwareInterface return [ 'docs' => $finalDocs, 'offset' => $offset, - 'total' => (integer)$xml->Hits + 'total' => (int)$xml->Hits ]; } @@ -215,7 +215,7 @@ class Connector implements \Zend\Log\LoggerAwareInterface return [ 'docs' => $finalDocs, 'offset' => 0, - 'total' => (integer)$xml->Hits + 'total' => (int)$xml->Hits ]; } }