Skip to content

Commit f43d588

Browse files
committed
Apply PSR2 standard in ps_googleanalytics methods
1 parent 3e827d9 commit f43d588

4 files changed

Lines changed: 13 additions & 13 deletions

File tree

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
vendor/
1+
vendor/
2+
.php_cs.cache
3+
.prettyci.composer.json

.gitmodules

Lines changed: 0 additions & 1 deletion
This file was deleted.

.php_cs.cache

Lines changed: 0 additions & 1 deletion
This file was deleted.

ps_googleanalytics.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public function getContent()
8282
return $this->display(__FILE__, './views/templates/admin/configuration.tpl') . $formOutput;
8383
}
8484

85-
public function hookdisplayHeader($params, $back_office = false)
85+
public function hookDisplayHeader($params, $back_office = false)
8686
{
8787
$hook = new PrestaShop\Module\Ps_Googleanalytics\Hooks\HookDisplayHeader($this, $this->context);
8888
$hook->setBackOffice($back_office);
@@ -93,7 +93,7 @@ public function hookdisplayHeader($params, $back_office = false)
9393
/**
9494
* To track transactions
9595
*/
96-
public function hookdisplayOrderConfirmation($params)
96+
public function hookDisplayOrderConfirmation($params)
9797
{
9898
$hook = new PrestaShop\Module\Ps_Googleanalytics\Hooks\HookDisplayOrderConfirmation($this, $this->context);
9999
$hook->setParams($params);
@@ -104,7 +104,7 @@ public function hookdisplayOrderConfirmation($params)
104104
/**
105105
* hook footer to load JS script for standards actions such as product clicks
106106
*/
107-
public function hookdisplayFooter()
107+
public function hookDisplayFooter()
108108
{
109109
$hook = new PrestaShop\Module\Ps_Googleanalytics\Hooks\HookDisplayFooter($this, $this->context);
110110

@@ -114,7 +114,7 @@ public function hookdisplayFooter()
114114
/**
115115
* hook home to display generate the product list associated to home featured, news products and best sellers Modules
116116
*/
117-
public function hookdisplayHome()
117+
public function hookDisplayHome()
118118
{
119119
$hook = new PrestaShop\Module\Ps_Googleanalytics\Hooks\HookDisplayHome($this, $this->context);
120120

@@ -124,7 +124,7 @@ public function hookdisplayHome()
124124
/**
125125
* hook product page footer to load JS for product details view
126126
*/
127-
public function hookdisplayFooterProduct($params)
127+
public function hookDisplayFooterProduct($params)
128128
{
129129
$hook = new PrestaShop\Module\Ps_Googleanalytics\Hooks\HookDisplayFooterProduct($this, $this->context);
130130
$hook->setParams($params);
@@ -135,7 +135,7 @@ public function hookdisplayFooterProduct($params)
135135
/**
136136
* Hook admin order to send transactions and refunds details
137137
*/
138-
public function hookdisplayAdminOrder()
138+
public function hookDisplayAdminOrder()
139139
{
140140
$gaTagHandler = new PrestaShop\Module\Ps_Googleanalytics\Handler\GanalyticsJsHandler($this, $this->context);
141141

@@ -149,7 +149,7 @@ public function hookdisplayAdminOrder()
149149
/**
150150
* admin office header to add google analytics js
151151
*/
152-
public function hookdisplayBackOfficeHeader()
152+
public function hookDisplayBackOfficeHeader()
153153
{
154154
$hook = new PrestaShop\Module\Ps_Googleanalytics\Hooks\HookDisplayBackOfficeHeader($this, $this->context);
155155

@@ -159,7 +159,7 @@ public function hookdisplayBackOfficeHeader()
159159
/**
160160
* Hook admin office header to add google analytics js
161161
*/
162-
public function hookactionProductCancel($params)
162+
public function hookActionProductCancel($params)
163163
{
164164
$hook = new PrestaShop\Module\Ps_Googleanalytics\Hooks\HookActionProductCancel($this, $this->context);
165165
$hook->setParams($params);
@@ -169,13 +169,13 @@ public function hookactionProductCancel($params)
169169
/**
170170
* hook save cart event to implement addtocart and remove from cart functionality
171171
*/
172-
public function hookactionCartSave()
172+
public function hookActionCartSave()
173173
{
174174
$hook = new PrestaShop\Module\Ps_Googleanalytics\Hooks\HookActionCartSave($this, $this->context);
175175
$hook->run();
176176
}
177177

178-
public function hookactionCarrierProcess($params)
178+
public function hookActionCarrierProcess($params)
179179
{
180180
$hook = new PrestaShop\Module\Ps_Googleanalytics\Hooks\HookActionCarrierProcess($this, $this->context);
181181
$hook->setParams($params);

0 commit comments

Comments
 (0)