Passed
Pull Request — master (#16)
by
unknown
03:50
created
Controller/Notify/Index.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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';
Please login to merge, or discard this patch.