@@ -8,20 +8,20 @@ |
||
8 | 8 | public $unit = ''; |
9 | 9 | |
10 | 10 | /** |
11 | - * Refresh the parameters passed to the JavaScript via JSON. |
|
11 | + * Refresh the parameters passed to the JavaScript via JSON. |
|
12 | 12 | * |
13 | - * @return array Array of parameters passed to the JavaScript. |
|
14 | - */ |
|
13 | + * @return array Array of parameters passed to the JavaScript. |
|
14 | + */ |
|
15 | 15 | public function json() { |
16 | 16 | $json = parent::json(); |
17 | 17 | $json['id'] = $this->id; |
18 | 18 | $json['link'] = $this->get_link(); |
19 | 19 | $json['value'] = $this->value(); |
20 | - $json['unit'] = $this->unit; |
|
20 | + $json['unit'] = $this->unit; |
|
21 | 21 | $json['input_attrs'] = $this->input_attrs; |
22 | 22 | $json['default'] = $this->default ?? $this->setting->default; |
23 | - return $json; |
|
24 | - } |
|
23 | + return $json; |
|
24 | + } |
|
25 | 25 | |
26 | 26 | /** |
27 | 27 | * Don't render the control content from PHP, as it's rendered via JS on load. |
@@ -44,10 +44,10 @@ discard block |
||
44 | 44 | } |
45 | 45 | |
46 | 46 | /** |
47 | - * Refresh the parameters passed to the JavaScript via JSON. |
|
47 | + * Refresh the parameters passed to the JavaScript via JSON. |
|
48 | 48 | * |
49 | - * @return array Array of parameters passed to the JavaScript. |
|
50 | - */ |
|
49 | + * @return array Array of parameters passed to the JavaScript. |
|
50 | + */ |
|
51 | 51 | public function json() { |
52 | 52 | $json = parent::json(); |
53 | 53 | $value = $this->value(); |
@@ -63,8 +63,8 @@ discard block |
||
63 | 63 | $json['variants'] = array_filter($fonts[$key]['variants'], function($variant) { |
64 | 64 | return strpos($variant, 'italic') === false; |
65 | 65 | }); |
66 | - return $json; |
|
67 | - } |
|
66 | + return $json; |
|
67 | + } |
|
68 | 68 | |
69 | 69 | /** |
70 | 70 | * Don't render the control content from PHP, as it's rendered via JS on load. |