Passed
Push — main ( 0230d8...7f267a )
by PRATIK
03:52
created
modules/medialibrarypro/src/Http/Livewire/LivewireUploaderComponent.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 
45 45
         $this->multiple = $multiple;
46 46
 
47
-        $this->uuid = $uuid ?? (string)Str::uuid();
47
+        $this->uuid = $uuid ?? (string) Str::uuid();
48 48
 
49 49
         $this->add = $add;
50 50
     }
@@ -53,10 +53,10 @@  discard block
 block discarded – undo
53 53
     {
54 54
         $uploadError = $this->getUploadError();
55 55
 
56
-        if (! is_null($uploadError)) {
56
+        if (!is_null($uploadError)) {
57 57
             $this->uploadError = $uploadError;
58 58
 
59
-            if (! $this->add) {
59
+            if (!$this->add) {
60 60
                 $this->emit("{$this->name}:uploadError", $this->uuid, $uploadError);
61 61
             }
62 62
 
Please login to merge, or discard this patch.
payload/modules/medialibrarypro/src/Http/Livewire/Concerns/WithMedia.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -60,8 +60,8 @@
 block discarded – undo
60 60
     protected function makeSureCustomPropertiesUseRightCasing(array $media): array
61 61
     {
62 62
         $media = collect($media)
63
-            ->map(function (array $mediaItemAttributes) {
64
-                if (! isset($mediaItemAttributes['custom_properties']) && isset($mediaItemAttributes['customProperties'])) {
63
+            ->map(function(array $mediaItemAttributes) {
64
+                if (!isset($mediaItemAttributes['custom_properties']) && isset($mediaItemAttributes['customProperties'])) {
65 65
                     $mediaItemAttributes['custom_properties'] = $mediaItemAttributes['customProperties'];
66 66
                     unset($mediaItemAttributes['customProperties']);
67 67
                 }
Please login to merge, or discard this patch.
medialibrarypro/src/Http/Controllers/MediaLibraryPostS3Controller.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
 
43 43
         Storage::disk($diskName)->copy(
44 44
             $request->key,
45
-            $pathGenerator->getPath($media) . $request->name,
45
+            $pathGenerator->getPath($media).$request->name,
46 46
         );
47 47
 
48 48
         $fileManipulator->createDerivedFiles($media);
Please login to merge, or discard this patch.
src/Models/Admin/Facility.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,11 +18,11 @@
 block discarded – undo
18 18
     {
19 19
         parent::boot();
20 20
 
21
-        static::saving(function () {
21
+        static::saving(function() {
22 22
             self::cacheKey();
23 23
         });
24 24
 
25
-        static::deleting(function () {
25
+        static::deleting(function() {
26 26
             self::cacheKey();
27 27
         });
28 28
     }
Please login to merge, or discard this patch.
src/Models/Admin/Service.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,11 +18,11 @@
 block discarded – undo
18 18
     {
19 19
         parent::boot();
20 20
 
21
-        static::saving(function () {
21
+        static::saving(function() {
22 22
             self::cacheKey();
23 23
         });
24 24
 
25
-        static::deleting(function () {
25
+        static::deleting(function() {
26 26
             self::cacheKey();
27 27
         });
28 28
     }
Please login to merge, or discard this patch.
src/Models/Admin/Popup.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,11 +18,11 @@
 block discarded – undo
18 18
     {
19 19
         parent::boot();
20 20
 
21
-        static::saving(function () {
21
+        static::saving(function() {
22 22
             self::cacheKey();
23 23
         });
24 24
 
25
-        static::deleting(function () {
25
+        static::deleting(function() {
26 26
             self::cacheKey();
27 27
         });
28 28
     }
Please login to merge, or discard this patch.
src/Models/Admin/Attribute.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,11 +18,11 @@
 block discarded – undo
18 18
     {
19 19
         parent::boot();
20 20
 
21
-        static::saving(function () {
21
+        static::saving(function() {
22 22
             self::cacheKey();
23 23
         });
24 24
 
25
-        static::deleting(function () {
25
+        static::deleting(function() {
26 26
             self::cacheKey();
27 27
         });
28 28
     }
Please login to merge, or discard this patch.
src/Models/Admin/Download.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,11 +18,11 @@
 block discarded – undo
18 18
     {
19 19
         parent::boot();
20 20
 
21
-        static::saving(function () {
21
+        static::saving(function() {
22 22
             self::cacheKey();
23 23
         });
24 24
 
25
-        static::deleting(function () {
25
+        static::deleting(function() {
26 26
             self::cacheKey();
27 27
         });
28 28
     }
Please login to merge, or discard this patch.
src/Models/Admin/Page.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,11 +18,11 @@
 block discarded – undo
18 18
     {
19 19
         parent::boot();
20 20
 
21
-        static::saving(function () {
21
+        static::saving(function() {
22 22
             self::cacheKey();
23 23
         });
24 24
 
25
-        static::deleting(function () {
25
+        static::deleting(function() {
26 26
             self::cacheKey();
27 27
         });
28 28
     }
Please login to merge, or discard this patch.