Passed
Push — master ( bad944...caa957 )
by Adam
01:31
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   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
      * @return $this
23 23
      */
24 24
     public function setPaginationClass($class) {
25
-        if((!empty(trim($class)))) {
25
+        if ((!empty(trim($class)))) {
26 26
             $this->pagerClass = $class;
27 27
         }
28 28
         return $this;
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
      * @param string $class This should be the class that you want to all to all li elements
42 42
      * @return $this
43 43
      */
44
-    public function setLiClass($class){
44
+    public function setLiClass($class) {
45 45
         $this->liClass = trim($class);
46 46
         return $this;
47 47
     }
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
      * @param string $class This should be the class to add to a elements
79 79
      * @return $this
80 80
      */
81
-    public function setAClass($class){
81
+    public function setAClass($class) {
82 82
         $this->aClass = trim($class);
83 83
         return $this;
84 84
     }
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
      * @param string $class This should be the class to add to active a elements
97 97
      * @return $this
98 98
      */
99
-    public function setAActiveClass($class){
99
+    public function setAActiveClass($class) {
100 100
         $this->aActiveClass = trim($class);
101 101
         return $this;
102 102
     }
Please login to merge, or discard this patch.