Completed
Branch master (38e467)
by Alessandro
02:16
created
src/Paraunit/Parser/JSONLogParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -130,7 +130,7 @@
 block discarded – undo
130 130
         $process->reportAbnormalTermination();
131 131
         $this->getAbnormalTerminatedOutputContainer()->addToOutputBuffer(
132 132
             $process,
133
-            'Culpable test function: ' . $culpableFunctionName . " -- complete test output:\n\n" . $process->getOutput()
133
+            'Culpable test function: '.$culpableFunctionName." -- complete test output:\n\n".$process->getOutput()
134 134
         );
135 135
     }
136 136
 }
Please login to merge, or discard this patch.
src/Paraunit/Parser/AbstractParser.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -90,9 +90,9 @@
 block discarded – undo
90 90
         $stackTrace = '';
91 91
 
92 92
         foreach ($log->trace as $step) {
93
-            $stackTrace .= "\n" . $step->file . ':' . $step->line;
93
+            $stackTrace .= "\n".$step->file.':'.$step->line;
94 94
         }
95 95
 
96
-        return $log->test . "\n" . $log->message . "\n" . $stackTrace;
96
+        return $log->test."\n".$log->message."\n".$stackTrace;
97 97
     }
98 98
 }
Please login to merge, or discard this patch.
src/Paraunit/Process/ProcessFactory.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -66,11 +66,11 @@
 block discarded – undo
66 66
      */
67 67
     private function createCommandLine($testFilePath, $uniqueId)
68 68
     {
69
-        return $this->phpUnitBin .
70
-        ' -c ' . $this->phpunitConfigFile->getFileFullPath() .
71
-        ' --colors=never' .
72
-        ' --log-json=' . $this->jsonLogFilename->generateFromUniqueId($uniqueId) .
73
-        ' ' . $testFilePath;
69
+        return $this->phpUnitBin.
70
+        ' -c '.$this->phpunitConfigFile->getFileFullPath().
71
+        ' --colors=never'.
72
+        ' --log-json='.$this->jsonLogFilename->generateFromUniqueId($uniqueId).
73
+        ' '.$testFilePath;
74 74
     }
75 75
 
76 76
     /**
Please login to merge, or discard this patch.
src/Paraunit/Lifecycle/AbstractEvent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
     public function get($contextParameterName)
32 32
     {
33 33
         if ( ! $this->has($contextParameterName)) {
34
-            throw new \LogicException('Cannot find parameter: ' . $contextParameterName);
34
+            throw new \LogicException('Cannot find parameter: '.$contextParameterName);
35 35
         }
36 36
 
37 37
         return $this->context[$contextParameterName];
Please login to merge, or discard this patch.
src/Paraunit/Configuration/Paraunit.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
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());
Please login to merge, or discard this patch.
src/Paraunit/File/Cleaner.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,8 +41,8 @@
 block discarded – undo
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());
Please login to merge, or discard this patch.
src/Paraunit/File/TempDirectory.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -29,10 +29,10 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Paraunit/Configuration/JSONLogFilename.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,6 +30,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.