| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 33 | public function FormProvider(): Form |
||
| 34 | { |
||
| 35 | $form = new Form( |
||
| 36 | $this, |
||
| 37 | 'FormProvider', |
||
| 38 | FieldList::create( |
||
| 39 | TextField::create('Keywords', 'Keyword(s)', $this->getKeywords() ?? '') |
||
| 40 | ->setAttribute('placeholder', 'e.g. agreement') |
||
| 41 | ), |
||
| 42 | FieldList::create( |
||
| 43 | FormAction::create('doSearch', 'Search') |
||
| 44 | ) |
||
| 45 | ); |
||
| 46 | $form->setFormMethod('GET'); |
||
| 47 | $form->setFormAction($this->Link()); |
||
| 48 | $form->disableSecurityToken(); |
||
| 49 | return $form; |
||
| 50 | } |
||
| 61 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.