Passed
Push — master ( 593bf9...5d8f62 )
by Mariano
04:47
created
src/Extension/Phiremock.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
         array $options,
60 60
         PhiremockProcess $process = null
61 61
     ) {
62
-        $this->config['bin_path'] = Config::projectDir() . '../vendor/bin/phiremock';
62
+        $this->config['bin_path'] = Config::projectDir().'../vendor/bin/phiremock';
63 63
         $this->config['logs_path'] = Config::logDir();
64 64
         parent::__construct($config, $options);
65 65
 
Please login to merge, or discard this patch.
src/Extension/PhiremockProcess.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -48,20 +48,20 @@
 block discarded – undo
48 48
     public function start($ip, $port, $path, $logsPath, $debug)
49 49
     {
50 50
         $path = realpath($path);
51
-        $phiremockPath = is_file($path) ? $path : $path . DIRECTORY_SEPARATOR . 'phiremock';
51
+        $phiremockPath = is_file($path) ? $path : $path.DIRECTORY_SEPARATOR.'phiremock';
52 52
       
53 53
         if ($debug) {
54
-            echo 'Running ' . $this->getCommandPrefix()
54
+            echo 'Running '.$this->getCommandPrefix()
55 55
                 . "{$phiremockPath} -i {$ip} -p {$port}"
56
-                . ($debug? ' -d' : '') . PHP_EOL;
56
+                . ($debug ? ' -d' : '').PHP_EOL;
57 57
         }
58 58
         $this->process = new Process(
59 59
             $this->getCommandPrefix()
60 60
             . "{$phiremockPath} -i {$ip} -p {$port}"
61 61
             . ($debug ? ' -d' : '')
62 62
         );
63
-        $logFile = $logsPath . DIRECTORY_SEPARATOR . self::LOG_FILE_NAME;
64
-        $this->process->start(function ($type, $buffer) use ($logFile) {
63
+        $logFile = $logsPath.DIRECTORY_SEPARATOR.self::LOG_FILE_NAME;
64
+        $this->process->start(function($type, $buffer) use ($logFile) {
65 65
             file_put_contents($logFile, $buffer, FILE_APPEND);
66 66
         });
67 67
         $this->process->setEnhanceSigchildCompatibility(true);
Please login to merge, or discard this patch.