Merge pull request #1028 from cachethq/analysis-Xk6bP8

Applied fixes from StyleCI
This commit is contained in:
Graham Campbell
2015-10-09 14:42:16 +01:00
+2 -1
View File
@@ -106,7 +106,8 @@ if (!function_exists('color_contrast')) {
* *
* @return string * @return string
*/ */
function color_contrast($hexcolor) { function color_contrast($hexcolor)
{
$r = hexdec(substr($hexcolor, 0, 2)); $r = hexdec(substr($hexcolor, 0, 2));
$g = hexdec(substr($hexcolor, 2, 2)); $g = hexdec(substr($hexcolor, 2, 2));
$b = hexdec(substr($hexcolor, 4, 2)); $b = hexdec(substr($hexcolor, 4, 2));