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