Passed
Push — master ( 288053...b9f34f )
by Artūras
01:23 queued 15s
created
src/Method/Payment/Create.php 1 patch
Braces   +9 added lines, -3 removed lines patch added patch discarded remove patch
@@ -191,9 +191,15 @@
 block discarded – undo
191 191
     ): object
192 192
     {
193 193
         $inside_array = $this->getInsideArray($typeValue);
194
-        if ($isRequired) array_unshift($inside_array, new Assert\NotBlank());
195
-        if ($length) array_push($inside_array, new Assert\Length($length));
196
-        if ($args) array_push($inside_array, $args);
194
+        if ($isRequired) {
195
+            array_unshift($inside_array, new Assert\NotBlank());
196
+        }
197
+        if ($length) {
198
+            array_push($inside_array, new Assert\Length($length));
199
+        }
200
+        if ($args) {
201
+            array_push($inside_array, $args);
202
+        }
197 203
         
198 204
         return $isRequired 
199 205
             ? new Assert\Required($inside_array)
Please login to merge, or discard this patch.