| Conditions | 5 |
| Paths | 4 |
| Total Lines | 19 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 5 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 30 | 4 | public function format( array $parameters ) { |
|
| 31 | |||
| 32 | 4 | $formatted = []; |
|
| 33 | |||
| 34 | 4 | foreach ( $parameters as $key => $value ) { |
|
| 35 | |||
| 36 | 4 | if ( $value === '' || $value[0] === '@' ) { |
|
| 37 | 4 | continue; |
|
| 38 | } |
||
| 39 | |||
| 40 | 4 | if ( $value[0] === '+' ) { |
|
| 41 | 2 | $formatted[$key-1] = $formatted[$key-1] . '|' . $value; |
|
| 42 | 2 | continue; |
|
| 43 | } |
||
| 44 | |||
| 45 | 4 | $formatted[$key] = ' |' . $value; |
|
| 46 | } |
||
| 47 | |||
| 48 | 4 | return $formatted; |
|
| 49 | } |
||
| 52 |
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