Fix travis errors

This commit is contained in:
John BOTELLA 2019-03-08 14:40:22 +01:00
parent 74c8754092
commit ccebb8d1a7
2 changed files with 3 additions and 4 deletions

View File

@ -8131,4 +8131,3 @@ function dolGetButtonAction($label, $html = '', $actionType = 'default', $url =
return '<div class="inline-block divButAction"><'.$tag.' '.$compiledAttributes.'>'.$html.'</'.$tag.'></div>'; return '<div class="inline-block divButAction"><'.$tag.' '.$compiledAttributes.'>'.$html.'</'.$tag.'></div>';
} }

View File

@ -2253,7 +2253,7 @@ function colorAdjustBrightness($hex, $steps)
*/ */
function colorDarker($hex, $percent) function colorDarker($hex, $percent)
{ {
$steps = intval(255 * $percent / 100 ) * -1; $steps = intval(255 * $percent / 100) * -1;
return colorAdjustBrightness($hex, $steps); return colorAdjustBrightness($hex, $steps);
} }
@ -2264,7 +2264,7 @@ function colorDarker($hex, $percent)
*/ */
function colorLighten($hex, $percent) function colorLighten($hex, $percent)
{ {
$steps = intval(255 * $percent / 100 ); $steps = intval(255 * $percent / 100);
return colorAdjustBrightness($hex, $steps); return colorAdjustBrightness($hex, $steps);
} }
@ -2272,7 +2272,7 @@ function colorLighten($hex, $percent)
/** /**
* @param string $hex color in hex * @param string $hex color in hex
* @param float $alpha 0 to 1 * @param float $alpha 0 to 1
* @param bool $returnArray * @param bool $returnArray set to 1 to return an array instead of string
* @return string * @return string
*/ */
function colorHexToRgb($hex, $alpha = false, $returnArray = false) function colorHexToRgb($hex, $alpha = false, $returnArray = false)