Passed
Branch develop (4360e0)
by compolom
06:11
created
src/File.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace Compolomus\BinaryFileStorage;
4 4
 
Please login to merge, or discard this patch.
src/Storage.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/Upload.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php declare(strict_types=1);
1
+<?php declare(strict_types = 1);
2 2
 
3 3
 namespace Compolomus\BinaryFileStorage;
4 4
 
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
             foreach ($file as $key => $value) {
53 53
                 !is_array($value)
54 54
                     ? $result[$fieldName][$key] = $value
55
-                    : array_walk($value, function ($v, $k) use (&$result, $key) {
55
+                    : array_walk($value, function($v, $k) use (&$result, $key) {
56 56
                     $result[$k][$key] = $v;
57 57
                 });
58 58
             }
Please login to merge, or discard this patch.