Completed
Push — master ( fbfcfc...553870 )
by Adam
02:32
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.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -75,8 +75,8 @@  discard block
 block discarded – undo
75 75
             if (self::$current < (self::$lastpage - $show)) {
76 76
                 self::$lastpage = self::$current + $show;
77 77
                 if (self::$current <= $show) { self::$lastpage = self::$current + ($numpages - self::$current); }
78
-            } else { self::$page = self::$current - ($numpages - ((ceil($records / $maxshown) - self::$current)) - 1); }
79
-        } else { self::$page = 1; }
78
+            }else { self::$page = self::$current - ($numpages - ((ceil($records / $maxshown) - self::$current)) - 1); }
79
+        }else { self::$page = 1; }
80 80
     }
81 81
     
82 82
     /**
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
      * @param boolean $arrows If you want to display previous arrows set to true else set to false
85 85
      * @return string Any previous link arrows will be returned as a string
86 86
      */
87
-    protected function preLinks($arrows = true){
87
+    protected function preLinks($arrows = true) {
88 88
         $paging = '';
89 89
         if (self::$current != 1 && $arrows) {
90 90
             if (self::$current != 2) { $paging .= $this->buildLink('', '&laquo;'); }
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
      * @param boolean $arrows If you want to display next arrows set to true else set to false
99 99
      * @return string Any next link arrows will be returned as a string
100 100
      */
101
-    protected function postLinks($arrows = true){
101
+    protected function postLinks($arrows = true) {
102 102
         $paging = '';
103 103
         if (self::$current != self::$lastpage && $arrows) {
104 104
             $paging .= $this->buildLink((self::$current + 1), '&gt;');
Please login to merge, or discard this patch.