@@ -333,6 +333,7 @@ |
||
| 333 | 333 | * @param float $h The hue degree (0 - 359) |
| 334 | 334 | * @param float $s The saturation percentage (0 - 100) |
| 335 | 335 | * @param float $l The lighting percentage (0 - 100) |
| 336 | + * @param boolean|null $is_dark |
|
| 336 | 337 | * @return void |
| 337 | 338 | */ |
| 338 | 339 | protected static function is_dark(&$is_dark, float $h = 0.0, float $s = 0.0, float $l = 0.0) { |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | /** |
| 72 | 72 | * Import a value according to its specification |
| 73 | 73 | * |
| 74 | - * @param array $value The value to import |
|
| 74 | + * @param double $value The value to import |
|
| 75 | 75 | * @param string $key The key being imported |
| 76 | 76 | * @param array $spec The specification to follow |
| 77 | 77 | * @return void |
@@ -319,7 +319,7 @@ discard block |
||
| 319 | 319 | /** |
| 320 | 320 | * DISABLED |
| 321 | 321 | * |
| 322 | - * @param mixed $disabled Disabled |
|
| 322 | + * @param mixed $disbaled Disabled |
|
| 323 | 323 | * @return void |
| 324 | 324 | * @codeCoverageIgnore |
| 325 | 325 | */ |
@@ -110,7 +110,7 @@ |
||
| 110 | 110 | * Triggers a E_USER_WARNING error with $message |
| 111 | 111 | * |
| 112 | 112 | * @param string $message The message describing the error |
| 113 | - * @return void |
|
| 113 | + * @return boolean |
|
| 114 | 114 | */ |
| 115 | 115 | protected static function standard(string $message, int $code = 0) { |
| 116 | 116 | if (!isset(static::$type_map[$code])) { |
@@ -14,10 +14,16 @@ discard block |
||
| 14 | 14 | */ |
| 15 | 15 | trait converter { |
| 16 | 16 | |
| 17 | + /** |
|
| 18 | + * @param string $message |
|
| 19 | + */ |
|
| 17 | 20 | protected static function error($message) { |
| 18 | 21 | return \projectcleverweb\color\error::trigger(0, $message); |
| 19 | 22 | } |
| 20 | 23 | |
| 24 | + /** |
|
| 25 | + * @return double |
|
| 26 | + */ |
|
| 21 | 27 | protected static function _validate_array_input($input) { |
| 22 | 28 | if (!is_array($input)) { |
| 23 | 29 | static::error(sprintf( |
@@ -43,6 +49,9 @@ discard block |
||
| 43 | 49 | return $array; |
| 44 | 50 | } |
| 45 | 51 | |
| 52 | + /** |
|
| 53 | + * @return string |
|
| 54 | + */ |
|
| 46 | 55 | public static function _validate_hex_input($input) { |
| 47 | 56 | if (is_int($input)) { |
| 48 | 57 | return str_pad(dechex($input % 16777216), 6, '0', STR_PAD_LEFT); |