| Conditions | 2 |
| Paths | 2 |
| Total Lines | 24 |
| Code Lines | 18 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 21 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 18 | 1 | #[Override] |
|
| 19 | public function getCodeDefinitions(): array |
||
| 20 | { |
||
| 21 | 1 | if ($this->definitions === null) { |
|
| 22 | 1 | $this->definitions = [ |
|
| 23 | 1 | (new CodeDefinitionBuilder('b', '<strong>{param}</strong>'))->build(), |
|
| 24 | 1 | (new CodeDefinitionBuilder('i', '<em>{param}</em>'))->build(), |
|
| 25 | 1 | (new CodeDefinitionBuilder('u', '<u>{param}</u>'))->build(), |
|
| 26 | 1 | (new CodeDefinitionBuilder( |
|
| 27 | 1 | 'color', |
|
| 28 | 1 | '<span style="color: {option}">{param}</span>' |
|
| 29 | 1 | )) |
|
| 30 | 1 | ->setUseOption(true) |
|
| 31 | 1 | ->setOptionValidator(new CssColorValidator()) |
|
| 32 | 1 | ->build(), |
|
| 33 | 1 | (new CodeDefinitionBuilder( |
|
| 34 | 1 | 'img', |
|
| 35 | 1 | '<img src="{param}" style="max-height: 100%;max-width:100%;" />' |
|
| 36 | 1 | )) |
|
| 37 | 1 | ->setBodyValidator(new StuBbCodeImageValidator()) |
|
| 38 | 1 | ->build(), |
|
| 39 | 1 | ]; |
|
| 40 | } |
||
| 41 | 1 | return $this->definitions; |
|
| 42 | } |
||
| 44 |
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