Completed
Pull Request — master (#52)
by Thomas Mauro
09:16
created
src/Paraunit/Configuration/PHPUnitBinFile.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -21,10 +21,10 @@
 block discarded – undo
21 21
      */
22 22
     public function __construct()
23 23
     {
24
-        if (file_exists(__DIR__.self::PHPUNIT_RELPATH_FOR_VENDOR)) {
25
-            $this->phpUnitBin = __DIR__.self::PHPUNIT_RELPATH_FOR_VENDOR;
26
-        } elseif (file_exists(__DIR__.self::PHPUNIT_RELPATH_FOR_STANDALONE)) {
27
-            $this->phpUnitBin = __DIR__.self::PHPUNIT_RELPATH_FOR_STANDALONE;
24
+        if (file_exists(__DIR__ . self::PHPUNIT_RELPATH_FOR_VENDOR)) {
25
+            $this->phpUnitBin = __DIR__ . self::PHPUNIT_RELPATH_FOR_VENDOR;
26
+        } elseif (file_exists(__DIR__ . self::PHPUNIT_RELPATH_FOR_STANDALONE)) {
27
+            $this->phpUnitBin = __DIR__ . self::PHPUNIT_RELPATH_FOR_STANDALONE;
28 28
         } else {
29 29
             throw new \Exception('PHPUnit bin not found');
30 30
         }
Please login to merge, or discard this patch.
src/Paraunit/Process/AbstractParaunitProcess.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -136,6 +136,6 @@
 block discarded – undo
136 136
      */
137 137
     public function setWaitingForTestResult($waitingForTestResult)
138 138
     {
139
-        $this->waitingForTestResult = (bool) $waitingForTestResult;
139
+        $this->waitingForTestResult = (bool)$waitingForTestResult;
140 140
     }
141 141
 }
Please login to merge, or discard this patch.
src/Paraunit/Parser/ParserCompilerPass.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
 
26 26
         uasort(
27 27
             $taggedServices,
28
-            function ($a, $b) {
28
+            function($a, $b) {
29 29
                 return $a[0]['priority'] > $b[0]['priority'];
30 30
             }
31 31
         );
Please login to merge, or discard this patch.
src/Paraunit/Process/ProcessFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
      */
39 39
     public function createProcess($testFilePath)
40 40
     {
41
-        if (! $this->phpunitConfigFile instanceof PHPUnitConfigFile) {
41
+        if ( ! $this->phpunitConfigFile instanceof PHPUnitConfigFile) {
42 42
             throw new \Exception('PHPUnit config missing');
43 43
         }
44 44
 
Please login to merge, or discard this patch.
src/Paraunit/Printer/FailuresPrinter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
      */
36 36
     private function printFailuresOutput(TestResultContainer $testResultContainer, OutputInterface $output)
37 37
     {
38
-        if (! $testResultContainer->getTestResultFormat()->shouldPrintTestOutput()) {
38
+        if ( ! $testResultContainer->getTestResultFormat()->shouldPrintTestOutput()) {
39 39
             return;
40 40
         }
41 41
 
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
@@ -37,13 +37,13 @@
 block discarded – undo
37 37
     {
38 38
         $process = $processEvent->getProcess();
39 39
 
40
-        if (! $processEvent->has('output_interface')) {
40
+        if ( ! $processEvent->has('output_interface')) {
41 41
             throw new \BadMethodCallException('missing output_interface');
42 42
         }
43 43
 
44 44
         $this->output = $processEvent->get('output_interface');
45 45
 
46
-        if (! $this->output instanceof OutputInterface) {
46
+        if ( ! $this->output instanceof OutputInterface) {
47 47
             throw new \BadMethodCallException('output_interface, unexpected type: ' . get_class($this->output));
48 48
         }
49 49
 
Please login to merge, or discard this patch.
src/Paraunit/Printer/FilesRecapPrinter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
      */
33 33
     private function printFileRecap(TestResultContainer $testResultContainer, OutputInterface $output)
34 34
     {
35
-        if (! $testResultContainer->getTestResultFormat()->shouldPrintFilesRecap()) {
35
+        if ( ! $testResultContainer->getTestResultFormat()->shouldPrintFilesRecap()) {
36 36
             return;
37 37
         }
38 38
 
Please login to merge, or discard this patch.
src/Paraunit/File/Cleaner.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
      */
32 32
     public static function cleanUpDir($dir)
33 33
     {
34
-        if (! file_exists($dir)) {
34
+        if ( ! file_exists($dir)) {
35 35
             return false;
36 36
         }
37 37
 
Please login to merge, or discard this patch.
src/Paraunit/TestResult/TestResultFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
             );
38 38
         }
39 39
 
40
-        if (! property_exists($log, 'message')) {
40
+        if ( ! property_exists($log, 'message')) {
41 41
             return new MuteTestResult();
42 42
         }
43 43
 
Please login to merge, or discard this patch.