1 | <?php |
||
7 | class main extends main_peripheral { |
||
8 | |||
9 | public $color; |
||
10 | |||
11 | public function __construct($color) { |
||
14 | |||
15 | protected function set($color, string $type = '') { |
||
22 | |||
23 | public function rgb() :array { |
||
26 | |||
27 | public function hsl(int $accuracy = 0) :array { |
||
34 | |||
35 | public function cmyk() :array { |
||
39 | |||
40 | public function hsb(int $accuracy = 0) :array { |
||
44 | |||
45 | public function hex() :string { |
||
48 | |||
49 | public function css() :string { |
||
52 | |||
53 | /** |
||
54 | * Get (and set) the alpha channel |
||
55 | * |
||
56 | * @param mixed $new_alpha If numeric, the alpha channel is set to this value |
||
57 | * @return float The current alpha value |
||
58 | */ |
||
59 | public function alpha($new_alpha) { |
||
62 | |||
63 | public function is_dark(int $check_score = 128) :bool { |
||
67 | |||
68 | public function red(float $adjustment, bool $as_percentage = FALSE, bool $set_absolute = TRUE) { |
||
71 | |||
72 | public function green(float $adjustment, bool $as_percentage = FALSE, bool $set_absolute = TRUE) { |
||
75 | |||
76 | public function blue(float $adjustment, bool $as_percentage = FALSE, bool $set_absolute = TRUE) { |
||
79 | |||
80 | public function hue(float $adjustment, bool $as_percentage = FALSE, bool $set_absolute = TRUE) { |
||
83 | |||
84 | public function saturation(float $adjustment, bool $as_percentage = FALSE, bool $set_absolute = TRUE) { |
||
87 | |||
88 | public function light(float $adjustment, bool $as_percentage = FALSE, bool $set_absolute = TRUE) { |
||
91 | |||
92 | public function blend(main $color2, float $amount = 50.0) { |
||
101 | |||
102 | public function scheme(string $scheme_name, string $return_type = 'hex') :array { |
||
105 | |||
106 | public function rgb_rand(int $min_r = 0, int $max_r = 255, int $min_g = 0, int $max_g = 255, int $min_b = 0, int $max_b = 255) :color { |
||
109 | |||
110 | public function hsl_rand(int $min_h = 0, int $max_h = 255, int $min_s = 0, int $max_s = 255, int $min_l = 0, int $max_l = 255) :color { |
||
113 | |||
114 | } |
||
115 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.