Completed
Push — master ( 825767...a283c3 )
by Olivier
02:15
created
Composer/ScriptHandler.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -31,6 +31,9 @@
 block discarded – undo
31 31
         static::executeCommand($event, $consoleDir, 'rabbitmq:vhost:define '.$vhost, $options['process-timeout']);
32 32
     }
33 33
 
34
+    /**
35
+     * @param string $cmd
36
+     */
34 37
     protected static function executeCommand(CommandEvent $event, $consoleDir, $cmd, $timeout = 300)
35 38
     {
36 39
         $php = escapeshellarg(static::getPhp(false));
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
         }
42 42
 
43 43
         $process = new Process($php.($phpArgs ? ' '.$phpArgs : '').' '.$console.' '.$cmd, null, null, null, $timeout);
44
-        $process->run(function ($type, $buffer) use ($event) { $event->getIO()->write($buffer, false); });
44
+        $process->run(function($type, $buffer) use ($event) { $event->getIO()->write($buffer, false); });
45 45
         if (!$process->isSuccessful()) {
46 46
             throw new \RuntimeException(sprintf("An error occurred when executing the \"%s\" command:\n\n%s\n\n%s.", escapeshellarg($cmd), $process->getOutput(), $process->getErrorOutput()));
47 47
         }
Please login to merge, or discard this patch.