| Conditions | 3 |
| Paths | 2 |
| Total Lines | 19 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 38 | public function ElementForm() |
||
| 39 | { |
||
| 40 | $controller = new UserDefinedFormController($this); |
||
| 41 | $current = Controller::curr(); |
||
| 42 | |||
| 43 | if ($current && $current->getAction() == 'finished') { |
||
| 44 | return $controller->renderWith('ReceivedFormSubmission'); |
||
| 45 | } |
||
| 46 | |||
| 47 | $form = $controller->Form(); |
||
| 48 | $form->setFormAction( |
||
| 49 | Controller::join_links( |
||
| 50 | $current->Link(), |
||
| 51 | 'element', |
||
| 52 | $this->owner->ID |
||
| 53 | ) |
||
| 54 | ); |
||
| 55 | |||
| 56 | return $form; |
||
| 57 | } |
||
| 59 |
This check marks private properties in classes that are never used. Those properties can be removed.