Completed
Branch output_parsers_refactor (69b7d7)
by Alessandro
02:50
created
src/Paraunit/Parser/AbstractParser.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -85,8 +85,8 @@
 block discarded – undo
85 85
      */
86 86
     private function assertConstantExist($constantName)
87 87
     {
88
-        if ( ! defined('static::' . $constantName)) {
89
-            throw new \Exception('Missing ' .$constantName . ' constant in ' . get_class($this));
88
+        if (!defined('static::' . $constantName)) {
89
+            throw new \Exception('Missing ' . $constantName . ' constant in ' . get_class($this));
90 90
         }
91 91
     }
92 92
 }
Please login to merge, or discard this patch.
src/Paraunit/Parser/ProcessOutputParser.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
     public function onProcessTerminated(ProcessEvent $processEvent)
40 40
     {
41 41
         foreach ($this->parsers as $parser) {
42
-            if ( ! $parser->parseAndContinue($processEvent->getProcess())) {
42
+            if (!$parser->parseAndContinue($processEvent->getProcess())) {
43 43
                 return;
44 44
             }
45 45
         }
Please login to merge, or discard this patch.
src/Paraunit/Process/ParaunitProcessAbstract.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -147,6 +147,6 @@
 block discarded – undo
147 147
      */
148 148
     public function isEmpty()
149 149
     {
150
-        return (bool) count($this->filename);
150
+        return (bool)count($this->filename);
151 151
     }
152 152
 }
Please login to merge, or discard this patch.
src/Paraunit/Printer/FinalPrinter.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
 
40 40
         $this->output = $engineEvent->getOutputInterface();
41 41
         $elapsedTime = $engineEvent->get('start')->diff($engineEvent->get('end'));
42
-        $completedProcesses =  $engineEvent->get('process_completed');
42
+        $completedProcesses = $engineEvent->get('process_completed');
43 43
 
44 44
         $this->output->writeln('');
45 45
         $this->output->writeln('');
@@ -47,14 +47,14 @@  discard block
 block discarded – undo
47 47
 
48 48
         $this->output->writeln('');
49 49
         $this->output->write('Executed: ');
50
-        $this->output->write(count($completedProcesses).' test classes, ');
50
+        $this->output->write(count($completedProcesses) . ' test classes, ');
51 51
 
52 52
         $testsCount = 0;
53 53
         foreach ($completedProcesses as $process) {
54 54
             $testsCount += count($process->getTestResults());
55 55
         }
56 56
 
57
-        $this->output->writeln($testsCount.' tests');
57
+        $this->output->writeln($testsCount . ' tests');
58 58
 
59 59
         $this->printAllFailuresOutput();
60 60
         $this->printAllFilesRecap();
Please login to merge, or discard this patch.
src/Paraunit/Printer/ProcessPrinter.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
             case 'S':
76 76
                 $this->printWithCounter('<skipped>S</skipped>');
77 77
                 break;
78
-           case 'R':
78
+            case 'R':
79 79
                 $this->printWithCounter('<risky>R</risky>');
80 80
                 break;
81 81
             case '.':
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,13 +24,13 @@
 block discarded – undo
24 24
     {
25 25
         $process = $processEvent->getProcess();
26 26
 
27
-        if ( ! $processEvent->has('output_interface')) {
27
+        if (!$processEvent->has('output_interface')) {
28 28
             throw new \BadMethodCallException('missing output_interface');
29 29
         }
30 30
 
31 31
         $this->output = $processEvent->get('output_interface');
32 32
 
33
-        if ( ! $this->output instanceof OutputInterface) {
33
+        if (!$this->output instanceof OutputInterface) {
34 34
             throw new \BadMethodCallException('output_interface, unexpected type: ' . get_class($this->output));
35 35
         }
36 36
 
Please login to merge, or discard this patch.
src/Paraunit/Tests/Unit/SegmentationFaultParserTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
         $parser = new SegmentationFaultParser();
17 17
 
18 18
         $this->assertEquals($expectedResult, $parser->parseAndContinue($process));
19
-        $this->assertEquals( ! $expectedResult, $process->hasSegmentationFaults());
19
+        $this->assertEquals(!$expectedResult, $process->hasSegmentationFaults());
20 20
     }
21 21
 
22 22
     public function processProvider()
Please login to merge, or discard this patch.
src/Paraunit/Tests/Unit/FatalErrorParserTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
 
18 18
         $this->assertEquals($expectedResult, $parser->parseAndContinue($process));
19 19
 
20
-        $this->assertEquals($expectedResult, ! $process->hasFatalErrors());
20
+        $this->assertEquals($expectedResult, !$process->hasFatalErrors());
21 21
     }
22 22
 
23 23
     public function processProvider()
Please login to merge, or discard this patch.