@@ -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 @@ |
||
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)); |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | { |
90 | 90 | $alpha = [" Bytes", " KB", " MB", " GB", " TB", " PB", " EB", " ZB", " YB"]; |
91 | 91 | return $size ? round($size / pow(1024, ($iterator = floor(log($size, 1024)))), |
92 | - 2) . $alpha[(int)$iterator] : '0 Bytes'; |
|
92 | + 2) . $alpha[(int) $iterator] : '0 Bytes'; |
|
93 | 93 | } |
94 | 94 | |
95 | 95 | public function dirName(string $file): string |
@@ -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; |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | 'time' => $splFileObject->getMTime() |
117 | 117 | ]; |
118 | 118 | } |
119 | - uasort($files, function (array $first, array $second): int { |
|
119 | + uasort($files, function(array $first, array $second): int { |
|
120 | 120 | return ($first['time'] <=> $second['time']); |
121 | 121 | }); |
122 | 122 | } |