| Total Complexity | 5 |
| Total Lines | 36 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | class Console implements ConsoleIO |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * @var StyleInterface |
||
| 25 | */ |
||
| 26 | private $style; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Console constructor. |
||
| 30 | * |
||
| 31 | * @todo Change this to only accept style interface |
||
| 32 | * |
||
| 33 | * @param InputInterface|StyleInterface $style |
||
| 34 | * @param OutputInterface|null $output |
||
| 35 | */ |
||
| 36 | public function __construct($style, OutputInterface $output = null) |
||
| 37 | { |
||
| 38 | if ($style instanceof InputInterface) { |
||
| 39 | $style = new SymfonyStyle($style, $output); |
||
| 40 | } |
||
| 41 | $this->style = $style; |
||
| 42 | } |
||
| 43 | |||
| 44 | public function coverageSection(string $section) |
||
| 45 | { |
||
| 46 | $this->style->section('coverage: '.$section); |
||
| 47 | } |
||
| 48 | |||
| 49 | public function coverageInfo(string $message) |
||
| 50 | { |
||
| 51 | $this->style->text($message); |
||
| 52 | } |
||
| 53 | |||
| 54 | public function coverageError(string $message) |
||
| 57 | } |
||
| 58 | } |
||
| 59 |
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