@@ -628,14 +628,11 @@ |
||
628 | 628 | public function setSSH($ssh) :self { |
629 | 629 | if ($ssh instanceof SSH) { |
630 | 630 | $this->config[self::CONF_SSH] = $ssh; |
631 | - } |
|
632 | - else if (is_array($ssh)) { |
|
631 | + } else if (is_array($ssh)) { |
|
633 | 632 | $this->config[self::CONF_SSH] = new SSH($ssh); |
634 | - } |
|
635 | - else if ($ssh === null) { |
|
633 | + } else if ($ssh === null) { |
|
636 | 634 | $this->config[self::CONF_SSH] = null; |
637 | - } |
|
638 | - else { |
|
635 | + } else { |
|
639 | 636 | throw new Exception\Command('ssh config has to be an instance of \xobotyi\rsync\SSH, array or null, got ' . gettype($ssh)); |
640 | 637 | } |
641 | 638 |
@@ -369,8 +369,7 @@ |
||
369 | 369 | if (is_bool($val)) { |
370 | 370 | if ($val) { |
371 | 371 | $this->options[$optName] = $val; |
372 | - } |
|
373 | - else { |
|
372 | + } else { |
|
374 | 373 | unset($this->options[$optName]); |
375 | 374 | } |
376 | 375 |