Completed
Pull Request — master (#86)
by Alessandro
05:32
created
src/Paraunit/Configuration/PHPUnitConfig.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -105,6 +105,9 @@
 block discarded – undo
105 105
         return $configFile;
106 106
     }
107 107
 
108
+    /**
109
+     * @param string $originalConfigFilename
110
+     */
108 111
     private function copyAndAlterConfig($originalConfigFilename)
109 112
     {
110 113
         $originalConfig = file_get_contents($originalConfigFilename);
Please login to merge, or discard this 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.
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/PhpCodeCoverageCompat.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
     private static function loadIfNotPresent($class, $alias)
40 40
     {
41
-        if (! class_exists($alias) && class_exists($class)) {
41
+        if ( ! class_exists($alias) && class_exists($class)) {
42 42
             class_alias($class, $alias);
43 43
         }
44 44
     }
Please login to merge, or discard this patch.