| Conditions | 1 |
| Paths | 1 |
| Total Lines | 40 |
| Code Lines | 25 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 35 | public function init() |
||
| 36 | { |
||
| 37 | $this->setObject(new \ArrayObject); |
||
| 38 | $this->add([ |
||
| 39 | 'name' => 'id', |
||
| 40 | 'type' => 'Hidden', |
||
| 41 | ]); |
||
| 42 | |||
| 43 | $this->add([ |
||
| 44 | 'name' => 'current', |
||
| 45 | 'type' => 'Hidden', |
||
| 46 | ]); |
||
| 47 | $this->add([ |
||
| 48 | 'name' => 'do', |
||
| 49 | 'type' => 'Hidden', |
||
| 50 | ]); |
||
| 51 | $this->add([ |
||
| 52 | 'name' => 'name', |
||
| 53 | 'type' => 'Text', |
||
| 54 | 'options' => [ |
||
| 55 | 'label' => /*@translate*/ 'Name', |
||
| 56 | ], |
||
| 57 | |||
| 58 | 'attributes' => ['required' => 'required'], |
||
| 59 | ]); |
||
| 60 | |||
| 61 | $this->add([ |
||
| 62 | 'name' => 'value', |
||
| 63 | 'type' => 'Text', |
||
| 64 | 'options' => [ |
||
| 65 | 'label' => /*@translate*/ 'Value', |
||
| 66 | ], |
||
| 67 | ]); |
||
| 68 | |||
| 69 | $this->add([ |
||
| 70 | 'name' => 'priority', |
||
| 71 | 'type' => 'Text', |
||
| 72 | ]); |
||
| 73 | |||
| 74 | } |
||
| 75 | |||
| 93 | } |
This check marks private properties in classes that are never used. Those properties can be removed.