Passed
Push — master ( abe4b3...8610b8 )
by Alexander
02:51
created
b2binpay.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.