Conditions | 4 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
27 | function to_json($load) { |
||
28 | $field_data = parent::to_json($load); |
||
29 | |||
30 | $field_data = array_merge($field_data, array( |
||
31 | 'min' => is_numeric($this->min) ? $this->min : $this->default_min, |
||
32 | 'max' => is_numeric($this->max) ? $this->max : $this->default_max, |
||
33 | 'step' => is_numeric($this->step) ? $this->step : $this->default_step, |
||
34 | )); |
||
35 | |||
36 | return $field_data; |
||
37 | } |
||
38 | |||
77 | } |
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.