Conditions | 6 |
Paths | 6 |
Total Lines | 20 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 6 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
26 | 41 | public function getStageName(string $stage): string |
|
27 | { |
||
28 | 41 | switch ($stage) { |
|
29 | case Runtime::PRE_DEPLOY: |
||
30 | 41 | return 'Pre Deploy'; |
|
31 | |||
32 | case Runtime::ON_DEPLOY: |
||
33 | 36 | return 'On Deploy'; |
|
34 | |||
35 | case Runtime::POST_DEPLOY: |
||
36 | 27 | return 'Post Deploy'; |
|
37 | |||
38 | case Runtime::ON_RELEASE: |
||
39 | 29 | return 'On Release'; |
|
40 | |||
41 | case Runtime::POST_RELEASE: |
||
42 | 29 | return 'Post Release'; |
|
43 | } |
||
44 | |||
45 | 1 | return $stage; |
|
46 | } |
||
105 |