Passed
Push — master ( e10b1f...87b409 )
by Filippo
13:39 queued 09:12
created
src/ChunkyServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
             );
Please login to merge, or discard this patch.
src/Http/Requests/AddChunkRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@
 block discarded – undo
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
             ) {
Please login to merge, or discard this patch.
src/Handlers/MergeHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Strategies/FlysystemStrategy.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Strategies/StrategyFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Strategies/Concerns/HandlesFFMpeg.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/ChunkySettings.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Strategies/MergeStrategy.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Chunk.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -260,7 +260,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.