@@ -58,7 +58,7 @@ |
||
58 | 58 | public function isValid() |
59 | 59 | { |
60 | 60 | return parent::isValid() && |
61 | - ($this->call instanceof CallEntity && $this->call->isValid()) && |
|
61 | + ($this->call instanceof CallEntity && $this->call->isValid()) && |
|
62 | 62 | ($this->result instanceof ResultEntity && $this->result->isValid() || !$this->result) |
63 | 63 | ; |
64 | 64 | } |
@@ -43,7 +43,7 @@ |
||
43 | 43 | { |
44 | 44 | if (!self::$registered) { |
45 | 45 | self::$registered = spl_autoload_register( |
46 | - function ($className) { |
|
46 | + function($className) { |
|
47 | 47 | if (strncmp(PEI_NAMESPACE, $className, strlen(PEI_NAMESPACE)) !== 0) { |
48 | 48 | return; |
49 | 49 | } |
@@ -219,7 +219,7 @@ |
||
219 | 219 | public function getImagesUuid() |
220 | 220 | { |
221 | 221 | return array_map( |
222 | - function ($imageName) { |
|
222 | + function($imageName) { |
|
223 | 223 | return substr($imageName, 0, strpos($imageName, '.')); |
224 | 224 | }, |
225 | 225 | $this->getImages() |
@@ -67,7 +67,7 @@ |
||
67 | 67 | public function isValid() |
68 | 68 | { |
69 | 69 | return parent::isValid() && |
70 | - (!$this->call || ($this->call instanceof CallEntity && $this->call->isValid())) && |
|
70 | + (!$this->call || ($this->call instanceof CallEntity && $this->call->isValid())) && |
|
71 | 71 | ( |
72 | 72 | !$this->result || ($this->result instanceof ResultEntity && $this->result->isValid()) |
73 | 73 | || is_array($this->result) |
@@ -158,7 +158,7 @@ |
||
158 | 158 | * @link https://docs.payever.org/shopsystems/api/getting-started/api/order-management/cancel Documentation |
159 | 159 | * |
160 | 160 | * @param string $paymentId Payment ID |
161 | - * @param float $amount Specify the cancel/partial cancel amount. If no amount is set, the whole amount will be cancelled. |
|
161 | + * @param float $amount Specify the cancel/partial cancel amount. If no amount is set, the whole amount will be cancelled. |
|
162 | 162 | * |
163 | 163 | * @return ResponseInterface |
164 | 164 | */ |
@@ -318,13 +318,13 @@ |
||
318 | 318 | $this->configuration->assertLoaded(); |
319 | 319 | |
320 | 320 | $request = RequestBuilder::post($this->getCancelPaymentURL($paymentId)) |
321 | - ->setParams([ |
|
321 | + ->setParams([ |
|
322 | 322 | 'amount' => $amount, |
323 | 323 | ]) |
324 | 324 | ->addRawHeader( |
325 | 325 | $this->getToken(OauthToken::SCOPE_PAYMENT_ACTIONS)->getAuthorizationString() |
326 | 326 | ) |
327 | - ->setRequestEntity(new CancelPaymentRequest()) |
|
327 | + ->setRequestEntity(new CancelPaymentRequest()) |
|
328 | 328 | ->setResponseEntity(new CancelPaymentResponse()) |
329 | 329 | ->build(); |
330 | 330 |