| @@ -74,10 +74,8 @@ | ||
| 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 | /** | 
| @@ -18,7 +18,7 @@ discard block | ||
| 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 | ||
| 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; |