@@ -1,4 +1,4 @@ |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | |
| 3 | 3 | namespace Compolomus\BinaryFileStorage; |
| 4 | 4 | |
@@ -1,4 +1,4 @@ discard block |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | |
| 3 | 3 | namespace Compolomus\BinaryFileStorage; |
| 4 | 4 | |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | return $dir; |
| 36 | 36 | } |
| 37 | 37 | |
| 38 | - public function check(array $input): ?array |
|
| 38 | + public function check(array $input): ? array |
|
| 39 | 39 | { |
| 40 | 40 | if (count($input)) { |
| 41 | 41 | return $this->add($this->upload->process($input)); |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | $this->config['secondDirLen']); |
| 100 | 100 | } |
| 101 | 101 | |
| 102 | - public function getInfoFile(string $file): ?array |
|
| 102 | + public function getInfoFile(string $file): ? array |
|
| 103 | 103 | { |
| 104 | 104 | $fileName = $this->dirName($file) . DIRECTORY_SEPARATOR . $file . '.php'; |
| 105 | 105 | return is_file($fileName) ? include $fileName : null; |
@@ -1,4 +1,4 @@ discard block |
||
| 1 | -<?php declare(strict_types=1); |
|
| 1 | +<?php declare(strict_types = 1); |
|
| 2 | 2 | |
| 3 | 3 | namespace Compolomus\BinaryFileStorage; |
| 4 | 4 | |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | if (!is_array($value)) { |
| 54 | 54 | $result[$fieldName][$key] = $value; |
| 55 | 55 | } else { |
| 56 | - array_walk($value, function ($v, $k) use (&$result, $key) { |
|
| 56 | + array_walk($value, function($v, $k) use (&$result, $key) { |
|
| 57 | 57 | $result[$k][$key] = $v; |
| 58 | 58 | }); |
| 59 | 59 | } |