@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -spl_autoload_register(function ($class) { |
|
3 | +spl_autoload_register(function($class) { |
|
4 | 4 | if (strpos($class, 'SimpleCrud\\') !== 0) { |
5 | 5 | return; |
6 | 6 | } |
@@ -95,15 +95,15 @@ |
||
95 | 95 | $next = $result->count() < $this->limit ? null : $current + 1; |
96 | 96 | $prev = $current > 1 ? $current - 1 : null; |
97 | 97 | |
98 | - $result->setMethod('getPage', function () use ($current) { |
|
98 | + $result->setMethod('getPage', function() use ($current) { |
|
99 | 99 | return $current; |
100 | 100 | }); |
101 | 101 | |
102 | - $result->setMethod('getNextPage', function () use ($next) { |
|
102 | + $result->setMethod('getNextPage', function() use ($next) { |
|
103 | 103 | return $next; |
104 | 104 | }); |
105 | 105 | |
106 | - $result->setMethod('getPrevPage', function () use ($prev) { |
|
106 | + $result->setMethod('getPrevPage', function() use ($prev) { |
|
107 | 107 | return $prev; |
108 | 108 | }); |
109 | 109 | } |