@@ -23,7 +23,7 @@ |
||
23 | 23 | /** @var HTMLNode $base */ |
24 | 24 | $base = $this->_editable($value, $field, $previous); |
25 | 25 | |
26 | - $base->filter(function ($e) { |
|
26 | + $base->filter(function($e) { |
|
27 | 27 | if ($e instanceof HTMLNode) { |
28 | 28 | if ($e->getTag() === 'label') { |
29 | 29 | return false; |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | $frameworkNames = join( |
30 | 30 | '/', |
31 | 31 | array_map( |
32 | - function (Framework $f) { |
|
32 | + function(Framework $f) { |
|
33 | 33 | return $f->getName(); |
34 | 34 | }, |
35 | 35 | $frameworkComposer->getFrameworks() |
@@ -61,8 +61,8 @@ discard block |
||
61 | 61 | 'myString' => [ |
62 | 62 | 'datatype' => 'string', |
63 | 63 | 'validators' => [ |
64 | - MinLength::class => [ 'value' => 3], |
|
65 | - MaxLength::class => [ 'value' => 30], |
|
64 | + MinLength::class => ['value' => 3], |
|
65 | + MaxLength::class => ['value' => 30], |
|
66 | 66 | ], |
67 | 67 | 'renderable' => [ |
68 | 68 | Renderable::LABEL => 'Type string', |
@@ -76,8 +76,8 @@ discard block |
||
76 | 76 | 'myInteger' => [ |
77 | 77 | 'datatype' => 'integer', |
78 | 78 | 'validators' => [ |
79 | - Min::class => [ 'value' => 4], |
|
80 | - Max::class => [ 'value' => 40], |
|
79 | + Min::class => ['value' => 4], |
|
80 | + Max::class => ['value' => 40], |
|
81 | 81 | ], |
82 | 82 | 'renderable' => [ |
83 | 83 | Renderable_number::STEP => 2, |
@@ -124,7 +124,7 @@ discard block |
||
124 | 124 | 'Table', |
125 | 125 | [ |
126 | 126 | Table::ROW_NAMES => ['First', 'Second', 'Third'], |
127 | - Table::ROW_DATA => [ ['a', 'b', 'c'], [ 'd', 'e', 'f'] ], |
|
127 | + Table::ROW_DATA => [['a', 'b', 'c'], ['d', 'e', 'f']], |
|
128 | 128 | Table::STRIPED => true |
129 | 129 | ] |
130 | 130 | ); |
@@ -152,10 +152,10 @@ discard block |
||
152 | 152 | |
153 | 153 | $contents = '<h3 class="kitchen">Upload</h3>' . $upload . "\n" . |
154 | 154 | '<h3 class="kitchen">Button</h3>' . $submitButton . "\n" . |
155 | - '<h3 class="kitchen">Table</h3>' . $table . "\n" . |
|
156 | - '<h3 class="kitchen">Pagination</h3>' . $pagination . "\n" . |
|
157 | - '<h3 class="kitchen">Card</h3><div style="width: 180px">' . $card . "</div>\n" . |
|
158 | - '<h3 class="kitchen">Spinner</h3><div>'. $spinner . "</div>\n"; |
|
155 | + '<h3 class="kitchen">Table</h3>' . $table . "\n" . |
|
156 | + '<h3 class="kitchen">Pagination</h3>' . $pagination . "\n" . |
|
157 | + '<h3 class="kitchen">Card</h3><div style="width: 180px">' . $card . "</div>\n" . |
|
158 | + '<h3 class="kitchen">Spinner</h3><div>' . $spinner . "</div>\n"; |
|
159 | 159 | |
160 | 160 | return templatify($frameworkComposer, $templateName, $contents, 'Elements'); |
161 | 161 | } |