Test Failed
Push — master ( f122f8...33fb6e )
by
unknown
54s queued 10s
created
src/Method/Payment/Create.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -166,6 +166,9 @@
 block discarded – undo
166 166
         ]); 
167 167
     }
168 168
 
169
+    /**
170
+     * @param string $typeValue
171
+     */
169 172
     private function buildElement($typeValue, bool $isRequired=false, $length=0, $args=0)
170 173
     {
171 174
         $inside_array = [
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -43,11 +43,11 @@  discard block
 block discarded – undo
43 43
     {
44 44
         return new Assert\Collection([
45 45
             'amount' =>  $this->buildElement('float', 1),
46
-            'currency' => $this->buildElement('string', 1, ['min' => 3,'max' => 3]),
46
+            'currency' => $this->buildElement('string', 1, ['min' => 3, 'max' => 3]),
47 47
             'settle' => $this->buildElement('bool'),
48
-            'order_id' => $this->buildElement('string', 0, ['min' => 2,'max' => 50]),
48
+            'order_id' => $this->buildElement('string', 0, ['min' => 2, 'max' => 50]),
49 49
             'description' => $this->buildElement('string', 0, ['max' => 255]),
50
-            'country' => $this->buildElement('string', 1, ['min' => 2,'max' => 2]),
50
+            'country' => $this->buildElement('string', 1, ['min' => 2, 'max' => 2]),
51 51
             'payment_method' => new Assert\Required([
52 52
                 new Assert\Type([
53 53
                     'type' => 'string',
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
                     ]),
81 81
                     'exp_year' => $this->buildElement(
82 82
                         'integer', 1, 
83
-                        ['min' => 4,'max' => 4],
83
+                        ['min' => 4, 'max' => 4],
84 84
                         new Assert\Range(['min' => date('Y')])
85 85
                     ),
86 86
                     'exp_month' => $this->buildElement('integer', 1),
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
         ]); 
167 167
     }
168 168
 
169
-    private function buildElement($typeValue, bool $isRequired=false, $length=0, $args=0)
169
+    private function buildElement($typeValue, bool $isRequired = false, $length = 0, $args = 0)
170 170
     {
171 171
         $inside_array = [
172 172
             new Assert\Type([
Please login to merge, or discard this patch.