@@ -24,7 +24,7 @@ |
||
| 24 | 24 | { |
| 25 | 25 | $containerBuilder = new ContainerBuilder(); |
| 26 | 26 | |
| 27 | - $loader = new YamlFileLoader($containerBuilder, new FileLocator(__DIR__ . '/../Resources/config/')); |
|
| 27 | + $loader = new YamlFileLoader($containerBuilder, new FileLocator(__DIR__.'/../Resources/config/')); |
|
| 28 | 28 | $loader->load('services.yml'); |
| 29 | 29 | |
| 30 | 30 | $containerBuilder->addCompilerPass(new RegisterListenersPass()); |
@@ -41,8 +41,8 @@ |
||
| 41 | 41 | $it = new \RecursiveDirectoryIterator($dir, \RecursiveDirectoryIterator::SKIP_DOTS); |
| 42 | 42 | $files = new \RecursiveIteratorIterator($it, \RecursiveIteratorIterator::CHILD_FIRST); |
| 43 | 43 | |
| 44 | - foreach($files as $file) { |
|
| 45 | - if ($file->isDir()){ |
|
| 44 | + foreach ($files as $file) { |
|
| 45 | + if ($file->isDir()) { |
|
| 46 | 46 | rmdir($file->getRealPath()); |
| 47 | 47 | } else { |
| 48 | 48 | unlink($file->getRealPath()); |
@@ -29,10 +29,10 @@ discard block |
||
| 29 | 29 | */ |
| 30 | 30 | public function getTempDirForThisExecution() |
| 31 | 31 | { |
| 32 | - $dir = self::getTempBaseDir() . DIRECTORY_SEPARATOR . $this->timestamp; |
|
| 32 | + $dir = self::getTempBaseDir().DIRECTORY_SEPARATOR.$this->timestamp; |
|
| 33 | 33 | self::mkdirIfNotExists($dir); |
| 34 | - self::mkdirIfNotExists($dir . DIRECTORY_SEPARATOR . 'logs'); |
|
| 35 | - self::mkdirIfNotExists($dir . DIRECTORY_SEPARATOR . 'coverage'); |
|
| 34 | + self::mkdirIfNotExists($dir.DIRECTORY_SEPARATOR.'logs'); |
|
| 35 | + self::mkdirIfNotExists($dir.DIRECTORY_SEPARATOR.'coverage'); |
|
| 36 | 36 | |
| 37 | 37 | return $dir; |
| 38 | 38 | } |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | { |
| 45 | 45 | foreach (self::$tempDirs as $directory) { |
| 46 | 46 | if (file_exists($directory)) { |
| 47 | - $baseDir = $directory . DIRECTORY_SEPARATOR . 'paraunit'; |
|
| 47 | + $baseDir = $directory.DIRECTORY_SEPARATOR.'paraunit'; |
|
| 48 | 48 | self::mkdirIfNotExists($baseDir); |
| 49 | 49 | |
| 50 | 50 | return $baseDir; |
@@ -30,6 +30,6 @@ |
||
| 30 | 30 | |
| 31 | 31 | public function generateFromUniqueId($uniqueId) |
| 32 | 32 | { |
| 33 | - return $this->tempDirectory->getTempDirForThisExecution() . '/logs/' . $uniqueId . '.json.log'; |
|
| 33 | + return $this->tempDirectory->getTempDirForThisExecution().'/logs/'.$uniqueId.'.json.log'; |
|
| 34 | 34 | } |
| 35 | 35 | } |
@@ -136,6 +136,6 @@ |
||
| 136 | 136 | */ |
| 137 | 137 | public function setWaitingForTestResult($waitingForTestResult) |
| 138 | 138 | { |
| 139 | - $this->waitingForTestResult = (bool) $waitingForTestResult; |
|
| 139 | + $this->waitingForTestResult = (bool)$waitingForTestResult; |
|
| 140 | 140 | } |
| 141 | 141 | } |
@@ -36,7 +36,7 @@ |
||
| 36 | 36 | */ |
| 37 | 37 | public function countMessages(); |
| 38 | 38 | |
| 39 | - /** |
|
| 39 | + /** |
|
| 40 | 40 | * @return string |
| 41 | 41 | */ |
| 42 | 42 | public function getTag(); |
@@ -46,6 +46,6 @@ |
||
| 46 | 46 | */ |
| 47 | 47 | public function __toString() |
| 48 | 48 | { |
| 49 | - return $this->filePath . ':' . $this->line; |
|
| 49 | + return $this->filePath.':'.$this->line; |
|
| 50 | 50 | } |
| 51 | 51 | } |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | */ |
| 17 | 17 | public function getFailureMessage() |
| 18 | 18 | { |
| 19 | - return parent::getFailureMessage() . "\n" . $this->testOutput; |
|
| 19 | + return parent::getFailureMessage()."\n".$this->testOutput; |
|
| 20 | 20 | } |
| 21 | 21 | |
| 22 | 22 | /** |