| Total Complexity | 5 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 2 |
| 1 | <?php |
||
| 17 | class ShieldonManager { |
||
| 18 | |||
| 19 | private static Firewall $firewall; |
||
| 20 | |||
| 21 | public static function getFirewall(): Firewall { |
||
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Starts th Shieldon service. |
||
| 27 | * |
||
| 28 | * @param string $writable |
||
| 29 | */ |
||
| 30 | public static function start(string $writable = null): void { |
||
| 31 | $writable ??= \ROOT . \DS . 'cache' . \DS . 'shieldon'; |
||
| 32 | self::$firewall = new Firewall(); |
||
| 33 | self::$firewall->configure($writable); |
||
| 34 | $response = self::$firewall->run(); |
||
| 35 | if ($response->getStatusCode() !== 200) { |
||
| 36 | $httpResolver = new HttpResolver(); |
||
| 37 | $httpResolver($response); |
||
| 38 | } |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * Creates the admin panel. |
||
| 43 | */ |
||
| 44 | public static function createPanel(string $uri): Panel { |
||
| 45 | $panel = new Panel(); |
||
| 46 | self::$firewall->controlPanel($uri); |
||
| 47 | return $panel; |
||
| 48 | } |
||
| 49 | |||
| 50 | /** |
||
| 51 | * |
||
| 52 | * @return ResponseInterface |
||
| 53 | */ |
||
| 54 | public static function run(): ResponseInterface { |
||
| 56 | } |
||
| 57 | } |
||
| 58 |
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