@@ -119,12 +119,12 @@ |
||
| 119 | 119 | } |
| 120 | 120 | // match |
| 121 | 121 | foreach (array_unique( |
| 122 | - /** @scrutinizer ignore-type */ |
|
| 123 | - preg_split( |
|
| 124 | - '~\\\\.(*SKIP)(*FAIL)|,~', |
|
| 125 | - $matches[2] |
|
| 126 | - ) |
|
| 127 | - ) as $segment) { |
|
| 122 | + /** @scrutinizer ignore-type */ |
|
| 123 | + preg_split( |
|
| 124 | + '~\\\\.(*SKIP)(*FAIL)|,~', |
|
| 125 | + $matches[2] |
|
| 126 | + ) |
|
| 127 | + ) as $segment) { |
|
| 128 | 128 | $permutation = $matches[1] . $segment . $matches[3]; |
| 129 | 129 | in_array($permutation, $stack, true) || $stack[] = $permutation; |
| 130 | 130 | } |
@@ -357,9 +357,15 @@ |
||
| 357 | 357 | $list = $args->hasOption('list'); |
| 358 | 358 | $images = $args->hasOption('images'); |
| 359 | 359 | |
| 360 | - if ($images) return $this->showImages($pipelines); |
|
| 361 | - if ($show) return $this->showPipelines($pipelines); |
|
| 362 | - if ($list) return $this->showPipelineIds($pipelines); |
|
| 360 | + if ($images) { |
|
| 361 | + return $this->showImages($pipelines); |
|
| 362 | + } |
|
| 363 | + if ($show) { |
|
| 364 | + return $this->showPipelines($pipelines); |
|
| 365 | + } |
|
| 366 | + if ($list) { |
|
| 367 | + return $this->showPipelineIds($pipelines); |
|
| 368 | + } |
|
| 363 | 369 | |
| 364 | 370 | ### |
| 365 | 371 | |