@@ -78,7 +78,9 @@ |
||
78 | 78 | } |
79 | 79 | |
80 | 80 | public function setCode($code) { |
81 | - if (!\is_numeric($code)) throw new \InvalidArgumentException('expected numeric'); |
|
81 | + if (!\is_numeric($code)) { |
|
82 | + throw new \InvalidArgumentException('expected numeric'); |
|
83 | + } |
|
82 | 84 | $this->code = $code; |
83 | 85 | return $this; |
84 | 86 | } |
@@ -493,7 +493,9 @@ discard block |
||
493 | 493 | } |
494 | 494 | |
495 | 495 | foreach (array_reverse($releases) as $idx => $release) { |
496 | - if ($idx <= ($quantity - 1)) continue; |
|
496 | + if ($idx <= ($quantity - 1)) { |
|
497 | + continue; |
|
498 | + } |
|
497 | 499 | $proccess = new Process('rm -r ' . $release); |
498 | 500 | $proccess->run(); |
499 | 501 | } |
@@ -505,7 +507,9 @@ discard block |
||
505 | 507 | } |
506 | 508 | |
507 | 509 | public function absolutePath($path, $cwd) { |
508 | - if ($path[0] == '/') return $path; |
|
510 | + if ($path[0] == '/') { |
|
511 | + return $path; |
|
512 | + } |
|
509 | 513 | return $cwd . DIRECTORY_SEPARATOR . $path; |
510 | 514 | } |
511 | 515 |