Use new code style

This commit is contained in:
David Stone
2025-02-07 19:02:33 -07:00
parent 0181024ae1
commit 8433379d90
672 changed files with 37107 additions and 45249 deletions

View File

@ -14,7 +14,7 @@
// Exit if accessed directly
defined('ABSPATH') || exit;
use \Mexitek\PHPColors\Color;
use Mexitek\PHPColors\Color;
/**
* Returns a Color object.
@ -27,18 +27,13 @@ use \Mexitek\PHPColors\Color;
function wu_color($hex) {
try {
$color = new Color($hex);
} catch (Exception $exception) {
$color = new Color('#f9f9f9');
} // end try;
}
return $color;
} // end wu_color;
}
/**
* Gets a random color for the progress bar.
@ -61,5 +56,4 @@ function wu_get_random_color($index) {
);
return wu_get_isset($colors, $index, $colors[ rand(0, count($colors) - 1) ]);
} // end wu_get_random_color;
}