| Conditions | 3 |
| Paths | 3 |
| Total Lines | 17 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 13 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | 3 | public function getFormatter($dateFormat) |
|
| 17 | { |
||
| 18 | 3 | switch (strtolower($dateFormat)) { |
|
| 19 | 3 | case DateFormat::DATE_FORMAT_DAY_OF_YEAR: |
|
| 20 | 1 | $class = DateFormatterDayOfYear::class; |
|
| 21 | 1 | break; |
|
| 22 | |||
| 23 | 2 | case DateFormat::DATE_FORMAT_DAY_OF_YEAR_FIXED_LENGTH: |
|
| 24 | 1 | $class = DateFormatterDayOfYearFixedLength::class; |
|
| 25 | 1 | break; |
|
| 26 | |||
| 27 | 1 | default: |
|
| 28 | 1 | $class = DateFormatterBasic::class; |
|
| 29 | 1 | break; |
|
| 30 | 3 | } |
|
| 31 | |||
| 32 | 3 | return $class::factory(); |
|
| 33 | } |
||
| 35 |
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