@@ -81,7 +81,7 @@ |
||
81 | 81 | $resultObject = new Error(); |
82 | 82 | } |
83 | 83 | |
84 | - if(!is_array($response)){ |
|
84 | + if (!is_array($response)) { |
|
85 | 85 | throw new UnexpectedError('Unexpected error : "'.$exception->getMessage().'"', $exception->getCode()); |
86 | 86 | } |
87 | 87 |
@@ -48,12 +48,12 @@ discard block |
||
48 | 48 | 'match' => true, |
49 | 49 | 'message' => "{{ value }} should be a valid integer number or floating number with 1-4 decimal points." |
50 | 50 | ]), |
51 | - 'currency' => $this->buildElement('string', 1, ['min' => 3,'max' => 3]), |
|
51 | + 'currency' => $this->buildElement('string', 1, ['min' => 3, 'max' => 3]), |
|
52 | 52 | 'settle' => $this->buildElement('bool'), |
53 | - 'order_id' => $this->buildElement('string', 0, ['min' => 2,'max' => 50]), |
|
53 | + 'order_id' => $this->buildElement('string', 0, ['min' => 2, 'max' => 50]), |
|
54 | 54 | 'description' => $this->buildElement('string', 0, ['max' => 255]), |
55 | 55 | 'statement_descriptor_suffix' => $this->buildElement('string', 0, ['max' => 25]), |
56 | - 'country' => $this->buildElement('string', 1, ['min' => 2,'max' => 2]), |
|
56 | + 'country' => $this->buildElement('string', 1, ['min' => 2, 'max' => 2]), |
|
57 | 57 | 'payment_method' => new Assert\Required([ |
58 | 58 | new Assert\Type([ |
59 | 59 | 'type' => 'string', |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | ]), |
87 | 87 | 'exp_year' => $this->buildElement( |
88 | 88 | 'integer', 1, |
89 | - ['min' => 4,'max' => 4], |
|
89 | + ['min' => 4, 'max' => 4], |
|
90 | 90 | new Assert\Range(['min' => date('Y')]) |
91 | 91 | ), |
92 | 92 | 'exp_month' => $this->buildElement('integer', 1), |