@@ -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. |
@@ -38,10 +38,10 @@ discard block |
||
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | /** |
| 41 | - * Refresh the parameters passed to the JavaScript via JSON. |
|
| 41 | + * Refresh the parameters passed to the JavaScript via JSON. |
|
| 42 | 42 | * |
| 43 | - * @return array Array of parameters passed to the JavaScript. |
|
| 44 | - */ |
|
| 43 | + * @return array Array of parameters passed to the JavaScript. |
|
| 44 | + */ |
|
| 45 | 45 | public function json() { |
| 46 | 46 | $json = parent::json(); |
| 47 | 47 | $value = $this->value(); |
@@ -57,8 +57,8 @@ discard block |
||
| 57 | 57 | $json['fonts'] = $fonts; |
| 58 | 58 | $json['variants'] = $fonts[$key]['variants']; |
| 59 | 59 | $json['subsets'] = $fonts[$key]['subsets']; |
| 60 | - return $json; |
|
| 61 | - } |
|
| 60 | + return $json; |
|
| 61 | + } |
|
| 62 | 62 | |
| 63 | 63 | /** |
| 64 | 64 | * Don't render the control content from PHP, as it's rendered via JS on load. |