| @@ -5,7 +5,7 @@ discard block | ||
| 5 | 5 | } | 
| 6 | 6 | |
| 7 | 7 |  if (defined('_PS_MODULE_DIR_')) { | 
| 8 | - require_once _PS_MODULE_DIR_.'b2binpay/vendor/autoload.php'; | |
| 8 | + require_once _PS_MODULE_DIR_ . 'b2binpay/vendor/autoload.php'; | |
| 9 | 9 | } | 
| 10 | 10 | |
| 11 | 11 | use PrestaShop\PrestaShop\Core\Payment\PaymentOption; | 
| @@ -112,9 +112,9 @@ discard block | ||
| 112 | 112 | ); | 
| 113 | 113 |          $this->context->smarty->assign('warning', $this->warning); | 
| 114 | 114 | |
| 115 | - $output = $this->context->smarty->fetch($this->local_path.'views/templates/admin/template.tpl'); | |
| 115 | + $output = $this->context->smarty->fetch($this->local_path . 'views/templates/admin/template.tpl'); | |
| 116 | 116 | |
| 117 | - return $output.$this->renderForm(); | |
| 117 | + return $output . $this->renderForm(); | |
| 118 | 118 | } | 
| 119 | 119 | |
| 120 | 120 | /** | 
| @@ -133,7 +133,7 @@ discard block | ||
| 133 | 133 | $helper->identifier = $this->identifier; | 
| 134 | 134 | $helper->submit_action = 'submitB2binpayModule'; | 
| 135 | 135 |          $helper->currentIndex = $this->context->link->getAdminLink('AdminModules', false) | 
| 136 | - .'&configure='.$this->name.'&tab_module='.$this->tab.'&module_name='.$this->name; | |
| 136 | + .'&configure=' . $this->name . '&tab_module=' . $this->tab . '&module_name=' . $this->name; | |
| 137 | 137 |          $helper->token = Tools::getAdminTokenLite('AdminModules'); | 
| 138 | 138 | |
| 139 | 139 | $helper->tpl_vars = array( | 
| @@ -348,7 +348,7 @@ discard block | ||
| 348 | 348 | */ | 
| 349 | 349 | public function hookBackOfficeHeader() | 
| 350 | 350 |      { | 
| 351 | - $this->context->controller->addJS($this->_path.'views/js/back.js'); | |
| 351 | + $this->context->controller->addJS($this->_path . 'views/js/back.js'); | |
| 352 | 352 | } | 
| 353 | 353 | |
| 354 | 354 | /** | 
| @@ -356,7 +356,7 @@ discard block | ||
| 356 | 356 | */ | 
| 357 | 357 | public function hookHeader() | 
| 358 | 358 |      { | 
| 359 | - $this->context->controller->addCSS($this->_path.'/views/css/front.css'); | |
| 359 | + $this->context->controller->addCSS($this->_path . '/views/css/front.css'); | |
| 360 | 360 | } | 
| 361 | 361 | |
| 362 | 362 | public function hookPaymentOptions($params) | 
| @@ -368,7 +368,7 @@ discard block | ||
| 368 | 368 | $paymentOption = new PaymentOption(); | 
| 369 | 369 |          $paymentOption->setCallToActionText(Configuration::get('B2BINPAY_TITLE')) | 
| 370 | 370 | ->setForm($this->generateForm()) | 
| 371 | - ->setLogo(Media::getMediaPath(_PS_MODULE_DIR_.$this->name.'/logo.png')); | |
| 371 | + ->setLogo(Media::getMediaPath(_PS_MODULE_DIR_ . $this->name . '/logo.png')); | |
| 372 | 372 | |
| 373 | 373 | $payment_options = array($paymentOption); | 
| 374 | 374 | |
| @@ -384,6 +384,6 @@ discard block | ||
| 384 | 384 | ] | 
| 385 | 385 | ); | 
| 386 | 386 | |
| 387 | - return $this->context->smarty->fetch($this->local_path.'views/templates/front/payment_form.tpl'); | |
| 387 | + return $this->context->smarty->fetch($this->local_path . 'views/templates/front/payment_form.tpl'); | |
| 388 | 388 | } | 
| 389 | 389 | } | 
| @@ -41,7 +41,7 @@ discard block | ||
| 41 | 41 | |
| 42 | 42 | $wallet = array_reduce( | 
| 43 | 43 | $wallet_list, | 
| 44 | -            function ($carry, $item) use ($wallet_id) { | |
| 44 | +            function($carry, $item) use ($wallet_id) { | |
| 45 | 45 |                  if ($item['id'] === $wallet_id) { | 
| 46 | 46 | $carry = $item; | 
| 47 | 47 | } | 
| @@ -78,7 +78,7 @@ discard block | ||
| 78 | 78 | $this->context->link->getModuleLink($this->module->name, 'callback', array(), true) | 
| 79 | 79 | ); | 
| 80 | 80 |          } catch (B2BinpayException $e) { | 
| 81 | -            die($this->module->l('Payment error: '.$e->getMessage(), 'redirect')); | |
| 81 | +            die($this->module->l('Payment error: ' . $e->getMessage(), 'redirect')); | |
| 82 | 82 | } | 
| 83 | 83 | |
| 84 | 84 |          if (empty($bill) || empty($bill->url)) { |