| Total Complexity | 4 |
| Total Lines | 44 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | final class ConfigurationLogger |
||
| 25 | { |
||
| 26 | /** |
||
| 27 | * @var array<string, true> |
||
| 28 | */ |
||
| 29 | private array $recommendations = []; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @var array<string, true> |
||
| 33 | */ |
||
| 34 | private array $warnings = []; |
||
| 35 | |||
| 36 | public function addRecommendation(string $message): void |
||
| 37 | { |
||
| 38 | $message = trim($message); |
||
| 39 | |||
| 40 | Assert::false('' === $message, 'Expected to have a message but a blank string was given instead.'); |
||
| 41 | |||
| 42 | $this->recommendations[$message] = true; |
||
| 43 | } |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @return list<string> |
||
|
|
|||
| 47 | */ |
||
| 48 | public function getRecommendations(): array |
||
| 49 | { |
||
| 50 | return array_keys($this->recommendations); |
||
| 51 | } |
||
| 52 | |||
| 53 | public function addWarning(string $message): void |
||
| 60 | } |
||
| 61 | |||
| 62 | /** |
||
| 63 | * @return list<string> |
||
| 64 | */ |
||
| 65 | public function getWarnings(): array |
||
| 68 | } |
||
| 69 | } |
||
| 70 |
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