| Total Complexity | 5 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Coverage | 75% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | abstract class BaseFormatter implements FormatterInterface |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var GenericIterator|Row |
||
| 13 | */ |
||
| 14 | protected $object; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @inheritDoc |
||
| 18 | */ |
||
| 19 | abstract public function raw(); |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @inheritDoc |
||
| 23 | */ |
||
| 24 | abstract public function toText(); |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @inheritDoc |
||
| 28 | */ |
||
| 29 | 2 | public function saveToFile($filename) |
|
| 30 | { |
||
| 31 | 2 | if (empty($filename)) { |
|
| 32 | throw new InvalidArgumentException("Filename cannot be empty"); |
||
| 33 | } |
||
| 34 | 2 | file_put_contents($filename, $this->toText()); |
|
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @param GenericIterator|Row $object |
||
| 39 | */ |
||
| 40 | 7 | public function __construct($object) |
|
| 46 | } |
||
| 47 | } |
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