Conditions | 7 |
Paths | 7 |
Total Lines | 18 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 56 |
Changes | 0 |
1 | <?php |
||
77 | public static function transform( $status ) { |
||
78 | switch ( $status ) { |
||
79 | case self::ERROR: |
||
80 | return Core_Statuses::FAILURE; |
||
81 | |||
82 | case self::PENDING: |
||
83 | case self::PROCESSING: |
||
84 | return Core_Statuses::OPEN; |
||
85 | |||
86 | case self::CANCELLED: |
||
87 | return Core_Statuses::CANCELLED; |
||
88 | |||
89 | case self::COMPLETED: |
||
90 | case self::SUCCESS: |
||
91 | return Core_Statuses::SUCCESS; |
||
92 | |||
93 | default: |
||
94 | return null; |
||
95 | } |
||
98 |