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

Commit

Permalink
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Paginator.php
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ public function __toString()
*/
public function setCacheEnabled($enable)
{
$this->cacheEnabled = (bool)$enable;
$this->cacheEnabled = (bool) $enable;
return $this;
}

Expand Down Expand Up @@ -719,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

0 comments on commit 9c75f77

Please sign in to comment.