@@ -264,7 +264,8 @@ |
||
264 | 264 | * @param float|integer $h The hue degree (0 - 359) |
265 | 265 | * @param float|integer $s The saturation percentage (0 - 100) |
266 | 266 | * @param float|integer $l The lighting percentage (0 - 100) |
267 | - * @return boolean TRUE if the color is dark, FALSE otherwise. |
|
267 | + * @param boolean|null $is_dark |
|
268 | + * @return boolean|null TRUE if the color is dark, FALSE otherwise. |
|
268 | 269 | */ |
269 | 270 | protected static function is_dark(&$is_dark, float $h = 0, float $s = 0, float $l = 0) { |
270 | 271 | if (is_null($is_dark)) { |
@@ -80,6 +80,9 @@ |
||
80 | 80 | $hex_str = generate::expand_shorthand($hex_str); |
81 | 81 | } |
82 | 82 | |
83 | + /** |
|
84 | + * @param string $hex_str |
|
85 | + */ |
|
83 | 86 | protected static function _validate_hex_str(&$hex_str) { |
84 | 87 | if (is_string($hex_str) && preg_match('/\A#?(?:[0-9a-f]{3}|[0-9a-f]{6})\Z/i', $hex_str)) { |
85 | 88 | return; |