@@ -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)) { |
@@ -32,7 +32,7 @@ discard block |
||
32 | 32 | } |
33 | 33 | |
34 | 34 | if (defined('_PS_MODULE_DIR_')) { |
35 | - require_once _PS_MODULE_DIR_.'b2binpay/vendor/autoload.php'; |
|
35 | + require_once _PS_MODULE_DIR_ . 'b2binpay/vendor/autoload.php'; |
|
36 | 36 | } |
37 | 37 | |
38 | 38 | use PrestaShop\PrestaShop\Core\Payment\PaymentOption; |
@@ -139,9 +139,9 @@ discard block |
||
139 | 139 | ); |
140 | 140 | $this->context->smarty->assign('warning', $this->warning); |
141 | 141 | |
142 | - $output = $this->context->smarty->fetch($this->local_path.'views/templates/admin/template.tpl'); |
|
142 | + $output = $this->context->smarty->fetch($this->local_path . 'views/templates/admin/template.tpl'); |
|
143 | 143 | |
144 | - return $output.$this->renderForm(); |
|
144 | + return $output . $this->renderForm(); |
|
145 | 145 | } |
146 | 146 | |
147 | 147 | /** |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | $helper->identifier = $this->identifier; |
161 | 161 | $helper->submit_action = 'submitB2binpayModule'; |
162 | 162 | $helper->currentIndex = $this->context->link->getAdminLink('AdminModules', false) |
163 | - .'&configure='.$this->name.'&tab_module='.$this->tab.'&module_name='.$this->name; |
|
163 | + .'&configure=' . $this->name . '&tab_module=' . $this->tab . '&module_name=' . $this->name; |
|
164 | 164 | $helper->token = Tools::getAdminTokenLite('AdminModules'); |
165 | 165 | |
166 | 166 | $helper->tpl_vars = array( |
@@ -378,7 +378,7 @@ discard block |
||
378 | 378 | */ |
379 | 379 | public function hookBackOfficeHeader() |
380 | 380 | { |
381 | - $this->context->controller->addJS($this->_path.'views/js/back.js'); |
|
381 | + $this->context->controller->addJS($this->_path . 'views/js/back.js'); |
|
382 | 382 | } |
383 | 383 | |
384 | 384 | /** |
@@ -386,7 +386,7 @@ discard block |
||
386 | 386 | */ |
387 | 387 | public function hookHeader() |
388 | 388 | { |
389 | - $this->context->controller->addCSS($this->_path.'/views/css/front.css'); |
|
389 | + $this->context->controller->addCSS($this->_path . '/views/css/front.css'); |
|
390 | 390 | } |
391 | 391 | |
392 | 392 | public function hookPaymentOptions($params) |
@@ -398,7 +398,7 @@ discard block |
||
398 | 398 | $paymentOption = new PaymentOption(); |
399 | 399 | $paymentOption->setCallToActionText(Configuration::get('B2BINPAY_TITLE')) |
400 | 400 | ->setForm($this->generateForm()) |
401 | - ->setLogo(Media::getMediaPath(_PS_MODULE_DIR_.$this->name.'/logo.png')); |
|
401 | + ->setLogo(Media::getMediaPath(_PS_MODULE_DIR_ . $this->name . '/logo.png')); |
|
402 | 402 | |
403 | 403 | $payment_options = array($paymentOption); |
404 | 404 | |
@@ -414,6 +414,6 @@ discard block |
||
414 | 414 | ) |
415 | 415 | ); |
416 | 416 | |
417 | - return $this->context->smarty->fetch($this->local_path.'views/templates/front/payment_form.tpl'); |
|
417 | + return $this->context->smarty->fetch($this->local_path . 'views/templates/front/payment_form.tpl'); |
|
418 | 418 | } |
419 | 419 | } |