Passed
Branch master (3b0961)
by Vasyl
02:40
created
src/ServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,9 +21,9 @@  discard block
 block discarded – undo
21 21
      */
22 22
     public function register()
23 23
     {
24
-        $this->mergeConfigFrom(__DIR__.'/../config/medialibrary-extension.php', 'medialibrary-extension');
24
+        $this->mergeConfigFrom(__DIR__ . '/../config/medialibrary-extension.php', 'medialibrary-extension');
25 25
 
26
-        $this->app->singleton(MediaLibraryManager::class, function () {
26
+        $this->app->singleton(MediaLibraryManager::class, function() {
27 27
             return new MediaLibraryManager();
28 28
         });
29 29
 
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 
33 33
     protected function publishedConfig()
34 34
     {
35
-        $this->publishes([__DIR__.'/../config/medialibrary-extension.php' => config_path('medialibrary-extension.php')
35
+        $this->publishes([__DIR__ . '/../config/medialibrary-extension.php' => config_path('medialibrary-extension.php')
36 36
         ], 'config');
37 37
     }
38 38
 
Please login to merge, or discard this patch.
src/Models/Traits/HasMediaTrait.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,13 +25,13 @@
 block discarded – undo
25 25
      * Define this in your model.
26 26
      * @var array
27 27
      */
28
-     // protected $mediaFieldsSingle = ['file', 'image',];
28
+        // protected $mediaFieldsSingle = ['file', 'image',];
29 29
 
30 30
     /**
31 31
      * Define this in your model.
32 32
      * @var array
33 33
      */
34
-     // protected $mediaFieldsMultiple = ['files', 'images',];
34
+        // protected $mediaFieldsMultiple = ['files', 'images',];
35 35
 
36 36
     /**
37 37
      * Define this in your model if needed validation.
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
         $performOnCollections = [];
116 116
 
117 117
         foreach ($mediaFields as $field) {
118
-            if (preg_match($pattern ,$field)) {
118
+            if (preg_match($pattern, $field)) {
119 119
                 $performOnCollections[] = $field;
120 120
             }
121 121
         }
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
 
189 189
         if ($field) {
190 190
             $rules[$field] = $allRules[$field] ?? '';
191
-            if (isset($allRules[$field . '.*']) ) {
191
+            if (isset($allRules[$field . '.*'])) {
192 192
                 $rules[$field . '.*'] = $allRules[$field . '.*'];
193 193
             }
194 194
         } else {
Please login to merge, or discard this patch.
src/MediaLibraryManager.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
96 96
         }
97 97
 
98 98
         if ($request->hasFile($field)) {
99
-            $entity->getMedia($field)->each(function ($e) {
99
+            $entity->getMedia($field)->each(function($e) {
100 100
                 $e->delete();
101 101
             });
102 102
 
Please login to merge, or discard this patch.