Passed
Push — master ( 46e32c...bf18a6 )
by Mariano
02:10
created
src/Extension/Phiremock.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
         array $options,
61 61
         PhiremockProcess $process = null
62 62
     ) {
63
-        $this->config['bin_path'] = Config::projectDir() . '../vendor/bin/phiremock';
63
+        $this->config['bin_path'] = Config::projectDir().'../vendor/bin/phiremock';
64 64
         $this->config['logs_path'] = Config::logDir();
65 65
         $this->config['expectations_path'] = null;
66 66
 
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
@@ -49,13 +49,13 @@  discard block
 block discarded – undo
49 49
      */
50 50
     public function start($ip, $port, $path, $logsPath, $debug, $expectationsPath)
51 51
     {
52
-        $phiremockPath = is_file($path) ? $path : $path . DIRECTORY_SEPARATOR . 'phiremock';
52
+        $phiremockPath = is_file($path) ? $path : $path.DIRECTORY_SEPARATOR.'phiremock';
53 53
         $expectationsPath = is_dir($expectationsPath) ? $expectationsPath : '';
54 54
 
55 55
         $this->initProcess($ip, $port, $debug, $expectationsPath, $phiremockPath);
56 56
         $this->logPhiremockCommand($debug);
57
-        $logFile = $logsPath . DIRECTORY_SEPARATOR . self::LOG_FILE_NAME;
58
-        $this->process->start(function ($type, $buffer) use ($logFile) {
57
+        $logFile = $logsPath.DIRECTORY_SEPARATOR.self::LOG_FILE_NAME;
58
+        $this->process->start(function($type, $buffer) use ($logFile) {
59 59
             file_put_contents($logFile, $buffer, FILE_APPEND);
60 60
         });
61 61
     }
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
     private function initProcess($ip, $port, $debug, $expectationsPath, $phiremockPath)
79 79
     {
80 80
         $commandline = [
81
-            $this->getCommandPrefix() . $phiremockPath,
81
+            $this->getCommandPrefix().$phiremockPath,
82 82
             '-i',
83 83
             $ip,
84 84
             '-p',
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
     private function logPhiremockCommand($debug)
103 103
     {
104 104
         if ($debug) {
105
-            echo 'Running ' . $this->process->getCommandLine() . PHP_EOL;
105
+            echo 'Running '.$this->process->getCommandLine().PHP_EOL;
106 106
         }
107 107
     }
108 108
 
Please login to merge, or discard this patch.