Completed
Pull Request — master (#128)
by Alessandro
04:58 queued 02:19
created
src/Paraunit/Parser/JSON/LogPrinter.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
         public function __construct()
55 55
         {
56 56
             $file = fopen($this->getLogFilename(), 'wt');
57
-            if (! \is_resource($file)) {
57
+            if ( ! \is_resource($file)) {
58 58
                 throw new \RuntimeException('Unable to create log file');
59 59
             }
60 60
             $this->logFile = $file;
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
          */
262 262
         private function writeArray($buffer)
263 263
         {
264
-            array_walk_recursive($buffer, function (&$input) {
264
+            array_walk_recursive($buffer, function(&$input) {
265 265
                 if (is_string($input)) {
266 266
                     $input = $this->convertToUtf8($input);
267 267
                 }
@@ -287,7 +287,7 @@  discard block
 block discarded – undo
287 287
         private function getLogFilename(): string
288 288
         {
289 289
             $logDir = $this->getLogDirectory();
290
-            if (! @mkdir($logDir, 0777, true) && ! is_dir($logDir)) {
290
+            if ( ! @mkdir($logDir, 0777, true) && ! is_dir($logDir)) {
291 291
                 throw new \RuntimeException('Cannot create folder for JSON logs');
292 292
             }
293 293
 
@@ -320,7 +320,7 @@  discard block
 block discarded – undo
320 320
 
321 321
         private function convertToUtf8($string): string
322 322
         {
323
-            if (! \mb_detect_encoding($string, 'UTF-8', true)) {
323
+            if ( ! \mb_detect_encoding($string, 'UTF-8', true)) {
324 324
                 return \mb_convert_encoding($string, 'UTF-8');
325 325
             }
326 326
 
Please login to merge, or discard this patch.
src/Paraunit/Configuration/PHPUnitBinFile.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
     private function setPhpUnitBin($phpUnitBin): void
56 56
     {
57 57
         $realpath = realpath($phpUnitBin);
58
-        if (! $realpath) {
58
+        if ( ! $realpath) {
59 59
             throw new \RuntimeException('Unable set PHPUnit binary real path');
60 60
         }
61 61
 
Please login to merge, or discard this patch.
src/Paraunit/Configuration/PHPDbgBinFile.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
      */
30 30
     public function getPhpDbgBin(): string
31 31
     {
32
-        if (! $this->isAvailable()) {
32
+        if ( ! $this->isAvailable()) {
33 33
             throw new \RuntimeException('PHPDbg is not available!');
34 34
         }
35 35
 
Please login to merge, or discard this patch.