Test Failed
Pull Request — master (#12)
by
unknown
06:46
created
src/Method/Payment/Create.php 1 patch
Braces   +9 added lines, -3 removed lines patch added patch discarded remove patch
@@ -152,9 +152,15 @@
 block discarded – undo
152 152
         $inside_array = [
153 153
             new Assert\Type(['type', $typeValue]),
154 154
         ];
155
-        if ($isRequired) array_unshift($inside_array, new Assert\NotBlank());
156
-        if ($length) array_push($inside_array, new Assert\Length($length));
157
-        if ($args) array_push($inside_array, $args);
155
+        if ($isRequired) {
156
+            array_unshift($inside_array, new Assert\NotBlank());
157
+        }
158
+        if ($length) {
159
+            array_push($inside_array, new Assert\Length($length));
160
+        }
161
+        if ($args) {
162
+            array_push($inside_array, $args);
163
+        }
158 164
         
159 165
         return $isRequired 
160 166
             ? new Assert\Required($inside_array)
Please login to merge, or discard this patch.