1 | <?php |
||
5 | class hsl implements \projectcleverweb\color\interfaces\converter { |
||
6 | use \projectcleverweb\color\traits\converter; |
||
7 | |||
8 | protected static $valid_keys = array( |
||
9 | 'h', |
||
10 | 's', |
||
11 | 'l' |
||
12 | ); |
||
13 | |||
14 | protected static $default_value = array( |
||
15 | 'h' => 0, |
||
16 | 's' => 0, |
||
17 | 'l' => 0 |
||
18 | ); |
||
19 | |||
20 | public static function to_rgb($input) :array { |
||
43 | |||
44 | public static function to_hex($input) :string { |
||
47 | |||
48 | public static function to_cmyk($input) :array { |
||
51 | |||
52 | public static function to_hsl($input) :array { |
||
55 | |||
56 | public static function to_hsb($input) :array { |
||
59 | } |
||
60 |
This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line.
To visualize
will produce issues in the first and second line, while this second example
will produce no issues.