Passed
Push — main ( 0993ff...421ae1 )
by PRATIK
15:51
created
payload/modules/medialibrarypro/src/Rules/ItemRules/DimensionsRule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
 
13 13
     public function validateMediaItem(): bool
14 14
     {
15
-        if (! $media = $this->getTemporaryUploadMedia()) {
15
+        if (!$media = $this->getTemporaryUploadMedia()) {
16 16
             return true;
17 17
         }
18 18
 
Please login to merge, or discard this patch.
payload/modules/medialibrarypro/src/Rules/ItemRules/MaxItemSizeInKbRule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
 
18 18
     public function validateMediaItem(): bool
19 19
     {
20
-        if (! $media = $this->getTemporaryUploadMedia()) {
20
+        if (!$media = $this->getTemporaryUploadMedia()) {
21 21
             return true;
22 22
         }
23 23
 
Please login to merge, or discard this patch.
payload/modules/medialibrarypro/src/Rules/ItemRules/ExtensionRule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
 
18 18
     public function validateMediaItem(): bool
19 19
     {
20
-        if (! $media = $this->getTemporaryUploadMedia()) {
20
+        if (!$media = $this->getTemporaryUploadMedia()) {
21 21
             return true;
22 22
         }
23 23
 
Please login to merge, or discard this patch.
payload/modules/medialibrarypro/src/Rules/ItemRules/HeightBetweenRule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
 
13 13
     public function validateMediaItem(): bool
14 14
     {
15
-        if (! $media = $this->getTemporaryUploadMedia()) {
15
+        if (!$media = $this->getTemporaryUploadMedia()) {
16 16
             return true;
17 17
         }
18 18
 
Please login to merge, or discard this patch.
payload/modules/medialibrarypro/src/Rules/ItemRules/MinItemSizeInKbRule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
 
18 18
     public function validateMediaItem(): bool
19 19
     {
20
-        if (! $media = $this->getTemporaryUploadMedia()) {
20
+        if (!$media = $this->getTemporaryUploadMedia()) {
21 21
             return true;
22 22
         }
23 23
 
Please login to merge, or discard this patch.
payload/modules/medialibrarypro/src/Rules/ItemRules/MimeTypeRule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
 
17 17
     public function validateMediaItem(): bool
18 18
     {
19
-        if (! $media = $this->getTemporaryUploadMedia()) {
19
+        if (!$media = $this->getTemporaryUploadMedia()) {
20 20
             return true;
21 21
         }
22 22
 
Please login to merge, or discard this patch.
payload/modules/medialibrarypro/src/Rules/ItemRules/WidthBetweenRule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
 
13 13
     public function validateMediaItem(): bool
14 14
     {
15
-        if (! $media = $this->getTemporaryUploadMedia()) {
15
+        if (!$media = $this->getTemporaryUploadMedia()) {
16 16
             return true;
17 17
         }
18 18
 
Please login to merge, or discard this patch.
payload/modules/medialibrarypro/src/Rules/ItemRules/MediaItemRule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
 
23 23
         $temporaryUpload = $temporaryUploadModelClass::findByMediaUuidInCurrentSession($this->value['uuid']);
24 24
 
25
-        if (! $temporaryUpload) {
25
+        if (!$temporaryUpload) {
26 26
             return null;
27 27
         }
28 28
 
Please login to merge, or discard this patch.
payload/modules/medialibrarypro/src/Rules/Concerns/ValidatesMedia.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
     {
25 25
         $this->prepareForValidation();
26 26
 
27
-        if (! $this->passesAuthorization()) {
27
+        if (!$this->passesAuthorization()) {
28 28
             $this->failedAuthorization();
29 29
         }
30 30
 
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
                     $remainingRules[$attribute][] = $rule;
90 90
                 }
91 91
 
92
-                $minimumRuleUsed = collect($remainingRules[$attribute])->contains(function ($rule) {
92
+                $minimumRuleUsed = collect($remainingRules[$attribute])->contains(function($rule) {
93 93
                     if (is_string($rule)) {
94 94
                         return false;
95 95
                     }
Please login to merge, or discard this patch.