Completed
Pull Request — master (#116)
by Alessandro
08:37
created
src/Paraunit/Printer/FailuresPrinter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 
4 4
 namespace Paraunit\Printer;
5 5
 
Please login to merge, or discard this patch.
src/Paraunit/Parser/JSON/LogPrinter.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 namespace Paraunit\Parser\JSON;
6 6
 
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
          */
258 258
         private function writeArray($buffer)
259 259
         {
260
-            array_walk_recursive($buffer, function (&$input) {
260
+            array_walk_recursive($buffer, function(&$input) {
261 261
                 if (is_string($input)) {
262 262
                     $input = $this->convertToUtf8($input);
263 263
                 }
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
         private function getLogFilename(): string
284 284
         {
285 285
             $logDir = $this->getLogDirectory();
286
-            if (! @mkdir($logDir, 0777, true) && ! is_dir($logDir)) {
286
+            if ( ! @mkdir($logDir, 0777, true) && ! is_dir($logDir)) {
287 287
                 throw new \RuntimeException('Cannot create folder for JSON logs');
288 288
             }
289 289
     
@@ -316,7 +316,7 @@  discard block
 block discarded – undo
316 316
     
317 317
         private function convertToUtf8($string): string
318 318
         {
319
-            if (! \mb_detect_encoding($string, 'UTF-8', true)) {
319
+            if ( ! \mb_detect_encoding($string, 'UTF-8', true)) {
320 320
                 return \mb_convert_encoding($string, 'UTF-8');
321 321
             }
322 322
     
Please login to merge, or discard this patch.