@@ -86,10 +86,10 @@ discard block |
||
| 86 | 86 | // $blade = FrameworkComposer::getByName('Blade'); |
| 87 | 87 | |
| 88 | 88 | if ($vue !== null) { |
| 89 | - $cardFieldNames = array_map(function (Field $f) { |
|
| 89 | + $cardFieldNames = array_map(function(Field $f) { |
|
| 90 | 90 | return $f->getName(); |
| 91 | 91 | }, $this->cardFields); |
| 92 | - $tableFieldNames = array_map(function (Field $f) { |
|
| 92 | + $tableFieldNames = array_map(function(Field $f) { |
|
| 93 | 93 | return $f->getName(); |
| 94 | 94 | }, $this->tableFields); |
| 95 | 95 | |
@@ -121,12 +121,12 @@ discard block |
||
| 121 | 121 | protected function buildTemplateParameters(): void |
| 122 | 122 | { |
| 123 | 123 | $this->cardFields = $this->model->filterField( |
| 124 | - function (Field $field) { |
|
| 124 | + function(Field $field) { |
|
| 125 | 125 | return $field->getRenderable('card', false); |
| 126 | 126 | } |
| 127 | 127 | ); |
| 128 | 128 | $this->tableFields = $this->model->filterField( |
| 129 | - function (Field $field) { |
|
| 129 | + function(Field $field) { |
|
| 130 | 130 | return $field->getRenderable('table', false); |
| 131 | 131 | } |
| 132 | 132 | ); |
@@ -153,7 +153,7 @@ discard block |
||
| 153 | 153 | 'Table', |
| 154 | 154 | [ |
| 155 | 155 | Table::ROW_NAMES => array_map( |
| 156 | - function (Field $field) { |
|
| 156 | + function(Field $field) { |
|
| 157 | 157 | return $field->getRenderable(Renderable::LABEL, $field->getName()); |
| 158 | 158 | }, |
| 159 | 159 | $this->tableFields |
@@ -170,7 +170,7 @@ discard block |
||
| 170 | 170 | true |
| 171 | 171 | ); |
| 172 | 172 | $titleFields = $this->model->filterField( |
| 173 | - function (Field $field) { |
|
| 173 | + function(Field $field) { |
|
| 174 | 174 | return $field->getRenderable('title', false); |
| 175 | 175 | } |
| 176 | 176 | ); |
@@ -185,7 +185,7 @@ discard block |
||
| 185 | 185 | ), |
| 186 | 186 | 'buttonCreate' => $buttonCreate, |
| 187 | 187 | 'tablelist' => $table->getRenderHTML(), |
| 188 | - 'tableItemFields' => array_keys(array_map(function (Field $f) { |
|
| 188 | + 'tableItemFields' => array_keys(array_map(function(Field $f) { |
|
| 189 | 189 | return $f->getName(); |
| 190 | 190 | }, $this->tableFields)), |
| 191 | 191 | 'titleField' => array_key_first($titleFields) ?: 'id' |
@@ -213,7 +213,7 @@ discard block |
||
| 213 | 213 | |
| 214 | 214 | if ($mode == 'editable') { |
| 215 | 215 | $vue->setEditableTemplate( |
| 216 | - function (FrameworkVue $vue, array $data, Model $m) use ($stub) { |
|
| 216 | + function(FrameworkVue $vue, array $data, Model $m) use ($stub) { |
|
| 217 | 217 | return $this->templateCallback($stub, $vue, $data, $m); |
| 218 | 218 | } |
| 219 | 219 | ); |
@@ -227,7 +227,7 @@ discard block |
||
| 227 | 227 | ); |
| 228 | 228 | } else { |
| 229 | 229 | $vue->setViewableTemplate( |
| 230 | - function (FrameworkVue $vue, array $data, Model $m) use ($stub) { |
|
| 230 | + function(FrameworkVue $vue, array $data, Model $m) use ($stub) { |
|
| 231 | 231 | return $this->templateCallback($stub, $vue, $data, $m); |
| 232 | 232 | } |
| 233 | 233 | ); |
@@ -254,7 +254,7 @@ discard block |
||
| 254 | 254 | * card |
| 255 | 255 | */ |
| 256 | 256 | $cardFieldNames = array_map( |
| 257 | - function (Field $field) { |
|
| 257 | + function(Field $field) { |
|
| 258 | 258 | return $field->getName(); |
| 259 | 259 | }, |
| 260 | 260 | $this->cardFields |
@@ -290,7 +290,7 @@ discard block |
||
| 290 | 290 | * table |
| 291 | 291 | */ |
| 292 | 292 | $tableFieldNames = array_map( |
| 293 | - function (Field $field) { |
|
| 293 | + function(Field $field) { |
|
| 294 | 294 | return $field->getName(); |
| 295 | 295 | }, |
| 296 | 296 | $this->tableFields |
@@ -373,14 +373,14 @@ discard block |
||
| 373 | 373 | ]; |
| 374 | 374 | |
| 375 | 375 | $import = array_map( |
| 376 | - function ($i) use ($name) { |
|
| 376 | + function($i) use ($name) { |
|
| 377 | 377 | return "import {$name}$i from './{$name}$i.vue';"; |
| 378 | 378 | }, |
| 379 | 379 | $items |
| 380 | 380 | ); |
| 381 | 381 | |
| 382 | 382 | $export = array_map( |
| 383 | - function ($i) use ($name) { |
|
| 383 | + function($i) use ($name) { |
|
| 384 | 384 | return " {$name}$i,\n"; |
| 385 | 385 | }, |
| 386 | 386 | $items |