| Total Complexity | 5 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 17 | class ShieldonManager { |
||
| 18 | |||
| 19 | private static Firewall $firewall; |
||
| 20 | |||
| 21 | public static function getFirewall(): Firewall { |
||
| 23 | } |
||
| 24 | |||
| 25 | public static function start(string $writable = null) { |
||
| 26 | $writable ??= \ROOT . \DS . 'cache' . \DS . 'shieldon'; |
||
| 27 | self::$firewall = new Firewall(); |
||
| 28 | self::$firewall->configure($writable); |
||
| 29 | $response = self::$firewall->run(); |
||
| 30 | if ($response->getStatusCode() !== 200) { |
||
| 31 | $httpResolver = new HttpResolver(); |
||
| 32 | $httpResolver($response); |
||
| 33 | } |
||
| 34 | } |
||
| 35 | |||
| 36 | public static function createPanel(string $uri): Panel { |
||
| 37 | $panel = new Panel(); |
||
| 38 | self::$firewall->controlPanel($uri); |
||
| 39 | return $panel; |
||
| 40 | } |
||
| 41 | |||
| 42 | public static function run(): ResponseInterface { |
||
| 44 | } |
||
| 45 | } |
||
| 46 |
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