@@ -45,7 +45,7 @@ |
||
| 45 | 45 | * @param string $path |
| 46 | 46 | * @param string $logsPath |
| 47 | 47 | * @param bool $debug |
| 48 | - * @param mixed $expectationsPath |
|
| 48 | + * @param string|null $expectationsPath |
|
| 49 | 49 | */ |
| 50 | 50 | public function start($ip, $port, $path, $logsPath, $debug, $expectationsPath) |
| 51 | 51 | { |
@@ -49,9 +49,9 @@ discard block |
||
| 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 | - $logFile = $logsPath . DIRECTORY_SEPARATOR . self::LOG_FILE_NAME; |
|
| 54 | + $logFile = $logsPath.DIRECTORY_SEPARATOR.self::LOG_FILE_NAME; |
|
| 55 | 55 | $this->initProcess($ip, $port, $debug, $expectationsPath, $phiremockPath, $logFile); |
| 56 | 56 | $this->logPhiremockCommand($debug); |
| 57 | 57 | $this->process->start(); |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | private function initProcess($ip, $port, $debug, $expectationsPath, $phiremockPath, $logFile) |
| 77 | 77 | { |
| 78 | 78 | $commandline = [ |
| 79 | - $this->getCommandPrefix() . $phiremockPath, |
|
| 79 | + $this->getCommandPrefix().$phiremockPath, |
|
| 80 | 80 | '-i', |
| 81 | 81 | $ip, |
| 82 | 82 | '-p', |
@@ -102,7 +102,7 @@ discard block |
||
| 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 | |
@@ -60,7 +60,7 @@ |
||
| 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 | |