| Conditions | 2 | 
| Paths | 1 | 
| Total Lines | 20 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php namespace Spatie\CollectionMacros\Macros;  | 
            ||
| 17 | public function simplePaginate()  | 
            ||
| 18 |     { | 
            ||
| 19 | return function (  | 
            ||
| 20 | int $perPage = 15,  | 
            ||
| 21 | string $pageName = 'page',  | 
            ||
| 22 | int $page = null,  | 
            ||
| 23 | array $options = []  | 
            ||
| 24 |         ): Paginator { | 
            ||
| 25 | $page = $page ?: Paginator::resolveCurrentPage($pageName);  | 
            ||
| 26 | |||
| 27 | $results = $this->slice(($page - 1) * $perPage)->take($perPage + 1);  | 
            ||
| 28 | |||
| 29 | $options += [  | 
            ||
| 30 | 'path' => Paginator::resolveCurrentPath(),  | 
            ||
| 31 | 'pageName' => $pageName,  | 
            ||
| 32 | ];  | 
            ||
| 33 | |||
| 34 | return new Paginator($results, $perPage, $page, $options);  | 
            ||
| 35 | };  | 
            ||
| 36 | }  | 
            ||
| 37 | }  | 
            ||
| 38 | 
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italyis not defined by the methodfinale(...).The most likely cause is that the parameter was removed, but the annotation was not.