Completed
Push — master ( 739b83...363525 )
by Alessandro
02:49
created
src/Paraunit/Configuration/PHPUnitConfigFile.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
             ? $inputPathOrFileName . DIRECTORY_SEPARATOR . self::DEFAULT_FILE_NAME
25 25
             : $inputPathOrFileName;
26 26
 
27
-        if ( ! is_file($configFile) || ! is_readable($configFile)) {
27
+        if (!is_file($configFile) || !is_readable($configFile)) {
28 28
             throw new \InvalidArgumentException('Config file ' . $configFile . ' does not exist or is not readable');
29 29
         }
30 30
 
Please login to merge, or discard this patch.
src/Paraunit/Printer/FinalPrinter.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -76,9 +76,9 @@  discard block
 block discarded – undo
76 76
             throw new \BadMethodCallException('missing argument/s');
77 77
         }
78 78
 
79
-        $outputInterface =  $engineEvent->getOutputInterface();
80
-        $elapsedTime =  $engineEvent->get('start')->diff($engineEvent->get('end'));
81
-        $completedProcesses =  $engineEvent->get('process_completed');
79
+        $outputInterface = $engineEvent->getOutputInterface();
80
+        $elapsedTime = $engineEvent->get('start')->diff($engineEvent->get('end'));
81
+        $completedProcesses = $engineEvent->get('process_completed');
82 82
 
83 83
         $outputInterface->writeln('');
84 84
         $outputInterface->writeln('');
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 
87 87
         $outputInterface->writeln('');
88 88
         $outputInterface->write('Executed: ');
89
-        $outputInterface->write(count($completedProcesses).' test classes, ');
89
+        $outputInterface->write(count($completedProcesses) . ' test classes, ');
90 90
 
91 91
         $testsCount = 0;
92 92
         foreach ($completedProcesses as $process) {
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
             $testsCount += count($process->getTestResults());
95 95
         }
96 96
 
97
-        $outputInterface->writeln($testsCount.' tests');
97
+        $outputInterface->writeln($testsCount . ' tests');
98 98
 
99 99
         foreach ($this->outputContainers as $outputContainer) {
100 100
             $this->printFailuresOutput($outputInterface, $outputContainer);
Please login to merge, or discard this patch.
src/Paraunit/Printer/ConsoleFormatter.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
     public function onEngineStart(EngineEvent $engineEvent)
18 18
     {
19 19
 
20
-        $outputInterface= $engineEvent->getOutputInterface();
20
+        $outputInterface = $engineEvent->getOutputInterface();
21 21
 
22 22
         if ($outputInterface->getFormatter()) {
23 23
             $style = new OutputFormatterStyle('green', null, array('bold', 'blink'));
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
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
     public function get($contextParameterName)
59 59
     {
60 60
         if (!$this->has($contextParameterName)) {
61
-            throw new \LogicException('Cannot find parameter: '.$contextParameterName);
61
+            throw new \LogicException('Cannot find parameter: ' . $contextParameterName);
62 62
         }
63 63
 
64 64
         return $this->context[$contextParameterName];
Please login to merge, or discard this patch.
src/Paraunit/Printer/ProcessPrinter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,13 +21,13 @@
 block discarded – undo
21 21
     {
22 22
         $process = $processEvent->getProcess();
23 23
 
24
-        if ( ! $processEvent->has('output_interface')) {
24
+        if (!$processEvent->has('output_interface')) {
25 25
             throw new \BadMethodCallException('missing output_interface');
26 26
         }
27 27
 
28 28
         $output = $processEvent->get('output_interface');
29 29
 
30
-        if ( ! $output instanceof OutputInterface) {
30
+        if (!$output instanceof OutputInterface) {
31 31
             throw new \BadMethodCallException('output_interface, unexpected type: ' . get_class($output));
32 32
         }
33 33
 
Please login to merge, or discard this patch.
src/Paraunit/Tests/Functional/RunnerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -134,7 +134,7 @@
 block discarded – undo
134 134
     {
135 135
         $phpunitVersion = new \PHPUnit_Runner_Version();
136 136
 
137
-        if ( ! preg_match('/^5\./', $phpunitVersion->id())) {
137
+        if (!preg_match('/^5\./', $phpunitVersion->id())) {
138 138
             $this->markTestSkipped('PHPUnit < 5 in this env, warnings are not present.');
139 139
         }
140 140
 
Please login to merge, or discard this patch.