| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | public function __construct(Collection $unknownFilters, Collection $allowedFilters) |
||
| 17 | { |
||
| 18 | $this->unknownFilters = $unknownFilters; |
||
| 19 | $this->allowedFilters = $allowedFilters; |
||
| 20 | |||
| 21 | $unknownFilters = $this->unknownFilters->implode(', '); |
||
| 22 | $allowedFilters = $this->allowedFilters->implode(', '); |
||
| 23 | $message = "Requested filter(s) `{$unknownFilters}` are not allowed. Allowed filter(s) are `{$allowedFilters}`."; |
||
| 24 | |||
| 25 | parent::__construct(Response::HTTP_BAD_REQUEST, $message); |
||
| 26 | } |
||
| 27 | |||
| 33 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.