@@ -50,7 +50,7 @@ |
||
| 50 | 50 | if ($parameters[HTMLCard::LINK] ?? false) { |
| 51 | 51 | $titleData = HTMLNode::factory( |
| 52 | 52 | 'a', |
| 53 | - [ 'href' => $parameters[HTMLCard::LINK] ], |
|
| 53 | + ['href' => $parameters[HTMLCard::LINK]], |
|
| 54 | 54 | $parameters[HTMLCard::TITLE] |
| 55 | 55 | ); |
| 56 | 56 | } else { |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | ) |
| 39 | 39 | ); |
| 40 | 40 | } |
| 41 | - $base->filter(function ($e) { |
|
| 41 | + $base->filter(function($e) { |
|
| 42 | 42 | if ($e instanceof HTMLNode) { |
| 43 | 43 | if ($e->getTag() === 'label') { |
| 44 | 44 | return false; |
@@ -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; } |
|
@@ -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'); |
@@ -2,9 +2,9 @@ discard block |
||
| 2 | 2 | |
| 3 | 3 | require('vendor/autoload.php'); |
| 4 | 4 | |
| 5 | -$shortopts = "d:b::n::p::t::"; |
|
| 6 | -$longopts = array( |
|
| 7 | - "datatype:", // Required value |
|
| 5 | +$shortopts = "d:b::n::p::t::"; |
|
| 6 | +$longopts = array( |
|
| 7 | + "datatype:", // Required value |
|
| 8 | 8 | "basetype::", |
| 9 | 9 | "namespace::", |
| 10 | 10 | "path::", |
@@ -19,8 +19,8 @@ discard block |
||
| 19 | 19 | $datatype = $options['datatype']; |
| 20 | 20 | $basetype = $options['basetype'] ?? ''; |
| 21 | 21 | $namespace = $options['namespace'] ?? 'Formularium\Datatype'; |
| 22 | -$path = $options['path'] ?? "Formularium/Datatype/" ; |
|
| 23 | -$testpath = $options['testpath'] ?? "tests/Datatype" ; |
|
| 22 | +$path = $options['path'] ?? "Formularium/Datatype/"; |
|
| 23 | +$testpath = $options['testpath'] ?? "tests/Datatype"; |
|
| 24 | 24 | |
| 25 | 25 | $code = \Formularium\Factory\DatatypeFactory::generate( |
| 26 | 26 | $datatype, |
@@ -135,7 +135,7 @@ |
||
| 135 | 135 | |
| 136 | 136 | $name = $codeData['validator']; |
| 137 | 137 | $retval = []; |
| 138 | - $filename = $path . "/{$name}.php"; |
|
| 138 | + $filename = $path . "/{$name}.php"; |
|
| 139 | 139 | if (!file_exists($filename)) { |
| 140 | 140 | $retval['code'] = "Created validator {$name}."; |
| 141 | 141 | file_put_contents($filename, $codeData['code']); |