@@ -8,7 +8,9 @@ discard block |
||
| 8 | 8 | |
| 9 | 9 | function __construct($path, $executor, $pharAlias = 'sspak.phar') { |
| 10 | 10 | parent::__construct($path, $executor); |
| 11 | - if(!$this->isLocal()) throw new LogicException("Can't manipulate remote .sspak.phar files, only remote webroots."); |
|
| 11 | + if(!$this->isLocal()) { |
|
| 12 | + throw new LogicException("Can't manipulate remote .sspak.phar files, only remote webroots."); |
|
| 13 | + } |
|
| 12 | 14 | |
| 13 | 15 | $this->pharAlias = $pharAlias; |
| 14 | 16 | $this->pharPath = $path; |
@@ -17,7 +19,9 @@ discard block |
||
| 17 | 19 | if(substr($path,-5) === '.phar') { |
| 18 | 20 | $this->phar = new Phar($path, FilesystemIterator::CURRENT_AS_FILEINFO | FilesystemIterator::KEY_AS_FILENAME, |
| 19 | 21 | $this->pharAlias); |
| 20 | - if(!file_exists($this->path)) $this->makeExecutable(); |
|
| 22 | + if(!file_exists($this->path)) { |
|
| 23 | + $this->makeExecutable(); |
|
| 24 | + } |
|
| 21 | 25 | |
| 22 | 26 | // Non-executable Tar version |
| 23 | 27 | } else { |
@@ -154,7 +158,9 @@ discard block |
||
| 154 | 158 | $content = $this->content('git-remote'); |
| 155 | 159 | $details = array(); |
| 156 | 160 | foreach(explode("\n", trim($content)) as $line) { |
| 157 | - if(!$line) continue; |
|
| 161 | + if(!$line) { |
|
| 162 | + continue; |
|
| 163 | + } |
|
| 158 | 164 | |
| 159 | 165 | if(preg_match('/^([^ ]+) *= *(.*)$/', $line, $matches)) { |
| 160 | 166 | $details[$matches[1]] = $matches[2]; |