Test Setup Failed
Push — master ( 361a14...5fd198 )
by Adam
01:49
created
src/Pagination.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
                 $paging.= '<li><a href="'.$pageURL.'?'.$additional.'page='.($start - 1).'">&lt;</a></li>';
31 31
             }
32 32
             while (self::$page <= self::$lastpage) {
33
-                if (self::$current == self::$page) {$curselect = ' class="active"';}else {$curselect = '';}
33
+                if (self::$current == self::$page) {$curselect = ' class="active"';} else {$curselect = '';}
34 34
                 $paging.= '<li'.$curselect.'><a href="'.$pageURL.'?'.$additional.'page='.self::$page.'">'.self::$page.'</a></li>';
35 35
                 self::$page = (self::$page + 1);
36 36
             }
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     protected static function getPage($records, $maxshown, $numpages) {
55 55
         $show = floor($numpages / 2);
56 56
         if (self::$lastpage > $numpages) {
57
-            if (self::$current > $show) {self::$page = self::$current - $show;}else{self::$page = 1;}
57
+            if (self::$current > $show) {self::$page = self::$current - $show;} else{self::$page = 1;}
58 58
 
59 59
             if (self::$current < (self::$lastpage - $show)) {
60 60
                 self::$lastpage = self::$current + $show;
Please login to merge, or discard this patch.