From 69794f5293dd8a47d7106fd056f5e7bec319d395 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 4 Mar 2019 17:31:50 +0100 Subject: [PATCH] Fix phpcs --- htdocs/core/modules/DolibarrModules.class.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/htdocs/core/modules/DolibarrModules.class.php b/htdocs/core/modules/DolibarrModules.class.php index 8544cdb2416..a1ccb701a21 100644 --- a/htdocs/core/modules/DolibarrModules.class.php +++ b/htdocs/core/modules/DolibarrModules.class.php @@ -972,6 +972,7 @@ class DolibarrModules // Can not be abstract, because we need to instantiate it } + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore /** * Insert constants for module activation * @@ -979,6 +980,7 @@ class DolibarrModules // Can not be abstract, because we need to instantiate it */ protected function _active() { + // phpcs:enable global $conf, $user; $err = 0; @@ -1013,6 +1015,7 @@ class DolibarrModules // Can not be abstract, because we need to instantiate it } + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore /** * Module deactivation * @@ -1020,6 +1023,7 @@ class DolibarrModules // Can not be abstract, because we need to instantiate it */ protected function _unactive() { + // phpcs:enable global $conf; $err = 0; @@ -1039,6 +1043,7 @@ class DolibarrModules // Can not be abstract, because we need to instantiate it // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore /** * Create tables and keys required by module. * Files module.sql and module.key.sql with create table and create keys