@@ -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) |
@@ -101,13 +101,13 @@ |
||
| 101 | 101 | $this->configuration->assertLoaded(); |
| 102 | 102 | |
| 103 | 103 | $request = RequestBuilder::post($this->getCreatePaymentV2URL()) |
| 104 | - ->addRawHeader( |
|
| 105 | - $this->getToken(OauthToken::SCOPE_CREATE_PAYMENT)->getAuthorizationString() |
|
| 106 | - ) |
|
| 107 | - ->contentTypeIsJson() |
|
| 108 | - ->setRequestEntity($createPaymentRequest) |
|
| 109 | - ->setResponseEntity(new CreatePaymentResponse()) |
|
| 110 | - ->build(); |
|
| 104 | + ->addRawHeader( |
|
| 105 | + $this->getToken(OauthToken::SCOPE_CREATE_PAYMENT)->getAuthorizationString() |
|
| 106 | + ) |
|
| 107 | + ->contentTypeIsJson() |
|
| 108 | + ->setRequestEntity($createPaymentRequest) |
|
| 109 | + ->setResponseEntity(new CreatePaymentResponse()) |
|
| 110 | + ->build(); |
|
| 111 | 111 | |
| 112 | 112 | return $this->executeRequest($request, OauthToken::SCOPE_CREATE_PAYMENT); |
| 113 | 113 | } |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | public function isValid() |
| 46 | 46 | { |
| 47 | 47 | return parent::isValid() && |
| 48 | - ($this->call instanceof CallEntity && $this->call->isValid()) |
|
| 48 | + ($this->call instanceof CallEntity && $this->call->isValid()) |
|
| 49 | 49 | ; |
| 50 | 50 | } |
| 51 | 51 | |
@@ -47,10 +47,10 @@ |
||
| 47 | 47 | |
| 48 | 48 | try { |
| 49 | 49 | $request = RequestBuilder::post($this->getValidateTokenURL($businessUuid)) |
| 50 | - ->addRawHeader( |
|
| 51 | - sprintf("Authorization: Bearer %s", $accessToken) |
|
| 52 | - ) |
|
| 53 | - ->build(); |
|
| 50 | + ->addRawHeader( |
|
| 51 | + sprintf("Authorization: Bearer %s", $accessToken) |
|
| 52 | + ) |
|
| 53 | + ->build(); |
|
| 54 | 54 | |
| 55 | 55 | $this->executeRequest($request); |
| 56 | 56 | |