Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Merge branch '#ZF2-151' of github.com:robertboloc/zf2 into #ZF2-151
Browse files Browse the repository at this point in the history
  • Loading branch information
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
5 changes: 2 additions & 3 deletions src/Paginator.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
use Traversable;
use Zend\Cache\Storage\IteratorInterface as CacheIterator;
use Zend\Cache\Storage\StorageInterface as CacheStorage;
use Zend\Db\Sql;
use Zend\Db\ResultSet\AbstractResultSet;
use Zend\Filter\FilterInterface;
use Zend\Json\Json;
Expand Down Expand Up @@ -335,7 +334,7 @@ public function __toString()
*/
public function setCacheEnabled($enable)
{
$this->cacheEnabled = (bool)$enable;
$this->cacheEnabled = (bool) $enable;
return $this;
}

Expand Down Expand Up @@ -720,7 +719,7 @@ public function getPageItemCache()
$tags = self::$cache->getTags($key);
if ($tags && in_array($this->_getCacheInternalId(), $tags)) {
if (substr($key, 0, $prefixLength) == self::CACHE_TAG_PREFIX) {
$data[(int)substr($key, $prefixLength)] = $value;
$data[(int) substr($key, $prefixLength)] = $value;
}
}
}
Expand Down
1 change: 0 additions & 1 deletion test/Adapter/DbSelectTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
use Zend\Paginator\Adapter\DbSelect;
use Zend\Db\Sql\Select;
use Zend\Db\Sql\Expression;
use Zend\Db\Adapter\Adapter as DbAdapter;

/**
* @category Zend
Expand Down
1 change: 0 additions & 1 deletion test/PaginatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
use ReflectionMethod;
use stdClass;
use Zend\Cache\StorageFactory as CacheFactory;
use Zend\Cache\Storage\Adapter\AdapterInterface as CacheAdapter;
use Zend\Config;
use Zend\Db\Adapter as DbAdapter;
use Zend\Db\Sql;
Expand Down

0 comments on commit 261c157

Please # to comment.