| Total Complexity | 5 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class App |
||
| 10 | { |
||
| 11 | protected $midleware; |
||
| 12 | |||
| 13 | public function __construct(Middleware $midleware) |
||
| 16 | } |
||
| 17 | |||
| 18 | public function add(array $midlewares) |
||
| 19 | { |
||
| 20 | foreach (array_reverse($midlewares) as $midleware) { |
||
| 21 | $this->do($midleware); |
||
| 22 | } |
||
| 23 | } |
||
| 24 | |||
| 25 | private function do(MiddlewareInterface $midleware) |
||
| 26 | { |
||
| 27 | $this->midleware->add($midleware); |
||
| 28 | } |
||
| 29 | |||
| 30 | public function run(PeticionInterface $Peticion) |
||
| 33 | } |
||
| 34 | } |
||
| 35 |
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