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

Commit

Permalink
Merge branch 'hotfix/7412'
Browse files Browse the repository at this point in the history
  • Loading branch information
weierophinney committed May 4, 2015
3 parents f47e2fc + c5b5652 + 70b7aef commit da23c0e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Paginator.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public static function setGlobalConfig($config)

$scrollingStyle = isset($config['scrolling_style']) ? $config['scrolling_style'] : null;

if ($scrollingStyle != null) {
if ($scrollingStyle !== null) {
static::setDefaultScrollingStyle($scrollingStyle);
}
}
Expand Down Expand Up @@ -294,7 +294,7 @@ public function __construct($adapter)
$key = strtolower($setupMethod);
$value = isset($config[$key]) ? $config[$key] : null;

if ($value != null) {
if ($value !== null) {
$setupMethod = 'set' . $setupMethod;
$this->$setupMethod($value);
}
Expand Down Expand Up @@ -394,7 +394,7 @@ public function getAbsoluteItemNumber($relativeItemNumber, $pageNumber = null)
{
$relativeItemNumber = $this->normalizeItemNumber($relativeItemNumber);

if ($pageNumber == null) {
if ($pageNumber === null) {
$pageNumber = $this->getCurrentPageNumber();
}

Expand Down Expand Up @@ -500,7 +500,7 @@ public function setFilter(FilterInterface $filter)
*/
public function getItem($itemNumber, $pageNumber = null)
{
if ($pageNumber == null) {
if ($pageNumber === null) {
$pageNumber = $this->getCurrentPageNumber();
} elseif ($pageNumber < 0) {
$pageNumber = ($this->count() + 1) + $pageNumber;
Expand Down

0 comments on commit da23c0e

Please sign in to comment.