| Conditions | 7 |
| Paths | 7 |
| Total Lines | 20 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 7 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 85 | public static function transform( $status ) { |
||
| 86 | switch ( $status ) { |
||
| 87 | case self::PENDING: |
||
| 88 | case self::OPEN: |
||
| 89 | return Core_Statuses::OPEN; |
||
| 90 | |||
| 91 | 8 | case self::CANCELED: |
|
| 92 | return Core_Statuses::CANCELLED; |
||
| 93 | 8 | ||
| 94 | 8 | case self::PAID: |
|
| 95 | 1 | return Core_Statuses::SUCCESS; |
|
| 96 | |||
| 97 | 7 | case self::EXPIRED: |
|
| 98 | 1 | return Core_Statuses::EXPIRED; |
|
| 99 | |||
| 100 | 6 | case self::FAILED: |
|
| 101 | 1 | return Core_Statuses::FAILURE; |
|
| 102 | |||
| 103 | 5 | default: |
|
| 104 | 1 | return null; |
|
| 105 | } |
||
| 108 |
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