Passed
Push — master ( 951dea...0f2edd )
by Bruno
10:24
created
Formularium/Frontend/Buefy/RenderableBuefyTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
         if (array_key_exists(Renderable::COMMENT, $renderable)) {
33 33
             $base->setAttribute('message', $renderable[Renderable::COMMENT]);
34 34
         }
35
-        $base->filter(function ($e) {
35
+        $base->filter(function($e) {
36 36
             if ($e instanceof HTMLNode) {
37 37
                 if ($e->getTag() === 'label') {
38 38
                     return false;
Please login to merge, or discard this patch.
Formularium/Frontend/Bootstrap/RenderableBootstrapInputTrait.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -64,17 +64,17 @@
 block discarded – undo
64 64
             $iconData[] = $icon;
65 65
             $group = HTMLNode::factory(
66 66
                 'div',
67
-                [ 'class' => "input-group mb-3" ],
67
+                ['class' => "input-group mb-3"],
68 68
                 [
69 69
                     HTMLNode::factory(
70 70
                         'div',
71
-                        [ 'class' => "input-group-prepend" ],
71
+                        ['class' => "input-group-prepend"],
72 72
                         HTMLNode::factory(
73 73
                             'span',
74
-                            [ 'class' => "input-group-text" ],
74
+                            ['class' => "input-group-text"],
75 75
                             HTMLNode::factory(
76 76
                                 'i',
77
-                                [ 'class' => $iconData ],
77
+                                ['class' => $iconData],
78 78
                                 []
79 79
                             )
80 80
                         )
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\DatatypeFactory::generate(
26 26
     $datatype,
Please login to merge, or discard this patch.
Formularium/Metadata.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
     public function toMarkdown(): string
40 40
     {
41 41
         $args = array_map(
42
-            function (MetadataParameter $a) {
42
+            function(MetadataParameter $a) {
43 43
                 return $a->toMarkdown();
44 44
             },
45 45
             $this->args
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
     public function toGraphql(): string
64 64
     {
65 65
         $args = array_map(
66
-            function (MetadataParameter $a) {
66
+            function(MetadataParameter $a) {
67 67
                 return $a->toGraphql();
68 68
             },
69 69
             $this->args
Please login to merge, or discard this patch.
util/makeKitchenSink.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -52,8 +52,8 @@  discard block
 block discarded – undo
52 52
         'myString' => [
53 53
             'datatype' => 'string',
54 54
             'validators' => [
55
-                MinLength::class => [ 'value' => 3],
56
-                MaxLength::class => [ 'value' => 30],
55
+                MinLength::class => ['value' => 3],
56
+                MaxLength::class => ['value' => 30],
57 57
             ],
58 58
             'renderable' => [
59 59
                 Renderable::LABEL => 'Type string',
@@ -67,8 +67,8 @@  discard block
 block discarded – undo
67 67
         'myInteger' => [
68 68
             'datatype' => 'integer',
69 69
             'validators' => [
70
-                Min::class => [ 'value' => 4],
71
-                Max::class => [ 'value' => 40],
70
+                Min::class => ['value' => 4],
71
+                Max::class => ['value' => 40],
72 72
             ],
73 73
             'renderable' => [
74 74
                 Renderable_number::STEP => 2,
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
         'Table',
106 106
         [
107 107
             Table::ROW_NAMES => ['First', 'Second', 'Third'],
108
-            Table::ROW_DATA => [ ['a', 'b', 'c'], [ 'd', 'e', 'f'] ],
108
+            Table::ROW_DATA => [['a', 'b', 'c'], ['d', 'e', 'f']],
109 109
             Table::STRIPED => true
110 110
         ]
111 111
     );
Please login to merge, or discard this patch.
Formularium/Frontend/HTML/Element/Table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
                         'class' => 'formularium-table__td'
47 47
                     ],
48 48
                     array_map(
49
-                        function ($i) {
49
+                        function($i) {
50 50
                             return HTMLNode::factory('td', [], $i);
51 51
                         },
52 52
                         $data
Please login to merge, or discard this patch.