| Total Complexity | 7 | 
| Total Lines | 34 | 
| Duplicated Lines | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 12 | final class RestGroupFactory | ||
| 13 | { | ||
| 14 |     private const ENTITY_PATTERN = '{id:\d+}'; | ||
| 15 | |||
| 16 | private const METHODS = [ | ||
| 17 | 'get' => Method::GET, | ||
| 18 | 'list' => Method::GET, | ||
| 19 | 'post' => Method::POST, | ||
| 20 | 'put' => Method::PUT, | ||
| 21 | 'delete' => Method::DELETE, | ||
| 22 | 'patch' => Method::PATCH, | ||
| 23 | 'options' => Method::OPTIONS, | ||
| 24 | ]; | ||
| 25 | |||
| 26 | public static function create(string $prefix, string $controller): Group | ||
| 27 |     { | ||
| 28 | return Group::create($prefix)->routes(...self::createDefaultRoutes($controller)); | ||
| 29 | } | ||
| 30 | |||
| 31 | private static function createDefaultRoutes(string $controller): array | ||
| 46 | } | ||
| 47 | } | ||
| 48 | 
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