| Total Complexity | 8 |
| Total Lines | 50 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php declare(strict_types=1); |
||
| 21 | final class ClassDiagramConfiguration |
||
| 22 | { |
||
| 23 | private CodeFinder $codeFinder; |
||
| 24 | |||
| 25 | private CodeParser $codeParser; |
||
| 26 | |||
| 27 | private GraphvizProcessor $graphvizProcessor; |
||
| 28 | |||
| 29 | private ImageProcessor $imageProcessor; |
||
| 30 | |||
| 31 | private OutputWriter $writer; |
||
| 32 | |||
| 33 | /** @param mixed[] $configuration */ |
||
| 34 | public function __construct(array $configuration) |
||
| 35 | { |
||
| 36 | $recursive = (bool) ($configuration['recursive'] ?? false); |
||
| 37 | $this->codeFinder = $recursive ? SourceCodeFinder::recursive() : SourceCodeFinder::nonRecursive(); |
||
| 38 | $this->codeParser = CodeParser::fromConfiguration(new CodeParserConfiguration($configuration)); |
||
| 39 | $this->graphvizProcessor = GraphvizProcessor::fromConfiguration(new GraphvizConfiguration($configuration)); |
||
| 40 | $imageProcessorName = new ImageProcessorName($configuration['processor'] ?? ''); |
||
| 41 | $filesystem = new SmartFileSystem(); |
||
| 42 | $this->imageProcessor = $imageProcessorName->isDot() |
||
| 43 | ? ImageProcessor::dot($filesystem) |
||
| 44 | : ImageProcessor::neato($filesystem); |
||
| 45 | $this->writer = new OutputWriter($filesystem); |
||
| 46 | } |
||
| 47 | |||
| 48 | public function codeFinder(): CodeFinder |
||
| 49 | { |
||
| 50 | return $this->codeFinder; |
||
| 51 | } |
||
| 52 | |||
| 53 | public function codeParser(): CodeParser |
||
| 54 | { |
||
| 55 | return $this->codeParser; |
||
| 56 | } |
||
| 57 | |||
| 58 | public function graphvizProcessor(): GraphvizProcessor |
||
| 59 | { |
||
| 60 | return $this->graphvizProcessor; |
||
| 61 | } |
||
| 62 | |||
| 63 | public function imageProcessor(): ImageProcessor |
||
| 66 | } |
||
| 67 | |||
| 68 | public function writer(): OutputWriter |
||
| 69 | { |
||
| 71 | } |
||
| 72 | } |
||
| 73 |
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