Conditions | 4 |
Paths | 4 |
Total Lines | 21 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 12 |
CRAP Score | 4 |
Changes | 0 |
1 | <?php |
||
59 | 4 | public function run() |
|
60 | { |
||
61 | 4 | $args = $this->args; |
|
62 | |||
63 | 4 | $images = $args->hasOption('images'); |
|
64 | 4 | $show = $args->hasOption('show'); |
|
65 | 4 | $list = $args->hasOption('list'); |
|
66 | |||
67 | 4 | if ($images) { |
|
68 | 1 | return $this->shower()->showImages(); |
|
69 | } |
||
70 | |||
71 | 3 | if ($show) { |
|
72 | 1 | return $this->shower()->showPipelines(); |
|
73 | } |
||
74 | |||
75 | 2 | if ($list) { |
|
76 | 1 | return $this->shower()->showPipelineIds(); |
|
77 | } |
||
78 | |||
79 | 1 | return null; |
|
80 | } |
||
104 |