Completed
Push — master ( bba39e...5bbe3c )
by Alessandro
15:16 queued 05:27
created
src/Paraunit/Command/CoverageCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
      */
45 45
     protected function execute(InputInterface $input, OutputInterface $output)
46 46
     {
47
-        if (! $this->hasChosenCoverageMethod($input)) {
47
+        if ( ! $this->hasChosenCoverageMethod($input)) {
48 48
             throw new \InvalidArgumentException('You should choose at least one method of coverage output, between Clover, XML or HTML');
49 49
         }
50 50
 
Please login to merge, or discard this patch.
src/Paraunit/Configuration/ParallelConfiguration.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
 
55 55
         $eventDispatcherPass = 'Symfony\Component\EventDispatcher\DependencyInjection\RegisterListenersPass';
56 56
         $deprecatedPass = 'Symfony\Component\HttpKernel\DependencyInjection\RegisterListenersPass';
57
-        if (! class_exists($eventDispatcherPass)) {
57
+        if ( ! class_exists($eventDispatcherPass)) {
58 58
             class_alias($deprecatedPass, $eventDispatcherPass);
59 59
         }
60 60
 
Please login to merge, or discard this patch.
src/Paraunit/Configuration/PHPDbgBinFile.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
      */
28 28
     public function getPhpDbgBin()
29 29
     {
30
-        if (! $this->isAvailable()) {
30
+        if ( ! $this->isAvailable()) {
31 31
             throw new \RuntimeException('PHPDbg is not available!');
32 32
         }
33 33
 
@@ -47,6 +47,6 @@  discard block
 block discarded – undo
47 47
         $locator = new Process('command -v phpdbg');
48 48
         $locator->run();
49 49
 
50
-        return (string) preg_replace('/\s/', '', $locator->getOutput());
50
+        return (string)preg_replace('/\s/', '', $locator->getOutput());
51 51
     }
52 52
 }
Please login to merge, or discard this patch.
src/Paraunit/Printer/SingleResultFormatter.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
     {
40 40
         $format = $singleResult->getTestResultFormat();
41 41
 
42
-        if (! $format instanceof TestResultWithSymbolFormat) {
42
+        if ( ! $format instanceof TestResultWithSymbolFormat) {
43 43
             return '';
44 44
         }
45 45
 
Please login to merge, or discard this patch.
src/Paraunit/Bin/run-paraunit.inc.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 #!/usr/bin/env php
2 2
 <?php
3 3
 
4
-if (! ini_get('date.timezone') && ! date_default_timezone_get()) {
4
+if ( ! ini_get('date.timezone') && ! date_default_timezone_get()) {
5 5
     date_default_timezone_set('UTC');
6 6
 }
7 7
 
Please login to merge, or discard this patch.
src/Paraunit/Parser/JSON/GenericParser.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
      */
53 53
     protected function logMatches(\stdClass $log)
54 54
     {
55
-        if (! property_exists($log, 'status')) {
55
+        if ( ! property_exists($log, 'status')) {
56 56
             return false;
57 57
         }
58 58
 
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
             return true;
65 65
         }
66 66
 
67
-        if (! property_exists($log, 'message')) {
67
+        if ( ! property_exists($log, 'message')) {
68 68
             return false;
69 69
         }
70 70
 
Please login to merge, or discard this patch.
src/Paraunit/Filter/Filter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -159,7 +159,7 @@
 block discarded – undo
159 159
     private function filterByString(array $aggregatedFiles, $stringFilter)
160 160
     {
161 161
         if ($stringFilter !== null) {
162
-            $aggregatedFiles = array_filter($aggregatedFiles, function ($value) use ($stringFilter) {
162
+            $aggregatedFiles = array_filter($aggregatedFiles, function($value) use ($stringFilter) {
163 163
                 return stripos($value, $stringFilter) !== false;
164 164
             });
165 165
         }
Please login to merge, or discard this patch.
src/Paraunit/Parser/JSON/LogPrinter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
             $logFilename = $this->getLogFilename($suite);
163 163
 
164 164
             $logDir = dirname($logFilename);
165
-            if (! @mkdir($logDir, 0777, true) && !is_dir($logDir)) {
165
+            if ( ! @mkdir($logDir, 0777, true) && ! is_dir($logDir)) {
166 166
                 throw new \RuntimeException('Cannot create folder for JSON logs');
167 167
             }
168 168
 
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
      */
260 260
     public function write($buffer)
261 261
     {
262
-        array_walk_recursive($buffer, function (&$input) {
262
+        array_walk_recursive($buffer, function(&$input) {
263 263
             if (is_string($input)) {
264 264
                 $input = \PHPUnit_Util_String::convertToUtf8($input);
265 265
             }
Please login to merge, or discard this patch.
src/Paraunit/Configuration/PHPUnitConfig.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
             $configFile .= DIRECTORY_SEPARATOR . self::DEFAULT_FILE_NAME;
99 99
         }
100 100
 
101
-        if (! is_file($configFile) || ! is_readable($configFile)) {
101
+        if ( ! is_file($configFile) || ! is_readable($configFile)) {
102 102
             throw new \InvalidArgumentException('Config file ' . $configFile . ' does not exist or is not readable');
103 103
         }
104 104
 
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
         $logListenerNode->appendChild($argumentsNode);
159 159
 
160 160
         $listenersNode = $rootNode->getElementsByTagName('listeners')->item(0);
161
-        if (! $listenersNode) {
161
+        if ( ! $listenersNode) {
162 162
             $listenersNode = $document->createElement('listeners');
163 163
             $rootNode->appendChild($listenersNode);
164 164
         }
Please login to merge, or discard this patch.