Passed
Push — master ( c488c7...dd5e77 )
by Bruno
09:52
created
Modelarium/Frontend/FrontendGenerator.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
         // $blade = FrameworkComposer::getByName('Blade');
79 79
 
80 80
         if ($vue !== null) {
81
-            $cardFieldNames = array_map(function (Field $f) {
81
+            $cardFieldNames = array_map(function(Field $f) {
82 82
                 return $f->getName();
83 83
             }, $this->cardFields);
84 84
 
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
     protected function buildTemplateParameters(): void
104 104
     {
105 105
         $this->cardFields = $this->model->filterField(
106
-            function (Field $field) {
106
+            function(Field $field) {
107 107
                 return $field->getRenderable('card', false);
108 108
             }
109 109
         );
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
             'Table',
113 113
             [
114 114
                 Table::ROW_NAMES => array_map(
115
-                    function (Field $field) {
115
+                    function(Field $field) {
116 116
                         return $field->getRenderable(Renderable::LABEL, $field->getName());
117 117
                     },
118 118
                     $this->cardFields
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
             true
130 130
         );
131 131
         $titleFields = $this->model->filterField(
132
-            function (Field $field) {
132
+            function(Field $field) {
133 133
                 var_dump($field->getRenderables());
134 134
                 return $field->getRenderable('title', false);
135 135
             }
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
 
170 170
         if ($mode == 'editable') {
171 171
             $vue->setEditableTemplate(
172
-                function (FrameworkVue $vue, array $data, Model $m) use ($stub) {
172
+                function(FrameworkVue $vue, array $data, Model $m) use ($stub) {
173 173
                     return $this->templateCallback($stub, $vue, $data, $m);
174 174
                 }
175 175
             );
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
             );
184 184
         } else {
185 185
             $vue->setViewableTemplate(
186
-                function (FrameworkVue $vue, array $data, Model $m) use ($stub) {
186
+                function(FrameworkVue $vue, array $data, Model $m) use ($stub) {
187 187
                     return $this->templateCallback($stub, $vue, $data, $m);
188 188
                 }
189 189
             );
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
     protected function makeGraphql(): void
208 208
     {
209 209
         $cardFieldNames = array_map(
210
-            function (Field $field) {
210
+            function(Field $field) {
211 211
                 return $field->getName();
212 212
             },
213 213
             $this->cardFields
@@ -288,14 +288,14 @@  discard block
 block discarded – undo
288 288
         ];
289 289
 
290 290
         $import = array_map(
291
-            function ($i) use ($name) {
291
+            function($i) use ($name) {
292 292
                 return "import {$name}$i from './{$name}$i.vue';";
293 293
             },
294 294
             $items
295 295
         );
296 296
 
297 297
         $export = array_map(
298
-            function ($i) use ($name) {
298
+            function($i) use ($name) {
299 299
                 return "    {$name}$i,\n";
300 300
             },
301 301
             $items
Please login to merge, or discard this patch.