| Total Complexity | 3 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class Middleware |
||
| 8 | { |
||
| 9 | protected $start; |
||
| 10 | |||
| 11 | public function __construct() |
||
| 15 | }; |
||
| 16 | } |
||
| 17 | |||
| 18 | public function add(MiddlewareInterface $midleware) |
||
| 19 | { |
||
| 20 | $next = $this->start; |
||
| 21 | |||
| 22 | $this->start = function (PeticionInterface $peticion) use ($midleware, $next) { |
||
| 23 | return $midleware($peticion, $next); |
||
| 24 | }; |
||
| 25 | } |
||
| 26 | |||
| 27 | public function handle(PeticionInterface $peticion) |
||
| 30 | } |
||
| 31 | } |
||
| 32 |
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