@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | 'Table', |
| 33 | 33 | [ |
| 34 | 34 | Table::ROW_NAMES => ['First', 'Second', 'Third'], |
| 35 | - Table::ROW_DATA => [ ['a', 'b', 'c'], [ 'd', 'e', 'f'] ], |
|
| 35 | + Table::ROW_DATA => [['a', 'b', 'c'], ['d', 'e', 'f']], |
|
| 36 | 36 | Table::STRIPED => true |
| 37 | 37 | ] |
| 38 | 38 | ); |
@@ -54,9 +54,9 @@ discard block |
||
| 54 | 54 | ); |
| 55 | 55 | |
| 56 | 56 | return '<h3 class="kitchen">Button</h3>' . $submitButton . "\n" . |
| 57 | - '<h3 class="kitchen">Table</h3>' . $table . "\n" . |
|
| 58 | - '<h3 class="kitchen">Pagination</h3>' . $pagination . "\n" . |
|
| 59 | - '<h3 class="kitchen">Card</h3><div style="width: 180px">' . $card . "</div>\n"; |
|
| 57 | + '<h3 class="kitchen">Table</h3>' . $table . "\n" . |
|
| 58 | + '<h3 class="kitchen">Pagination</h3>' . $pagination . "\n" . |
|
| 59 | + '<h3 class="kitchen">Card</h3><div style="width: 180px">' . $card . "</div>\n"; |
|
| 60 | 60 | } |
| 61 | 61 | |
| 62 | 62 | function kitchenSink($frameworkName, string $templateName) |
@@ -93,8 +93,8 @@ discard block |
||
| 93 | 93 | 'myString' => [ |
| 94 | 94 | 'datatype' => 'string', |
| 95 | 95 | 'validators' => [ |
| 96 | - MinLength::class => [ 'value' => 3], |
|
| 97 | - MaxLength::class => [ 'value' => 30], |
|
| 96 | + MinLength::class => ['value' => 3], |
|
| 97 | + MaxLength::class => ['value' => 30], |
|
| 98 | 98 | ], |
| 99 | 99 | 'renderable' => [ |
| 100 | 100 | Renderable::LABEL => 'Type string', |
@@ -108,8 +108,8 @@ discard block |
||
| 108 | 108 | 'myInteger' => [ |
| 109 | 109 | 'datatype' => 'integer', |
| 110 | 110 | 'validators' => [ |
| 111 | - Min::class => [ 'value' => 4], |
|
| 112 | - Max::class => [ 'value' => 40], |
|
| 111 | + Min::class => ['value' => 4], |
|
| 112 | + Max::class => ['value' => 40], |
|
| 113 | 113 | ], |
| 114 | 114 | 'renderable' => [ |
| 115 | 115 | Renderable_number::STEP => 2, |