| 1 | <?php namespace JobApis\JobsToMail\Filters; |
||
| 6 | class CollectionFilter |
||
| 7 | { |
||
| 8 | /** |
||
| 9 | * Convert the array of collections to one large array of Jobs |
||
| 10 | * |
||
| 11 | * @param array $collectionsArray |
||
| 12 | * |
||
| 13 | * @return array |
||
| 14 | */ |
||
| 15 | 2 | public function getJobsFromCollections($collectionsArray = [], $max = 50) |
|
| 30 | |||
| 31 | /** |
||
| 32 | * Logs all the errors attached to a collection |
||
| 33 | * |
||
| 34 | * @param array $jobsByProvider |
||
|
|
|||
| 35 | * |
||
| 36 | * @return void |
||
| 37 | */ |
||
| 38 | 2 | protected function logErrorsFromCollection(Collection $collection) |
|
| 46 | } |
||
| 47 |
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.