Completed
Pull Request — master (#19)
by Frank
02:31
created
src/BackgroundProcess.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,13 +62,13 @@
 block discarded – undo
62 62
      */
63 63
     public function run($outputFile = '/dev/null', $append = false)
64 64
     {
65
-        if(is_null($this->command)) return;
65
+        if (is_null($this->command)) return;
66 66
         switch ($this->getOS()) {
67 67
             case self::OS_WINDOWS:
68 68
                 shell_exec(sprintf('%s &', $this->command, $outputFile));
69 69
                 break;
70 70
             case self::OS_NIX:
71
-                $this->pid = (int)shell_exec(sprintf('%s %s %s 2>&1 & echo $!', $this->command, ($append) ? '>>' : '>', $outputFile));
71
+                $this->pid = (int) shell_exec(sprintf('%s %s %s 2>&1 & echo $!', $this->command, ($append) ? '>>' : '>', $outputFile));
72 72
                 break;
73 73
             default:
74 74
                 throw new RuntimeException(sprintf(
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,9 @@
 block discarded – undo
62 62
      */
63 63
     public function run($outputFile = '/dev/null', $append = false)
64 64
     {
65
-        if(is_null($this->command)) return;
65
+        if(is_null($this->command)) {
66
+            return;
67
+        }
66 68
         switch ($this->getOS()) {
67 69
             case self::OS_WINDOWS:
68 70
                 shell_exec(sprintf('%s &', $this->command, $outputFile));
Please login to merge, or discard this patch.