Completed
Push — master ( c3e5f8...d6cf1b )
by Adam
02:40
created
src/Pagination.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
     
52 52
     /**
53 53
      * Builds the query string to add to the URL
54
-     * @param mixed $page If the page variable is set to a number will add the page number to the query string else will not add any additional items
54
+     * @param string $page If the page variable is set to a number will add the page number to the query string else will not add any additional items
55 55
      * @return string The complete string will be returned to add to the link item
56 56
      */
57 57
     protected function buildQueryString($page) {
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -74,10 +74,8 @@
 block discarded – undo
74 74
             self::$page = (self::$current > $show ? (self::$current - $show) : 1);
75 75
             if (self::$current < (self::$lastpage - $show)) {
76 76
                 self::$lastpage = ((self::$current <= $show) ? (self::$current + ($numpages - self::$current)) : (self::$current + $show));
77
-            }
78
-            else { self::$page = self::$current - ($numpages - ((ceil($records / $maxshown) - self::$current)) - 1); }
79
-        }
80
-        else { self::$page = 1; }
77
+            } else { self::$page = self::$current - ($numpages - ((ceil($records / $maxshown) - self::$current)) - 1); }
78
+        } else { self::$page = 1; }
81 79
     }
82 80
     
83 81
     /**
Please login to merge, or discard this patch.