test phpcs v3

This commit is contained in:
Frédéric FRANCE 2018-08-09 11:50:07 +02:00
parent 62b83412ee
commit 79aaddbb66
No known key found for this signature in database
GPG Key ID: 06809324E4B2ABC1
9 changed files with 46 additions and 49 deletions

View File

@ -36,11 +36,11 @@
* @param int $minLength Minimum number of chars to trigger that Ajax search * @param int $minLength Minimum number of chars to trigger that Ajax search
* @param int $autoselect Automatic selection if just one value * @param int $autoselect Automatic selection if just one value
* @param array $ajaxoptions Multiple options array * @param array $ajaxoptions Multiple options array
* Ex: array('update'=>array('field1','field2'...)) will reset field1 and field2 once select done * - Ex: array('update'=>array('field1','field2'...)) will reset field1 and field2 once select done
* Ex: array('disabled'=> ) * - Ex: array('disabled'=> )
* Ex: array('show'=> ) * - Ex: array('show'=> )
* Ex: array('update_textarea'=> ) * - Ex: array('update_textarea'=> )
* Ex: array('option_disabled'=> id to disable and warning to show if we select a disabled value (this is possible when using autocomplete ajax) * - Ex: array('option_disabled'=> id to disable and warning to show if we select a disabled value (this is possible when using autocomplete ajax)
* @return string Script * @return string Script
*/ */
function ajax_autocompleter($selected, $htmlname, $url, $urloption='', $minLength=2, $autoselect=0, $ajaxoptions=array()) function ajax_autocompleter($selected, $htmlname, $url, $urloption='', $minLength=2, $autoselect=0, $ajaxoptions=array())
@ -622,4 +622,3 @@ function ajax_object_onoff($object, $code, $field, $text_on, $text_off, $input=a
return $out; return $out;
} }

View File

@ -162,15 +162,15 @@ function convertTime2Seconds($iHours=0,$iMinutes=0,$iSeconds=0)
* *
* @param int $iSecond Number of seconds * @param int $iSecond Number of seconds
* @param string $format Output format ('all': total delay days hour:min like "2 days 12:30", * @param string $format Output format ('all': total delay days hour:min like "2 days 12:30",
* 'allwithouthour': total delay days without hour part like "2 days", * - 'allwithouthour': total delay days without hour part like "2 days",
* 'allhourmin': total delay with format hours:min like "60:30", * - 'allhourmin': total delay with format hours:min like "60:30",
* 'allhour': total delay hours without min/sec like "60:30", * - 'allhour': total delay hours without min/sec like "60:30",
* 'fullhour': total delay hour decimal like "60.5" for 60:30, * - 'fullhour': total delay hour decimal like "60.5" for 60:30,
* 'hour': only hours part "12", * - 'hour': only hours part "12",
* 'min': only minutes part "30", * - 'min': only minutes part "30",
* 'sec': only seconds part, * - 'sec': only seconds part,
* 'month': only month part, * - 'month': only month part,
* 'year': only year part); * - 'year': only year part);
* @param int $lengthOfDay Length of day (default 86400 seconds for 1 day, 28800 for 8 hour) * @param int $lengthOfDay Length of day (default 86400 seconds for 1 day, 28800 for 8 hour)
* @param int $lengthOfWeek Length of week (default 7) * @param int $lengthOfWeek Length of week (default 7)
* @return string Formated text of duration * @return string Formated text of duration
@ -964,4 +964,3 @@ function monthArray($outputlangs,$short=0)
return $montharray; return $montharray;
} }

View File

@ -377,8 +377,8 @@ class DolibarrModules // Can not be abstract, because we need to insta
* *
* @param array $array_sql SQL requests to be executed when enabling module * @param array $array_sql SQL requests to be executed when enabling module
* @param string $options String with options when disabling module: * @param string $options String with options when disabling module:
* 'noboxes' = Do not insert boxes * - 'noboxes' = Do not insert boxes
* 'newboxdefonly' = For boxes, insert def of boxes only and not boxes activation * - 'newboxdefonly' = For boxes, insert def of boxes only and not boxes activation
* *
* @return int 1 if OK, 0 if KO * @return int 1 if OK, 0 if KO
*/ */
@ -468,7 +468,7 @@ class DolibarrModules // Can not be abstract, because we need to insta
* *
* @param string[] $array_sql SQL requests to be executed when module is disabled * @param string[] $array_sql SQL requests to be executed when module is disabled
* @param string $options Options when disabling module: * @param string $options Options when disabling module:
* 'newboxdefonly|noboxes' = We don't remove boxes. * - 'newboxdefonly|noboxes' = We don't remove boxes.
* *
* @return int 1 if OK, 0 if KO * @return int 1 if OK, 0 if KO
*/ */

View File

@ -850,4 +850,3 @@ class ProductFournisseur extends Product
} }
} }