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