Passed
Push — master ( 3052b7...24130a )
by Bruno
07:16
created
Formularium/Frontend/Bootstrapvue/Renderable/Renderable_date.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
Formularium/Frontend/Bootstrapvue/Renderable/Renderable_time.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
util/makeDatatype.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -2,9 +2,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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,
Please login to merge, or discard this patch.
Formularium/Factory/DatatypeFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -187,7 +187,7 @@
 block discarded – undo
187 187
     
188 188
         $datatype = $codeData['datatype'];
189 189
         $retval = [];
190
-        $filename =  $path . "/Datatype_{$codeData['datatypeLower']}.php";
190
+        $filename = $path . "/Datatype_{$codeData['datatypeLower']}.php";
191 191
         if (!file_exists($filename)) {
192 192
             $retval['code'] = "Created {$datatype} at {$filename}.";
193 193
             file_put_contents($filename, $codeData['code']);
Please login to merge, or discard this patch.
Formularium/Factory/ValidatorFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@
 block discarded – undo
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']);
Please login to merge, or discard this patch.
Formularium/Frontend/Vue/Element/Pagination.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
             /**
78 78
              * @var Framework $framework
79 79
              */
80
-            $f =$framework->getName();
80
+            $f = $framework->getName();
81 81
             if ($f === 'HTML' || $f === 'Vue') {
82 82
                 continue;
83 83
             }
Please login to merge, or discard this patch.
util/makeKitchenSink.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
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
     );
@@ -65,10 +65,10 @@  discard block
 block discarded – undo
65 65
 
66 66
     return '<h3 class="kitchen">Upload</h3>' . $upload . "\n" .
67 67
         '<h3 class="kitchen">Button</h3>' . $submitButton . "\n" .
68
-        '<h3 class="kitchen">Table</h3>' .  $table . "\n" .
69
-        '<h3 class="kitchen">Pagination</h3>' .  $pagination . "\n" .
70
-        '<h3 class="kitchen">Card</h3><div style="width: 180px">' .  $card . "</div>\n" .
71
-        '<h3 class="kitchen">Spinner</h3><div>'. $spinner . "</div>\n";
68
+        '<h3 class="kitchen">Table</h3>' . $table . "\n" .
69
+        '<h3 class="kitchen">Pagination</h3>' . $pagination . "\n" .
70
+        '<h3 class="kitchen">Card</h3><div style="width: 180px">' . $card . "</div>\n" .
71
+        '<h3 class="kitchen">Spinner</h3><div>' . $spinner . "</div>\n";
72 72
 }
73 73
 
74 74
 function kitchenSink($frameworkName, string $templateName)
@@ -105,8 +105,8 @@  discard block
 block discarded – undo
105 105
         'myString' => [
106 106
             'datatype' => 'string',
107 107
             'validators' => [
108
-                MinLength::class => [ 'value' => 3],
109
-                MaxLength::class => [ 'value' => 30],
108
+                MinLength::class => ['value' => 3],
109
+                MaxLength::class => ['value' => 30],
110 110
             ],
111 111
             'renderable' => [
112 112
                 Renderable::LABEL => 'Type string',
@@ -120,8 +120,8 @@  discard block
 block discarded – undo
120 120
         'myInteger' => [
121 121
             'datatype' => 'integer',
122 122
             'validators' => [
123
-                Min::class => [ 'value' => 4],
124
-                Max::class => [ 'value' => 40],
123
+                Min::class => ['value' => 4],
124
+                Max::class => ['value' => 40],
125 125
             ],
126 126
             'renderable' => [
127 127
                 Renderable_number::STEP => 2,
Please login to merge, or discard this patch.
Formularium/Frontend/Buefy/Element/Spinner.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
             ],
21 21
             HTMLNode::factory(
22 22
                 'span',
23
-                [ 'class' => "sr-only" ],
23
+                ['class' => "sr-only"],
24 24
                 'Loading...'
25 25
             )
26 26
         );
Please login to merge, or discard this patch.
Formularium/Frontend/Bootstrap/Element/Spinner.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
             ],
21 21
             HTMLNode::factory(
22 22
                 'span',
23
-                [ 'class' => "sr-only" ],
23
+                ['class' => "sr-only"],
24 24
                 'Loading...'
25 25
             )
26 26
         );
Please login to merge, or discard this patch.