Passed
Branch master (e78a02)
by Anton
04:32
created
src/Rsync.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -628,14 +628,11 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Command.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -369,8 +369,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.