Passed
Push — master ( 0d0194...c6f9a3 )
by Gabriel
09:21 queued 06:24
created
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.