@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | -declare(strict_types=1); |
|
| 2 | +declare(strict_types = 1); |
|
| 3 | 3 | |
| 4 | 4 | namespace Paraunit\Printer; |
| 5 | 5 | |
@@ -1,6 +1,6 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | |