@@ -43,11 +43,11 @@ discard block |
||
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 |
||
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 |
||
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([ |
@@ -16,7 +16,7 @@ |
||
16 | 16 | * @param STRING authorize data 'cres' or 'authorize_data' |
17 | 17 | * @param BOOL should it be 3D secure v2 ? |
18 | 18 | */ |
19 | - public function __construct(string $paymentId, string $authorizeData, $isV2=false) |
|
19 | + public function __construct(string $paymentId, string $authorizeData, $isV2 = false) |
|
20 | 20 | { |
21 | 21 | $this->paymentId = $paymentId; |
22 | 22 | $this->authorizeData = $authorizeData; |
@@ -405,7 +405,7 @@ |
||
405 | 405 | */ |
406 | 406 | public function setThreeds2data( |
407 | 407 | ThreeDS2AuthorizationInformation $threeDS2AuthorizationInformation |
408 | - ){ |
|
408 | + ) { |
|
409 | 409 | $this->threeDS2AuthorizationInformation = $threeDS2AuthorizationInformation; |
410 | 410 | } |
411 | 411 |