Checkstyle

This commit is contained in:
Laurent Destailleur 2012-07-25 11:40:23 +02:00
parent b63820c013
commit ea54523181
2 changed files with 4 additions and 3 deletions

View File

@ -89,7 +89,7 @@
<rule ref="Generic.Metrics.CyclomaticComplexity"> <rule ref="Generic.Metrics.CyclomaticComplexity">
<properties> <properties>
<property name="complexity" value="80" /> <property name="complexity" value="80" />
<property name="absoluteComplexity" value="100" /> <property name="absoluteComplexity" value="200" />
</properties> </properties>
</rule> </rule>
<rule ref="Generic.Metrics.NestingLevel"> <rule ref="Generic.Metrics.NestingLevel">

View File

@ -26,6 +26,7 @@
* *
* @param int $id Element id * @param int $id Element id
* @param string $table Table of Element * @param string $table Table of Element
* @return boolean True if child exists
*/ */
function checkElementExist($id, $table) function checkElementExist($id, $table)
{ {
@ -111,7 +112,7 @@ function checkLinkedElements($sourcetype, $targettype)
/** /**
* Clean data into ecm_directories table * Clean data into ecm_directories table
* *
* @return void * @return void
*/ */
function clean_data_ecm_directories() function clean_data_ecm_directories()
@ -135,7 +136,7 @@ function clean_data_ecm_directories()
$resqlupdate=$db->query($sqlupdate); $resqlupdate=$db->query($sqlupdate);
if (! $resqlupdate) dol_print_error($db,'Failed to update'); if (! $resqlupdate) dol_print_error($db,'Failed to update');
} }
} }
} }
else dol_print_error($db,'Failed to run request'); else dol_print_error($db,'Failed to run request');