Completed
Push — master ( a07d30...9a4b28 )
by Adam
02:30
created
src/Pagination.php 2 patches
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.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
      * @return $this
19 19
      */
20 20
     public function setPaginationClass($class) {
21
-        if((!empty(trim($class)))) {
21
+        if ((!empty(trim($class)))) {
22 22
             $this->pagerClass = $class;
23 23
         }
24 24
         return $this;
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
      * @return $this
39 39
      */
40 40
     public function setActiveClass($class) {
41
-        if((!empty(trim($class)))) {
41
+        if ((!empty(trim($class)))) {
42 42
             $this->liActiveClass = $class;
43 43
         }
44 44
         return $this;
Please login to merge, or discard this patch.