| Total Complexity | 4 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | class Demo_applyMask extends Demo |
||
| 6 | { |
||
| 7 | public $order = 600; |
||
| 8 | |||
| 9 | function init() |
||
| 10 | { |
||
| 11 | $this->addField(new FileSelectField('mask', 'masks')); |
||
| 12 | $this->addField(new CoordinateField('left', 10)); |
||
| 13 | $this->addField(new CoordinateField('top', '30%')); |
||
| 14 | |||
| 15 | if (!$this->request->get('mask')) |
||
| 16 | $this->request->set('mask', 'mask-circle.gif'); |
||
| 17 | } |
||
| 18 | |||
| 19 | function execute($image) |
||
| 26 | } |
||
| 27 | |||
| 28 | function getFormat() |
||
| 33 |
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.