@@ -242,7 +242,7 @@ discard block |
||
| 242 | 242 | $this->checkPmtStatus(array('AUTHORIZED')); |
| 243 | 243 | } catch (\Exception $e) { |
| 244 | 244 | $this->getMagentoOrderId(); |
| 245 | - if ($this->magentoOrderId!='') { |
|
| 245 | + if ($this->magentoOrderId != '') { |
|
| 246 | 246 | throw new AlreadyProcessedException(); |
| 247 | 247 | } else { |
| 248 | 248 | throw new WrongStatusException($this->pmtOrder->getStatus()); |
@@ -252,7 +252,7 @@ discard block |
||
| 252 | 252 | |
| 253 | 253 | private function checkMerchantOrderStatus() |
| 254 | 254 | { |
| 255 | - if ($this->quote->getIsActive()=='0') { |
|
| 255 | + if ($this->quote->getIsActive() == '0') { |
|
| 256 | 256 | $this->getMagentoOrderId(); |
| 257 | 257 | throw new AlreadyProcessedException(); |
| 258 | 258 | } |
@@ -364,7 +364,7 @@ discard block |
||
| 364 | 364 | $tableName = $this->dbObject->getTableName(self::CONCURRENCY_TABLE); |
| 365 | 365 | if ($mode == false) { |
| 366 | 366 | $dbConnection->delete($tableName, "timestamp<".(time() - 5)); |
| 367 | - } elseif ($this->quoteId!='') { |
|
| 367 | + } elseif ($this->quoteId != '') { |
|
| 368 | 368 | $dbConnection->delete($tableName, "id=".$this->quoteId); |
| 369 | 369 | } |
| 370 | 370 | } catch (Exception $exception) { |
@@ -492,7 +492,7 @@ discard block |
||
| 492 | 492 | { |
| 493 | 493 | //$returnUrl = 'checkout/#payment'; |
| 494 | 494 | $returnUrl = $this->_url->getUrl('checkout', ['_fragment' => 'payment']); |
| 495 | - if ($this->magentoOrderId!='') { |
|
| 495 | + if ($this->magentoOrderId != '') { |
|
| 496 | 496 | /** @var Order $this->magentoOrder */ |
| 497 | 497 | $this->magentoOrder = $this->orderRepositoryInterface->get($this->magentoOrderId); |
| 498 | 498 | if (!$this->_objectManager->get(\Magento\Checkout\Model\Session\SuccessValidator::class)->isValid()) { |
@@ -509,7 +509,7 @@ discard block |
||
| 509 | 509 | $orderStatus = strtolower($this->magentoOrder->getStatus()); |
| 510 | 510 | $acceptedStatus = array('processing', 'completed'); |
| 511 | 511 | if (in_array($orderStatus, $acceptedStatus)) { |
| 512 | - if (isset($this->extraConfig['PMT_OK_URL']) && $this->extraConfig['PMT_OK_URL']!= '') { |
|
| 512 | + if (isset($this->extraConfig['PMT_OK_URL']) && $this->extraConfig['PMT_OK_URL'] != '') { |
|
| 513 | 513 | $returnUrl = $this->extraConfig['PMT_OK_URL']; |
| 514 | 514 | } else { |
| 515 | 515 | $returnUrl = 'checkout/onepage/success'; |