@@ -58,7 +58,7 @@ |
||
| 58 | 58 | * Simply triggers a E_USER_WARNING error with $message |
| 59 | 59 | * |
| 60 | 60 | * @param string $message The message describing the error |
| 61 | - * @return void |
|
| 61 | + * @return boolean |
|
| 62 | 62 | */ |
| 63 | 63 | protected static function trigger(string $message) { |
| 64 | 64 | return trigger_error($message, E_USER_WARNING); |
@@ -88,9 +88,9 @@ discard block |
||
| 88 | 88 | /** |
| 89 | 89 | * Convert a RGB array to a HSL array |
| 90 | 90 | * |
| 91 | - * @param float $r The red value (0 - 255) |
|
| 92 | - * @param float $g The green value (0 - 255) |
|
| 93 | - * @param float $b The blue value (0 - 255) |
|
| 91 | + * @param integer $r The red value (0 - 255) |
|
| 92 | + * @param integer $g The green value (0 - 255) |
|
| 93 | + * @param integer $b The blue value (0 - 255) |
|
| 94 | 94 | * @return array The resulting HSL array |
| 95 | 95 | */ |
| 96 | 96 | public static function rgb_to_hsl(int $r = 0, int $g = 0, int $b = 0, $accuracy = 2) :array { |
@@ -274,7 +274,6 @@ discard block |
||
| 274 | 274 | * |
| 275 | 275 | * @param float $h The hue value (0 - 360) |
| 276 | 276 | * @param float $s The saturation value (0 - 100) |
| 277 | - * @param float $b The brightness value (0 - 100) |
|
| 278 | 277 | * @return array The resulting RGB array |
| 279 | 278 | */ |
| 280 | 279 | public static function hsb_to_rgb(float $h = 0.0, float $s = 0.0, float $v = 0.0, int $accuracy = 3) :array { |