Conditions | 3 |
Paths | 4 |
Total Lines | 14 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 3 |
Changes | 0 |
1 | <?php |
||
18 | 13 | public function __construct( |
|
19 | public string|null|CarbonInterface $date = null, |
||
20 | public ?string $timezone = null, |
||
21 | public ?string $date_format = 'Y-m-d', |
||
22 | ) { |
||
23 | 13 | if (empty($this->date)) { |
|
24 | 2 | $this->date = null; |
|
25 | } |
||
26 | |||
27 | 13 | if (is_string($this->date)) { |
|
28 | 6 | $this->date = app(Carbon::class)->parse($this->date); |
|
29 | } |
||
30 | |||
31 | 13 | $this->timezone ??= config('app.timezone', 'UTC'); |
|
32 | } |
||
46 |
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