Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
61 | private function getFormObject() |
||
62 | { |
||
63 | if (!isset($this->form->vars['data'])) { |
||
64 | throw new \RuntimeException(sprintf( |
||
65 | 'Expected "data" to be set on the form view. Actual view variables: "%s"', |
||
66 | implode('", "', array_keys($this->form->vars)) |
||
67 | )); |
||
68 | } |
||
69 | |||
70 | return $this->form->vars['data']; |
||
71 | } |
||
72 | } |
||
73 |