Completed
Pull Request — master (#245)
by
unknown
61:35
created
Filter/ViewData/PagerAwareViewData.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 //        }
66 66
         $this->maxPages = $maxPages;
67 67
 
68
-        $this->numPages = (int) ceil($this->totalItems/$this->itemsPerPage);
68
+        $this->numPages = (int)ceil($this->totalItems / $this->itemsPerPage);
69 69
     }
70 70
 
71 71
     /**
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
         }
183 183
 
184 184
         // Determine the sliding range, centered around the current page.
185
-        $numAdjacents = (int) floor(($this->maxPages - 3) / 2);
185
+        $numAdjacents = (int)floor(($this->maxPages - 3) / 2);
186 186
 
187 187
         if ($this->currentPage + $numAdjacents > $this->numPages) {
188 188
             $slidingStart = $this->numPages - $this->maxPages + 2;
Please login to merge, or discard this patch.