| Conditions | 3 |
| Paths | 2 |
| Total Lines | 21 |
| Code Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | public function Form() |
||
| 29 | { |
||
| 30 | $controller = UserDefinedFormController::create($this); |
||
| 31 | $current = Controller::curr(); |
||
| 32 | $controller->setRequest($current->getRequest()); |
||
| 33 | |||
| 34 | if ($current && $current->getAction() == 'finished') { |
||
| 35 | return $controller->renderWith(UserDefinedFormController::class .'_ReceivedFormSubmission'); |
||
| 36 | } |
||
| 37 | |||
| 38 | $form = $controller->Form(); |
||
| 39 | $form->setFormAction( |
||
| 40 | Controller::join_links( |
||
| 41 | $current->Link(), |
||
| 42 | 'element', |
||
| 43 | $this->owner->ID, |
||
| 44 | 'Form' |
||
| 45 | ) |
||
| 46 | ); |
||
| 47 | |||
| 48 | return $form; |
||
| 49 | } |
||
| 70 |
This check marks private properties in classes that are never used. Those properties can be removed.