1 | <?php |
||
5 | class cmyk implements \projectcleverweb\color\interfaces\converter { |
||
6 | use \projectcleverweb\color\traits\convert\meta; |
||
7 | |||
8 | protected static $valid_keys = array( |
||
9 | 'c', |
||
10 | 'm', |
||
11 | 'y', |
||
12 | 'k' |
||
13 | ); |
||
14 | |||
15 | protected static $default_value = array( |
||
16 | 'c' => 0, |
||
17 | 'm' => 0, |
||
18 | 'y' => 0, |
||
19 | 'k' => 0 |
||
20 | ); |
||
21 | |||
22 | public static function to_rgb($input) :array { |
||
37 | |||
38 | public static function to_hex($input) :string { |
||
41 | |||
42 | public static function to_cmyk($input) :array { |
||
45 | |||
46 | public static function to_hsl($input) :array { |
||
49 | |||
50 | public static function to_hsb($input) :array { |
||
53 | } |
||
54 |
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.