Total Complexity | 6 |
Total Lines | 33 |
Duplicated Lines | 0 % |
Changes | 24 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class PrintService |
||
11 | { |
||
12 | private $initialSpace = 8; |
||
13 | private $totalChars = 48; |
||
14 | private $text = ''; |
||
15 | |||
16 | public function __construct( |
||
19 | |||
20 | public function addLine($prefix = '', $suffix = '', $delimiter = ' ') |
||
21 | { |
||
22 | $initialSpace = str_repeat(" ", $this->initialSpace); |
||
23 | $count = $this->totalChars - $this->initialSpace - strlen($prefix) - strlen($suffix); |
||
24 | if ($count > 0) |
||
25 | $delimiter = str_repeat($delimiter, $count); |
||
26 | $this->text .= $initialSpace . $prefix . $delimiter . $suffix . "\n"; |
||
27 | } |
||
28 | |||
29 | public function generatePrintData($printType, $deviceType) |
||
43 | } |
||
44 | } |
||
45 |
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