| Total Complexity | 4 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 7 | class TextEditor extends Component |
||
| 8 | { |
||
| 9 | public $id; |
||
| 10 | public $name; |
||
| 11 | public $label; |
||
| 12 | public $placeholder; |
||
| 13 | public $topclass; |
||
| 14 | public $inputclass; |
||
| 15 | public $body; |
||
| 16 | public $disabled; |
||
| 17 | public $required; |
||
| 18 | public $height; |
||
| 19 | public $fonts; |
||
| 20 | public $def_fonts = ['Arial', 'Arial Black', 'Comic Sans MS', 'Courier New', 'Impact', 'Montserrat', 'Open Sans', 'Ubuntu', 'Rajdhani']; |
||
| 21 | |||
| 22 | 2 | public function __construct( |
|
| 40 | 2 | } |
|
| 41 | |||
| 42 | 1 | public function fontarray() |
|
| 43 | { |
||
| 44 | 1 | return $this->fonts == null ? json_encode($this->def_fonts) : $this->fonts; |
|
| 45 | } |
||
| 46 | |||
| 47 | 1 | public function render() |
|
| 50 | } |
||
| 51 | } |
||
| 52 |