Test Failed
Push — master ( c9f7be...859573 )
by Gabriel
06:41
created
src/Collections/Traits/HasAcceptsMediaTrait.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
     protected function initHasAcceptsMediaWithValidation()
26 26
     {
27
-        $this->acceptsMedia(function ($file) {
27
+        $this->acceptsMedia(function($file) {
28 28
             /** @var AbstractValidator $validator */
29 29
             $validator = $this->getValidator();
30 30
             $constraint = $this->getConstraint();
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
 
40 40
     protected function initHasAcceptsMediaEmpty()
41 41
     {
42
-        $this->acceptsMedia(function () {
42
+        $this->acceptsMedia(function() {
43 43
             return true;
44 44
         });
45 45
     }
Please login to merge, or discard this patch.
src/Validation/Validators/FileValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
         $constraint = $this->getConstraint();
56 56
 
57 57
         if ($constraint->mimeTypes) {
58
-            $mimeTypes = (array) $constraint->mimeTypes;
58
+            $mimeTypes = (array)$constraint->mimeTypes;
59 59
             $mime = $this->determineMime();
60 60
             foreach ($mimeTypes as $mimeType) {
61 61
                 if ($mimeType === $mime) {
Please login to merge, or discard this patch.
src/MediaRepository/MediaRepository.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -74,9 +74,9 @@
 block discarded – undo
74 74
 
75 75
     protected function getDefaultFilterFunction(array $filters): Closure
76 76
     {
77
-        return function (Media $media) use ($filters) {
77
+        return function(Media $media) use ($filters) {
78 78
             foreach ($filters as $property => $value) {
79
-                if (! Arr::has($media->custom_properties, $property)) {
79
+                if (!Arr::has($media->custom_properties, $property)) {
80 80
                     return false;
81 81
                 }
82 82
 
Please login to merge, or discard this patch.
src/Validation/Validators/ImageValidator.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
         $height = $size[1];
49 49
 
50 50
         if ($constraint->minWidth) {
51
-            if (!ctype_digit((string) $constraint->minWidth)) {
51
+            if (!ctype_digit((string)$constraint->minWidth)) {
52 52
                 throw new Exception(sprintf(
53 53
                     '"%s" is not a valid minimum width',
54 54
                     $constraint->minWidth
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
         }
67 67
 
68 68
         if ($constraint->maxWidth) {
69
-            if (!ctype_digit((string) $constraint->maxWidth)) {
69
+            if (!ctype_digit((string)$constraint->maxWidth)) {
70 70
                 throw new Exception(sprintf(
71 71
                     '"%s" is not a valid maximum width',
72 72
                     $constraint->maxWidth
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
             }
84 84
         }
85 85
         if ($constraint->minHeight) {
86
-            if (!ctype_digit((string) $constraint->minHeight)) {
86
+            if (!ctype_digit((string)$constraint->minHeight)) {
87 87
                 throw new Exception(sprintf(
88 88
                     '"%s" is not a valid minimum height',
89 89
                     $constraint->minHeight
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
             }
101 101
         }
102 102
         if ($constraint->maxHeight) {
103
-            if (!ctype_digit((string) $constraint->maxHeight)) {
103
+            if (!ctype_digit((string)$constraint->maxHeight)) {
104 104
                 throw new Exception(sprintf(
105 105
                     '"%s" is not a valid maximum height',
106 106
                     $constraint->maxHeight
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
         }
117 117
         $ratio = round($width / $height, 2);
118 118
         if (null !== $constraint->minRatio) {
119
-            if (!is_numeric((string) $constraint->minRatio)) {
119
+            if (!is_numeric((string)$constraint->minRatio)) {
120 120
                 throw new Exception(sprintf(
121 121
                     '"%s" is not a valid minimum ratio',
122 122
                     $constraint->minRatio
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
             }
132 132
         }
133 133
         if (null !== $constraint->maxRatio) {
134
-            if (!is_numeric((string) $constraint->maxRatio)) {
134
+            if (!is_numeric((string)$constraint->maxRatio)) {
135 135
                 throw new Exception(sprintf(
136 136
                     '"%s" is not a valid maximum ratio',
137 137
                     $constraint->maxRatio
Please login to merge, or discard this patch.
src/Loaders/Database.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
         );
59 59
         $files = [];
60 60
         foreach ($mediaRecords as $mediaRecord) {
61
-            $files[] = new File($this->getFilesystem(),$mediaRecord->path);
61
+            $files[] = new File($this->getFilesystem(), $mediaRecord->path);
62 62
         }
63 63
         return $files;
64 64
     }
Please login to merge, or discard this patch.
src/Models/MediaProperties/MediaProperties.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
      * @param $collection
19 19
      * @return MediaProperty|Record
20 20
      */
21
-    public function for(Record $model, $collection)
21
+    public function for (Record $model, $collection)
22 22
     {
23 23
         if ($model->hasRelation('MediaProperties')) {
24 24
             return $model->getRelation('MediaProperties')->getResults()->filter(
25
-                function ($item) use ($collection) {
25
+                function($item) use ($collection) {
26 26
                     return $item->collection_name == $collection;
27 27
                 }
28 28
             )->current();
Please login to merge, or discard this patch.
src/Models/MediaRecords/MediaRecords.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,11 +21,11 @@
 block discarded – undo
21 21
      * @param $collection
22 22
      * @return MediaProperty[]|Collection
23 23
      */
24
-    public function for(Record $model, $collection)
24
+    public function for (Record $model, $collection)
25 25
     {
26 26
         if ($model->hasRelation('Media')) {
27 27
             return $model->getRelation('Media')->getResults()->filter(
28
-                function ($item) use ($collection) {
28
+                function($item) use ($collection) {
29 29
                     return $item->collection_name == $collection;
30 30
                 }
31 31
             );
Please login to merge, or discard this patch.