@@ -123,7 +123,7 @@ |
||
| 123 | 123 | continue; |
| 124 | 124 | } |
| 125 | 125 | |
| 126 | - $objForm = [ 'id' => $obj->id() ]; |
|
| 126 | + $objForm = ['id' => $obj->id()]; |
|
| 127 | 127 | |
| 128 | 128 | $form = $this->widgetFactory()->create(ObjectFormWidget::class); |
| 129 | 129 | $form->set_objType($objType); |
@@ -150,7 +150,7 @@ |
||
| 150 | 150 | $prop = $formGroup->storageProperty(); |
| 151 | 151 | $val = $formGroup->obj()->propertyValue($prop->ident()); |
| 152 | 152 | |
| 153 | - $this->obj = $prop->structureVal($val, [ 'default_data' => true ]); |
|
| 153 | + $this->obj = $prop->structureVal($val, ['default_data' => true]); |
|
| 154 | 154 | if ($this->obj === null) { |
| 155 | 155 | $this->obj = clone $prop->structureProto(); |
| 156 | 156 | } |
@@ -284,7 +284,7 @@ discard block |
||
| 284 | 284 | if ($obj instanceof ViewableInterface && $obj->view()) { |
| 285 | 285 | $data = $obj->view()->render($data, $obj->viewController()); |
| 286 | 286 | } else { |
| 287 | - $data = preg_replace_callback('~\{\{\s*(.*?)\s*\}\}~i', [ $this, 'parseDataToken' ], $data); |
|
| 287 | + $data = preg_replace_callback('~\{\{\s*(.*?)\s*\}\}~i', [$this, 'parseDataToken'], $data); |
|
| 288 | 288 | } |
| 289 | 289 | |
| 290 | 290 | return $data; |
@@ -306,7 +306,7 @@ discard block |
||
| 306 | 306 | } |
| 307 | 307 | |
| 308 | 308 | $token = trim($token); |
| 309 | - $method = [ $this, $token ]; |
|
| 309 | + $method = [$this, $token]; |
|
| 310 | 310 | |
| 311 | 311 | if (is_callable($method)) { |
| 312 | 312 | $value = call_user_func($method); |
@@ -162,7 +162,7 @@ |
||
| 162 | 162 | $this->addFeedback('success', strtr($this->translator()->translate('Updated Object: {{ objId }}'), [ |
| 163 | 163 | '{{ objId }}' => $obj->id() |
| 164 | 164 | ])); |
| 165 | - $this->addFeedbackFromValidation($obj, [ ModelValidator::NOTICE, ModelValidator::WARNING ]); |
|
| 165 | + $this->addFeedbackFromValidation($obj, [ModelValidator::NOTICE, ModelValidator::WARNING]); |
|
| 166 | 166 | $this->setSuccess(true); |
| 167 | 167 | |
| 168 | 168 | return $response; |
@@ -157,7 +157,7 @@ |
||
| 157 | 157 | $this->addFeedback('success', strtr($this->translator()->translate('Created Object: {{ objId }}'), [ |
| 158 | 158 | '{{ objId }}' => $obj->id() |
| 159 | 159 | ])); |
| 160 | - $this->addFeedbackFromValidation($obj, [ ModelValidator::NOTICE, ModelValidator::WARNING ]); |
|
| 160 | + $this->addFeedbackFromValidation($obj, [ModelValidator::NOTICE, ModelValidator::WARNING]); |
|
| 161 | 161 | $this->setSuccess(true); |
| 162 | 162 | |
| 163 | 163 | return $response; |
@@ -37,8 +37,8 @@ |
||
| 37 | 37 | |
| 38 | 38 | $collection = new HierarchicalCollection($loader->load(), false); |
| 39 | 39 | $collection->setPage($loader->page()) |
| 40 | - ->setNumPerPage($loader->numPerPage()) |
|
| 41 | - ->sortTree(); |
|
| 40 | + ->setNumPerPage($loader->numPerPage()) |
|
| 41 | + ->sortTree(); |
|
| 42 | 42 | |
| 43 | 43 | return $this->parseChoices($collection); |
| 44 | 44 | } |
@@ -64,11 +64,11 @@ |
||
| 64 | 64 | $choice['group'] = null; |
| 65 | 65 | } |
| 66 | 66 | |
| 67 | - if (is_callable([ $obj, 'name' ])) { |
|
| 67 | + if (is_callable([$obj, 'name'])) { |
|
| 68 | 68 | $choice['title'] = $obj->name(); |
| 69 | - } elseif (is_callable([ $obj, 'label' ])) { |
|
| 69 | + } elseif (is_callable([$obj, 'label'])) { |
|
| 70 | 70 | $choice['title'] = $obj->label(); |
| 71 | - } elseif (is_callable([ $obj, 'title' ])) { |
|
| 71 | + } elseif (is_callable([$obj, 'title'])) { |
|
| 72 | 72 | $choice['title'] = $obj->title(); |
| 73 | 73 | } |
| 74 | 74 | |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | return [ |
| 54 | 54 | 'layout' => [ |
| 55 | 55 | 'structure' => [ |
| 56 | - [ 'columns' => [ 0 ] ] |
|
| 56 | + ['columns' => [0]] |
|
| 57 | 57 | ] |
| 58 | 58 | ], |
| 59 | 59 | 'widgets' => [ |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | return [ |
| 54 | 54 | 'layout' => [ |
| 55 | 55 | 'structure' => [ |
| 56 | - [ 'columns' => [ 0 ] ] |
|
| 56 | + ['columns' => [0]] |
|
| 57 | 57 | ] |
| 58 | 58 | ], |
| 59 | 59 | 'widgets' => [ |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | return [ |
| 54 | 54 | 'layout' => [ |
| 55 | 55 | 'structure' => [ |
| 56 | - [ 'columns' => [ 0 ] ] |
|
| 56 | + ['columns' => [0]] |
|
| 57 | 57 | ] |
| 58 | 58 | ], |
| 59 | 59 | 'widgets' => [ |