Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
15 | public function boot() |
||
16 | { |
||
17 | $this->publishes([ |
||
18 | __DIR__.'/../config/pagination.php' => config_path('pagination.php'), |
||
19 | ], 'pagination'); |
||
20 | |||
21 | $this->mergeConfigFrom(__DIR__.'/../config/pagination.php', 'pagination'); |
||
22 | |||
23 | Request::macro('paginationCount', function ($key = null) { |
||
24 | $defaultCount = config('pagination.defaultCount'); |
||
25 | $maximumCount = config('pagination.maximumCount'); |
||
26 | $paginationKey = $key ?? config('pagination.key'); |
||
27 | |||
28 | return min( |
||
29 | intval($this->query($paginationKey, $defaultCount)), |
||
|
|||
30 | $maximumCount |
||
31 | ); |
||
44 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.