| Conditions | 2 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | 44 | public function middleware(string|array|Closure|Middleware|PsrMiddleware ...$middleware): static |
|
| 18 | { |
||
| 19 | 44 | $this->middleware = array_merge($this->middleware, array_map(function ($mw) { |
|
| 20 | 34 | if (is_string($mw)) { |
|
| 21 | 9 | return [$mw]; |
|
| 22 | } |
||
| 23 | |||
| 24 | 30 | return $mw; |
|
| 25 | 44 | }, array_values($middleware))); |
|
| 26 | |||
| 27 | 44 | return $this; |
|
| 28 | } |
||
| 44 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths