@@ -27,7 +27,7 @@ |
||
| 27 | 27 | { |
| 28 | 28 | // add extra classes |
| 29 | 29 | $previous->walk( |
| 30 | - function ($e) use ($field) { |
|
| 30 | + function($e) use ($field) { |
|
| 31 | 31 | if ($e instanceof HTMLNode) { |
| 32 | 32 | if ($e->getTag() === 'input') { |
| 33 | 33 | // TODO: form-group |
@@ -8,4 +8,4 @@ |
||
| 8 | 8 | |
| 9 | 9 | class Renderable_constant extends \Formularium\Renderable |
| 10 | 10 | { |
| 11 | - use RenderableBootstrapvueInputTrait;} |
|
| 11 | + use RenderableBootstrapvueInputTrait; } |
|
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | 'Table', |
| 38 | 38 | [ |
| 39 | 39 | Table::ROW_NAMES => ['First', 'Second', 'Third'], |
| 40 | - Table::ROW_DATA => [ ['a', 'b', 'c'], [ 'd', 'e', 'f'] ], |
|
| 40 | + Table::ROW_DATA => [['a', 'b', 'c'], ['d', 'e', 'f']], |
|
| 41 | 41 | Table::STRIPED => true |
| 42 | 42 | ] |
| 43 | 43 | ); |
@@ -60,9 +60,9 @@ discard block |
||
| 60 | 60 | |
| 61 | 61 | return '<h3 class="kitchen">Upload</h3>' . $upload . "\n" . |
| 62 | 62 | '<h3 class="kitchen">Button</h3>' . $submitButton . "\n" . |
| 63 | - '<h3 class="kitchen">Table</h3>' . $table . "\n" . |
|
| 64 | - '<h3 class="kitchen">Pagination</h3>' . $pagination . "\n" . |
|
| 65 | - '<h3 class="kitchen">Card</h3><div style="width: 180px">' . $card . "</div>\n"; |
|
| 63 | + '<h3 class="kitchen">Table</h3>' . $table . "\n" . |
|
| 64 | + '<h3 class="kitchen">Pagination</h3>' . $pagination . "\n" . |
|
| 65 | + '<h3 class="kitchen">Card</h3><div style="width: 180px">' . $card . "</div>\n"; |
|
| 66 | 66 | } |
| 67 | 67 | |
| 68 | 68 | function kitchenSink($frameworkName, string $templateName) |
@@ -99,8 +99,8 @@ discard block |
||
| 99 | 99 | 'myString' => [ |
| 100 | 100 | 'datatype' => 'string', |
| 101 | 101 | 'validators' => [ |
| 102 | - MinLength::class => [ 'value' => 3], |
|
| 103 | - MaxLength::class => [ 'value' => 30], |
|
| 102 | + MinLength::class => ['value' => 3], |
|
| 103 | + MaxLength::class => ['value' => 30], |
|
| 104 | 104 | ], |
| 105 | 105 | 'renderable' => [ |
| 106 | 106 | Renderable::LABEL => 'Type string', |
@@ -114,8 +114,8 @@ discard block |
||
| 114 | 114 | 'myInteger' => [ |
| 115 | 115 | 'datatype' => 'integer', |
| 116 | 116 | 'validators' => [ |
| 117 | - Min::class => [ 'value' => 4], |
|
| 118 | - Max::class => [ 'value' => 40], |
|
| 117 | + Min::class => ['value' => 4], |
|
| 118 | + Max::class => ['value' => 40], |
|
| 119 | 119 | ], |
| 120 | 120 | 'renderable' => [ |
| 121 | 121 | Renderable_number::STEP => 2, |
@@ -14,7 +14,7 @@ discard block |
||
| 14 | 14 | public function render(array $parameters, HTMLNode $previous): HTMLNode |
| 15 | 15 | { |
| 16 | 16 | $id = 'upload' . HTMLFramework::counter(); |
| 17 | - $vmodel = 'file'; // TODO: test |
|
| 17 | + $vmodel = 'file'; // TODO: test |
|
| 18 | 18 | return HTMLNode::factory( |
| 19 | 19 | 'b-field', |
| 20 | 20 | [ |
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | [ |
| 24 | 24 | HTMLNode::factory( |
| 25 | 25 | 'b-upload', |
| 26 | - [ 'v-model' => $vmodel ], |
|
| 26 | + ['v-model' => $vmodel], |
|
| 27 | 27 | [ |
| 28 | 28 | HTMLNode::factory( |
| 29 | 29 | 'a', |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | [ |
| 35 | 35 | HTMLNode::factory( |
| 36 | 36 | 'b-icon', |
| 37 | - [ 'icon' => 'upload'] |
|
| 37 | + ['icon' => 'upload'] |
|
| 38 | 38 | ), |
| 39 | 39 | HTMLNode::factory( |
| 40 | 40 | 'span', |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | { |
| 28 | 28 | // add extra classes |
| 29 | 29 | $previous->walk( |
| 30 | - function ($e) { |
|
| 30 | + function($e) { |
|
| 31 | 31 | if ($e instanceof HTMLNode) { |
| 32 | 32 | if ($e->getTag() === 'input') { |
| 33 | 33 | $e->setTag('b-form-datepicker'); |
@@ -27,7 +27,7 @@ |
||
| 27 | 27 | { |
| 28 | 28 | // add extra classes |
| 29 | 29 | $previous->walk( |
| 30 | - function ($e) { |
|
| 30 | + function($e) { |
|
| 31 | 31 | if ($e instanceof HTMLNode) { |
| 32 | 32 | if ($e->getTag() === 'input') { |
| 33 | 33 | $e->setTag('b-form-timepicker'); |