@@ -27,16 +27,16 @@ |
||
| 27 | 27 | */ |
| 28 | 28 | public function prepareVars() |
| 29 | 29 | { |
| 30 | - $this->vars['name'] = $this->formField->getName(); |
|
| 31 | - $this->vars['value'] = $this->getLoadValue(); |
|
| 32 | - $this->vars['model'] = $this->model; |
|
| 30 | + $this->vars[ 'name' ] = $this->formField->getName(); |
|
| 31 | + $this->vars[ 'value' ] = $this->getLoadValue(); |
|
| 32 | + $this->vars[ 'model' ] = $this->model; |
|
| 33 | 33 | |
| 34 | 34 | if ($this->model->exists) { |
| 35 | - $this->vars['options'] = $this->model->options()->get()->toArray(); |
|
| 36 | - $this->vars['inventories'] = $this->model->inventories()->get()->toArray(); |
|
| 35 | + $this->vars[ 'options' ] = $this->model->options()->get()->toArray(); |
|
| 36 | + $this->vars[ 'inventories' ] = $this->model->inventories()->get()->toArray(); |
|
| 37 | 37 | } else { |
| 38 | - $this->vars['options'] = []; |
|
| 39 | - $this->vars['inventories'] = []; |
|
| 38 | + $this->vars[ 'options' ] = [ ]; |
|
| 39 | + $this->vars[ 'inventories' ] = [ ]; |
|
| 40 | 40 | } |
| 41 | 41 | } |
| 42 | 42 | |