@@ -234,7 +234,7 @@ discard block |
||
| 234 | 234 | $this->checkPmtStatus(array('AUTHORIZED')); |
| 235 | 235 | } catch (\Exception $e) { |
| 236 | 236 | $this->getMagentoOrderId(); |
| 237 | - if ($this->magentoOrderId!='') { |
|
| 237 | + if ($this->magentoOrderId != '') { |
|
| 238 | 238 | throw new AlreadyProcessedException(); |
| 239 | 239 | } else { |
| 240 | 240 | throw new WrongStatusException($this->pmtOrder->getStatus()); |
@@ -244,7 +244,7 @@ discard block |
||
| 244 | 244 | |
| 245 | 245 | private function checkMerchantOrderStatus() |
| 246 | 246 | { |
| 247 | - if ($this->quote->getIsActive()=='0') { |
|
| 247 | + if ($this->quote->getIsActive() == '0') { |
|
| 248 | 248 | $this->getMagentoOrderId(); |
| 249 | 249 | throw new AlreadyProcessedException(); |
| 250 | 250 | } |
@@ -357,7 +357,7 @@ discard block |
||
| 357 | 357 | $tableName = $this->dbObject->getTableName(self::CONCURRENCY_TABLE); |
| 358 | 358 | if ($mode == false) { |
| 359 | 359 | $dbConnection->delete($tableName, "timestamp<".(time() - 5)); |
| 360 | - } elseif ($this->quoteId!='') { |
|
| 360 | + } elseif ($this->quoteId != '') { |
|
| 361 | 361 | $dbConnection->delete($tableName, "id=".$this->quoteId); |
| 362 | 362 | } |
| 363 | 363 | } catch (Exception $exception) { |
@@ -484,7 +484,7 @@ discard block |
||
| 484 | 484 | private function getRedirectUrl() |
| 485 | 485 | { |
| 486 | 486 | $returnUrl = 'checkout/#payment'; |
| 487 | - if ($this->magentoOrderId!='') { |
|
| 487 | + if ($this->magentoOrderId != '') { |
|
| 488 | 488 | /** @var Order $this->magentoOrder */ |
| 489 | 489 | $this->magentoOrder = $this->orderRepositoryInterface->get($this->magentoOrderId); |
| 490 | 490 | if (!$this->_objectManager->get(\Magento\Checkout\Model\Session\SuccessValidator::class)->isValid()) { |