@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | */ |
31 | 31 | public function register() |
32 | 32 | { |
33 | - $this->app->singleton('chunky', function (Container $app) { |
|
33 | + $this->app->singleton('chunky', function(Container $app) { |
|
34 | 34 | $settings = new ChunkySettings( |
35 | 35 | $app->make('config') |
36 | 36 | ); |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | ); |
42 | 42 | }); |
43 | 43 | |
44 | - $this->app->singleton(StrategyFactoryContract::class, function (Container $app) { |
|
44 | + $this->app->singleton(StrategyFactoryContract::class, function(Container $app) { |
|
45 | 45 | return new StrategyFactory( |
46 | 46 | $app->make('config')->get('chunky.strategies') |
47 | 47 | ); |
@@ -107,7 +107,7 @@ |
||
107 | 107 | |
108 | 108 | foreach (config('chunky.validation') as $input => $config) { |
109 | 109 | if ( |
110 | - ! in_array($input, ['index', 'file', 'chunkSize', 'totalSize']) |
|
110 | + !in_array($input, ['index', 'file', 'chunkSize', 'totalSize']) |
|
111 | 111 | && Arr::has($config, 'key') |
112 | 112 | && Arr::has($config, 'rules') |
113 | 113 | ) { |
@@ -37,7 +37,7 @@ |
||
37 | 37 | |
38 | 38 | public function __call($method, $parameters) |
39 | 39 | { |
40 | - if (! method_exists($this, $method)) { |
|
40 | + if (!method_exists($this, $method)) { |
|
41 | 41 | return $this->forwardCallTo($this->strategy, $method, $parameters); |
42 | 42 | } |
43 | 43 |
@@ -24,7 +24,7 @@ |
||
24 | 24 | { |
25 | 25 | $chunk = Arr::first($chunks); |
26 | 26 | |
27 | - if (! $this->manager->chunksFilesystem()->concatenate($chunk, ...$chunks)) { |
|
27 | + if (!$this->manager->chunksFilesystem()->concatenate($chunk, ...$chunks)) { |
|
28 | 28 | throw new StrategyException('Unable to concatenate chunks'); |
29 | 29 | } |
30 | 30 |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | */ |
30 | 30 | private function buildInstance(string $strategy, $manager = null) |
31 | 31 | { |
32 | - if (! method_exists($strategy, 'newInstance')) { |
|
32 | + if (!method_exists($strategy, 'newInstance')) { |
|
33 | 33 | throw new StrategyException('Cannot instantiate strategy instance'); |
34 | 34 | } |
35 | 35 | |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | */ |
42 | 42 | public function default($manager = null): MergeStrategy |
43 | 43 | { |
44 | - if (! Arr::has($this->config, 'default')) { |
|
44 | + if (!Arr::has($this->config, 'default')) { |
|
45 | 45 | throw new StrategyException('Undefined default strategy'); |
46 | 46 | } |
47 | 47 |
@@ -15,7 +15,7 @@ |
||
15 | 15 | ->inFormat($this->guessFormat()) |
16 | 16 | ->concatWithoutTranscoding(); |
17 | 17 | |
18 | - if (! empty($visibility = $this->visibility())) { |
|
18 | + if (!empty($visibility = $this->visibility())) { |
|
19 | 19 | $exporter->withVisibility($visibility); |
20 | 20 | } |
21 | 21 |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | |
60 | 60 | if ($folder === null) { |
61 | 61 | return ''; |
62 | - } elseif (! Str::endsWith($folder, '/')) { |
|
62 | + } elseif (!Str::endsWith($folder, '/')) { |
|
63 | 63 | $folder .= DIRECTORY_SEPARATOR; |
64 | 64 | } |
65 | 65 | |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | |
88 | 88 | if ($folder === null) { |
89 | 89 | return ''; |
90 | - } elseif (! Str::endsWith($folder, '/')) { |
|
90 | + } elseif (!Str::endsWith($folder, '/')) { |
|
91 | 91 | $folder .= DIRECTORY_SEPARATOR; |
92 | 92 | } |
93 | 93 |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | { |
47 | 47 | return $this->chunks( |
48 | 48 | $this->folder |
49 | - )->map(function (Chunk $chunk) { |
|
49 | + )->map(function(Chunk $chunk) { |
|
50 | 50 | return $chunk->getPath(); |
51 | 51 | })->toArray(); |
52 | 52 | } |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | { |
73 | 73 | if (is_string($folder) && $this->chunksFolderExists($folder)) { |
74 | 74 | $this->folder = $folder; |
75 | - } elseif (empty($this->folder) || ! $this->chunksFolderExists($this->folder)) { |
|
75 | + } elseif (empty($this->folder) || !$this->chunksFolderExists($this->folder)) { |
|
76 | 76 | throw new StrategyException('Chunks folder cannot be empty'); |
77 | 77 | } |
78 | 78 | |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | |
96 | 96 | public function __call($method, $parameters) |
97 | 97 | { |
98 | - if (! method_exists($this, $method)) { |
|
98 | + if (!method_exists($this, $method)) { |
|
99 | 99 | return $this->forwardCallTo($this->manager, $method, $parameters); |
100 | 100 | } |
101 | 101 |
@@ -260,7 +260,7 @@ |
||
260 | 260 | */ |
261 | 261 | public function store(string $folder, $options = []): Chunk |
262 | 262 | { |
263 | - if (! $this->path instanceof File) { |
|
263 | + if (!$this->path instanceof File) { |
|
264 | 264 | throw new ChunkyException('Path must be a file'); |
265 | 265 | } |
266 | 266 |