Passed
Push — master ( 105432...a023ec )
by Adam
01:37
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   +8 added lines, -8 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,8 +41,8 @@  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){
45
-        if(is_string(trim($class))) {
44
+    public function setLiClass($class) {
45
+        if (is_string(trim($class))) {
46 46
             $this->liClass = trim($class);
47 47
         }
48 48
         return $this;
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
      * @return $this
63 63
      */
64 64
     public function setLiActiveClass($class) {
65
-        if(is_string(trim($class))) {
65
+        if (is_string(trim($class))) {
66 66
             $this->liActiveClass = trim($class);
67 67
         }
68 68
         return $this;
@@ -82,8 +82,8 @@  discard block
 block discarded – undo
82 82
      * @param string $class This should be the class to add to a elements
83 83
      * @return $this
84 84
      */
85
-    public function setAClass($class){
86
-        if(is_string(trim($class))) {
85
+    public function setAClass($class) {
86
+        if (is_string(trim($class))) {
87 87
             $this->aClass = trim($class);
88 88
         }
89 89
         return $this;
@@ -102,8 +102,8 @@  discard block
 block discarded – undo
102 102
      * @param string $class This should be the class to add to active a elements
103 103
      * @return $this
104 104
      */
105
-    public function setAActiveClass($class){
106
-        if(is_string(trim($class))) {
105
+    public function setAActiveClass($class) {
106
+        if (is_string(trim($class))) {
107 107
             $this->aActiveClass = trim($class);
108 108
         }
109 109
         return $this;
Please login to merge, or discard this patch.