| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | protected function createComponentForm() |
||
| 27 | { |
||
| 28 | $form = new Form(); |
||
| 29 | $form->setMethod('get'); |
||
| 30 | $form->setRenderer(new BootstrapVerticalRenderer()); |
||
| 31 | $form->addTextArea('commands', 'Commands', null, 10) |
||
| 32 | ->setDefaultValue($this->commands) |
||
| 33 | ->setRequired('%label is required'); |
||
| 34 | $form->addSubmit('submit', 'Execute'); |
||
| 35 | $form->onSuccess[] = [$this, 'formSuccess']; |
||
| 36 | return $form; |
||
| 37 | } |
||
| 38 | |||
| 44 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.