Total Complexity | 7 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | class Demo_roundCorners extends Demo |
||
6 | { |
||
7 | public $order = 1075; |
||
8 | |||
9 | function init() |
||
10 | { |
||
11 | $this->addField(new IntField('radius', 30)); |
||
12 | $this->addField(new ColorField('color', 'ffffff')); |
||
13 | $this->addField(new IntField('smoothness', 2)); |
||
14 | |||
15 | $this->addField(new CheckboxField('top-left', true)); |
||
16 | $this->addField(new CheckboxField('top-right', true)); |
||
17 | $this->addField(new CheckboxField('bottom-right', true)); |
||
18 | $this->addField(new CheckboxField('bottom-left', true)); |
||
19 | } |
||
20 | |||
21 | function execute($image, $request) |
||
41 | } |
||
42 | } |
||
43 |
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.