Total Complexity | 2 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
20 | class Kirki_Control_Dimension extends Kirki_Control_Base { |
||
21 | |||
22 | /** |
||
23 | * The control type. |
||
24 | * |
||
25 | * @access public |
||
26 | * @var string |
||
27 | */ |
||
28 | public $type = 'kirki-dimension'; |
||
29 | |||
30 | /** |
||
31 | * Enqueue control related scripts/styles. |
||
32 | * |
||
33 | * @access public |
||
34 | */ |
||
35 | public function enqueue() { |
||
40 | ) |
||
41 | ); |
||
42 | } |
||
43 | |||
44 | /** |
||
45 | * An Underscore (JS) template for this control's content (but not its container). |
||
46 | * |
||
47 | * Class variables for this control class are available in the `data` JS object; |
||
48 | * export custom variables by overriding {@see WP_Customize_Control::to_json()}. |
||
49 | * |
||
50 | * @see WP_Customize_Control::print_template() |
||
51 | * |
||
52 | * @access protected |
||
53 | */ |
||
54 | protected function content_template() { |
||
67 |
For a function calls that spawns multiple lines, the coding style suggests to split arguments to separate lines like this: