Skip to content

Commit 63a11a7

Browse files
committed
Rename manageHook method into run
1 parent 67879c0 commit 63a11a7

11 files changed

Lines changed: 28 additions & 29 deletions

classes/Hook/HookActionCarrierProcess.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ public function __construct($module, $context) {
4242
}
4343

4444
/**
45-
* manageHook
45+
* run
4646
*
4747
* @return void
4848
*/
49-
public function manageHook()
49+
public function run()
5050
{
5151
if (isset($this->params['cart']->id_carrier)) {
5252
$carrierRepository = new CarrierRepository();

classes/Hook/HookActionCartSave.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ public function __construct($module, $context) {
4141
}
4242

4343
/**
44-
* manageHook
44+
* run
4545
*
4646
* @return void
4747
*/
48-
public function manageHook()
48+
public function run()
4949
{
5050
if (!isset($this->context->cart)) {
5151
return;

classes/Hook/HookActionProductCancel.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ public function __construct($module, $context) {
4040
}
4141

4242
/**
43-
* manageHook
43+
* run
4444
*
4545
* @return string
4646
*/
47-
public function manageHook()
47+
public function run()
4848
{
4949
$quantityRefunded = \Tools::getValue('cancelQuantity');
5050
$gaScripts = '';

classes/Hook/HookDisplayBackOfficeHeader.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ public function __construct($module, $context) {
4242
}
4343

4444
/**
45-
* manageHook
45+
* run
4646
*
4747
* @return string
4848
*/
49-
public function manageHook()
49+
public function run()
5050
{
5151
$js = '';
5252
if (strcmp(\Tools::getValue('configure'), $this->module->name) === 0) {

classes/Hook/HookDisplayFooter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ public function __construct($module, $context) {
4242
}
4343

4444
/**
45-
* manageHook
45+
* run
4646
*
4747
* @return string
4848
*/
49-
public function manageHook()
49+
public function run()
5050
{
5151
$gaTools = new GoogleAnalyticsTools();
5252
$ganalyticsDataHandler = new GanalyticsDataHandler(

classes/Hook/HookDisplayFooterProduct.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ public function __construct($module, $context) {
4242
}
4343

4444
/**
45-
* manageHook
45+
* run
4646
*
4747
* @return string
4848
*/
49-
public function manageHook()
49+
public function run()
5050
{
5151
$gaTools = new GoogleAnalyticsTools();
5252
$controllerName = \Tools::getValue('controller');

classes/Hook/HookDisplayHeader.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@ public function __construct($module, $context) {
4141
}
4242

4343
/**
44-
* manageHook
44+
* run
4545
*
4646
* @return string
4747
*/
48-
public function manageHook()
48+
public function run()
4949
{
5050
if (\Configuration::get('GA_ACCOUNT_ID')) {
5151
$this->context->controller->addJs($this->module->getPathUri().'views/js/GoogleAnalyticActionLib.js');

classes/Hook/HookDisplayHome.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ public function __construct($module, $context) {
4242
}
4343

4444
/**
45-
* manageHook
45+
* run
4646
*
4747
* @return string
4848
*/
49-
public function manageHook()
49+
public function run()
5050
{
5151
$moduleHandler = new ModuleHandler();
5252
$gaTools = new GoogleAnalyticsTools();

classes/Hook/HookDisplayOrderConfirmation.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,11 @@ public function __construct($module, $context) {
4343
}
4444

4545
/**
46-
* manageHook
46+
* run
4747
*
4848
* @return string
4949
*/
50-
public function manageHook()
50+
public function run()
5151
{
5252
if (true === $this->module->psVersionIs17) {
5353
$order = $this->params['order'];

classes/Hook/HookInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,5 @@ interface HookInterface {
3333
*/
3434
public function __construct(\Ps_Googleanalytics $module, \Context $context);
3535

36-
public function manageHook();
36+
public function run();
3737
}

0 commit comments

Comments
 (0)