| Conditions | 5 |
| Paths | 5 |
| Total Lines | 14 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 5 |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 33 | 5 | public static function transform( $status ) { |
|
| 34 | switch ( $status ) { |
||
| 35 | 5 | case MeprSubscription::$pending_str: |
|
| 36 | 1 | return SubscriptionStatus::OPEN; |
|
| 37 | 4 | case MeprSubscription::$active_str: |
|
| 38 | 1 | return SubscriptionStatus::ACTIVE; |
|
| 39 | 3 | case MeprSubscription::$suspended_str: |
|
| 40 | // @todo set to 'On hold'? |
||
| 41 | 1 | return null; |
|
| 42 | 2 | case MeprSubscription::$cancelled_str: |
|
| 43 | 1 | return SubscriptionStatus::CANCELLED; |
|
| 44 | } |
||
| 45 | |||
| 46 | 1 | return null; |
|
| 47 | } |
||
| 49 |
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