From ea5452318160fed434982cffa0c7069524448fae Mon Sep 17 00:00:00 2001 From: Laurent Destailleur <eldy@destailleur.fr> Date: Wed, 25 Jul 2012 11:40:23 +0200 Subject: [PATCH] Checkstyle --- dev/codesniffer/ruleset.xml | 2 +- htdocs/install/lib/repair.lib.php | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/dev/codesniffer/ruleset.xml b/dev/codesniffer/ruleset.xml index e8eea25627e..3926d2fdde7 100755 --- a/dev/codesniffer/ruleset.xml +++ b/dev/codesniffer/ruleset.xml @@ -89,7 +89,7 @@ <rule ref="Generic.Metrics.CyclomaticComplexity"> <properties> <property name="complexity" value="80" /> - <property name="absoluteComplexity" value="100" /> + <property name="absoluteComplexity" value="200" /> </properties> </rule> <rule ref="Generic.Metrics.NestingLevel"> diff --git a/htdocs/install/lib/repair.lib.php b/htdocs/install/lib/repair.lib.php index 05b06fda034..c1f43865466 100644 --- a/htdocs/install/lib/repair.lib.php +++ b/htdocs/install/lib/repair.lib.php @@ -26,6 +26,7 @@ * * @param int $id Element id * @param string $table Table of Element + * @return boolean True if child exists */ function checkElementExist($id, $table) { @@ -111,7 +112,7 @@ function checkLinkedElements($sourcetype, $targettype) /** * Clean data into ecm_directories table - * + * * @return void */ function clean_data_ecm_directories() @@ -135,7 +136,7 @@ function clean_data_ecm_directories() $resqlupdate=$db->query($sqlupdate); if (! $resqlupdate) dol_print_error($db,'Failed to update'); } - + } } else dol_print_error($db,'Failed to run request'); -- GitLab