| Conditions | 9 |
| Paths | 2 |
| Total Lines | 15 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | public function __invoke(ContainerInterface $container, $requestedName, array $options = null): SyncOptions |
||
| 17 | { |
||
| 18 | $reader = new Json(); |
||
| 19 | $config = $reader->fromFile(__DIR__ . '/../../../../config.json'); |
||
| 20 | |||
| 21 | if ( |
||
| 22 | (!isset($config['jiraUsername']) || empty($config['jiraUsername'])) || |
||
| 23 | (!isset($config['jiraPassword']) || empty($config['jiraPassword'])) || |
||
| 24 | (!isset($config['togglApiKey']) || empty($config['togglApiKey'])) || |
||
| 25 | (!isset($config['jiraUrl']) || empty($config['jiraUrl'])) |
||
| 26 | ) { |
||
| 27 | throw new \RuntimeException('Invalid config.json, please fill out everything except lastSync'); |
||
| 28 | } |
||
| 29 | |||
| 30 | return new SyncOptions($config); |
||
| 31 | } |
||
| 33 |
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