Skip to content
Snippets Groups Projects
Commit 7a682117 authored by Demian Katz's avatar Demian Katz
Browse files

Use short scalar casting.

parent 16391bd5
Branches
Tags
No related merge requests found
...@@ -52,6 +52,6 @@ class NoCacheAdapterTest extends PHPUnit_Framework_TestCase ...@@ -52,6 +52,6 @@ class NoCacheAdapterTest extends PHPUnit_Framework_TestCase
{ {
$cache = new NoCacheAdapter(); $cache = new NoCacheAdapter();
$cache->setItem('key', 'value'); $cache->setItem('key', 'value');
$this->assertFalse((boolean)$cache->hasItem('key')); $this->assertFalse((bool)$cache->hasItem('key'));
} }
} }
...@@ -124,7 +124,7 @@ class Connector implements \Zend\Log\LoggerAwareInterface ...@@ -124,7 +124,7 @@ class Connector implements \Zend\Log\LoggerAwareInterface
return [ return [
'docs' => $finalDocs, 'docs' => $finalDocs,
'offset' => $offset, 'offset' => $offset,
'total' => (integer)$xml->Hits 'total' => (int)$xml->Hits
]; ];
} }
...@@ -215,7 +215,7 @@ class Connector implements \Zend\Log\LoggerAwareInterface ...@@ -215,7 +215,7 @@ class Connector implements \Zend\Log\LoggerAwareInterface
return [ return [
'docs' => $finalDocs, 'docs' => $finalDocs,
'offset' => 0, 'offset' => 0,
'total' => (integer)$xml->Hits 'total' => (int)$xml->Hits
]; ];
} }
} }
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment