doyolabs /
code-coverage-bridge
| 1 | <?php |
||
| 2 | |||
| 3 | /* |
||
| 4 | * This file is part of the doyo/code-coverage project. |
||
| 5 | * |
||
| 6 | * (c) Anthonius Munthi <[email protected]> |
||
| 7 | * |
||
| 8 | * For the full copyright and license information, please view the LICENSE |
||
| 9 | * file that was distributed with this source code. |
||
| 10 | */ |
||
| 11 | |||
| 12 | declare(strict_types=1); |
||
| 13 | |||
| 14 | namespace Doyo\Bridge\CodeCoverage\Console; |
||
| 15 | |||
| 16 | use Symfony\Component\Console\Input\InputInterface; |
||
|
0 ignored issues
–
show
|
|||
| 17 | use Symfony\Component\Console\Output\OutputInterface; |
||
|
0 ignored issues
–
show
The type
Symfony\Component\Console\Output\OutputInterface was not found. Maybe you did not declare it correctly or list all dependencies?
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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths Loading history...
|
|||
| 18 | use Symfony\Component\Console\Style\StyleInterface; |
||
|
0 ignored issues
–
show
The type
Symfony\Component\Console\Style\StyleInterface was not found. Maybe you did not declare it correctly or list all dependencies?
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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths Loading history...
|
|||
| 19 | use Symfony\Component\Console\Style\SymfonyStyle; |
||
|
0 ignored issues
–
show
The type
Symfony\Component\Console\Style\SymfonyStyle was not found. Maybe you did not declare it correctly or list all dependencies?
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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths Loading history...
|
|||
| 20 | |||
| 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) |
||
| 55 | { |
||
| 56 | $this->style->error($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