1 | <?php |
||
15 | class Kirki_Field_Sortable extends Kirki_Field { |
||
16 | |||
17 | /** |
||
18 | * Sets the control type. |
||
19 | * |
||
20 | * @access protected |
||
21 | */ |
||
22 | protected function set_type() { |
||
27 | |||
28 | /** |
||
29 | * Sets the $sanitize_callback. |
||
30 | * |
||
31 | * @access protected |
||
32 | */ |
||
33 | protected function set_sanitize_callback() { |
||
38 | |||
39 | /** |
||
40 | * Sanitizes sortable values. |
||
41 | * |
||
42 | * @access public |
||
43 | * @param array $value The checkbox value. |
||
44 | * @return bool |
||
|
|||
45 | */ |
||
46 | public function sanitize( $value = array() ) { |
||
62 | } |
||
63 |
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.