Completed
Push — output_parsers_refactor ( d2cb12...a7c18a )
by Alessandro
03:46
created
src/Paraunit/Parser/RetryParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,6 +77,6 @@
 block discarded – undo
77 77
     {
78 78
         $regex = implode('|', $patterns);
79 79
 
80
-        return '/' . $regex . '/';
80
+        return '/'.$regex.'/';
81 81
     }
82 82
 }
Please login to merge, or discard this patch.
src/Paraunit/Parser/JSONLogFetcher.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,6 +50,6 @@
 block discarded – undo
50 50
     {
51 51
         $splitted = preg_replace('/\}\{/', '},{', $jsonString);
52 52
 
53
-        return '[' . $splitted . ']';
53
+        return '['.$splitted.']';
54 54
     }
55 55
 }
Please login to merge, or discard this patch.
src/Paraunit/Runner/Runner.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -167,7 +167,7 @@
 block discarded – undo
167 167
         if (array_key_exists($pHash, $this->processRunning)) {
168 168
             unset($this->processRunning[$pHash]);
169 169
         } else {
170
-            throw new \Exception('Trying to remove a non-existing process from running stack\! ID: ' . $pHash);
170
+            throw new \Exception('Trying to remove a non-existing process from running stack\! ID: '.$pHash);
171 171
         }
172 172
 
173 173
         if ($process->isToBeRetried()) {
Please login to merge, or discard this patch.
src/Paraunit/Filter/Filter.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
     public function filterTestFiles(PHPUnitConfigFile $configFile, $testSuiteFilter = null)
40 40
     {
41 41
         $aggregatedFiles = array();
42
-        $this->relativePath = $configFile->getDirectory() . DIRECTORY_SEPARATOR;
42
+        $this->relativePath = $configFile->getDirectory().DIRECTORY_SEPARATOR;
43 43
 
44 44
         $document = $this->utilXml->loadFile($configFile->getFileFullPath(), false, true, true);
45 45
         $xpath = new \DOMXPath($document);
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
             $directory = (string)$directoryNode->nodeValue;
95 95
 
96 96
             $files = $this->fileIteratorFacade->getFilesAsArray(
97
-                $this->relativePath . $directory,
97
+                $this->relativePath.$directory,
98 98
                 $this->getDOMNodeAttribute($directoryNode, 'suffix', 'Test.php'),
99 99
                 $this->getDOMNodeAttribute($directoryNode, 'prefix', ''),
100 100
                 $excludes
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
     private function addTestsFromFileNodes(\DOMNode $testSuiteNode, array &$aggregatedFiles)
114 114
     {
115 115
         foreach ($testSuiteNode->getElementsByTagName('file') as $fileNode) {
116
-            $fileName = $this->relativePath . (string)$fileNode->nodeValue;
116
+            $fileName = $this->relativePath.(string)$fileNode->nodeValue;
117 117
             $this->addFileToAggregateArray($aggregatedFiles, $fileName);
118 118
         }
119 119
     }
Please login to merge, or discard this patch.
src/Paraunit/Lifecycle/EngineEvent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
      */
58 58
     public function get($contextParameterName)
59 59
     {
60
-        if (!$this->has($contextParameterName)) {
60
+        if ( ! $this->has($contextParameterName)) {
61 61
             throw new \LogicException('Cannot find parameter: '.$contextParameterName);
62 62
         }
63 63
 
Please login to merge, or discard this patch.
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.