Passed
Pull Request — master (#26)
by Pierre
23:12
created
src/DIC/Bootstrap.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 
31 31
         $dic->set(
32 32
             Application::class,
33
-            function (DIC $dic): Application {
33
+            function(DIC $dic): Application {
34 34
                 $application = new Application('Kawaii Gherkin', '1.0.3');
35 35
                 $application->add($dic->get(CheckCommand::class));
36 36
                 $application->add($dic->get(FixCommand::class));
@@ -41,28 +41,28 @@  discard block
 block discarded – undo
41 41
 
42 42
         $dic->set(
43 43
             FixCommand::class,
44
-            function (DIC $dic): FixCommand {
44
+            function(DIC $dic): FixCommand {
45 45
                 return new FixCommand($dic);
46 46
             }
47 47
         );
48 48
 
49 49
         $dic->set(
50 50
             CheckCommand::class,
51
-            function (DIC $dic): CheckCommand {
51
+            function(DIC $dic): CheckCommand {
52 52
                 return new CheckCommand($dic);
53 53
             }
54 54
         );
55 55
 
56 56
         $dic->set(
57 57
             'autoload.directory',
58
-            function (DIC $dic): string {
58
+            function(DIC $dic): string {
59 59
                 return \dirname($dic->get('autoload.file'));
60 60
             }
61 61
         );
62 62
 
63 63
         $dic->set(
64 64
             'gherkin.i18n',
65
-            function (DIC $dic): array {
65
+            function(DIC $dic): array {
66 66
                 $i18n = require $dic->get('autoload.directory').'/behat/gherkin/i18n.php';
67 67
 
68 68
                 return $i18n;
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 
72 72
         $dic->set(
73 73
             ArrayKeywords::class,
74
-            function (DIC $dic): ArrayKeywords {
74
+            function(DIC $dic): ArrayKeywords {
75 75
                 return new ArrayKeywords(
76 76
                     $dic->get('gherkin.i18n')
77 77
                 );
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
 
81 81
         $dic->set(
82 82
             Lexer::class,
83
-            function (DIC $dic): Lexer {
83
+            function(DIC $dic): Lexer {
84 84
                 return new Lexer(
85 85
                     $dic->get(ArrayKeywords::class)
86 86
                 );
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
 
90 90
         $dic->set(
91 91
             Parser::class,
92
-            function (DIC $dic): Parser {
92
+            function(DIC $dic): Parser {
93 93
                 return new Parser(
94 94
                     $dic->get(Lexer::class)
95 95
                 );
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
 
99 99
         $dic->set(
100 100
             'input.sources',
101
-            function (DIC $dic): array {
101
+            function(DIC $dic): array {
102 102
                 $input = $dic->get(InputInterface::class);
103 103
 
104 104
                 $sources = $input->getArgument('sources');
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
 
111 111
         $dic->set(
112 112
             'input.alignement',
113
-            function (DIC $dic): string {
113
+            function(DIC $dic): string {
114 114
                 $input = $dic->get(InputInterface::class);
115 115
 
116 116
                 return 'left' === $input->getOption('align') ? 'left' : 'right';
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
 
120 120
         $dic->set(
121 121
             'input.indentation',
122
-            function (DIC $dic): int {
122
+            function(DIC $dic): int {
123 123
                 $input = $dic->get(InputInterface::class);
124 124
 
125 125
                 $indent = $input->getOption('indent');
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
 
133 133
         $dic->set(
134 134
             Finder::class,
135
-            function (DIC $dic): Finder {
135
+            function(DIC $dic): Finder {
136 136
                 $sources = $dic->get('input.sources');
137 137
 
138 138
                 return new Finder(...$sources);
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
 
142 142
         $dic->set(
143 143
             Background::class,
144
-            function (DIC $dic): Background {
144
+            function(DIC $dic): Background {
145 145
                 return new Background(
146 146
                     $dic->get(Indentation::class),
147 147
                     $dic->get(Steps::class),
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
 
152 152
         $dic->set(
153 153
             Feature::class,
154
-            function (DIC $dic): Feature {
154
+            function(DIC $dic): Feature {
155 155
                 return new Feature(
156 156
                     $dic->get(Background::class),
157 157
                     $dic->get(Scenarios::class),
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
 
164 164
         $dic->set(
165 165
             Examples::class,
166
-            function (DIC $dic): Examples {
166
+            function(DIC $dic): Examples {
167 167
                 return new Examples(
168 168
                     $dic->get(Indentation::class)
169 169
                 );
@@ -172,7 +172,7 @@  discard block
 block discarded – undo
172 172
 
173 173
         $dic->set(
174 174
             FeatureDescription::class,
175
-            function (DIC $dic): FeatureDescription {
175
+            function(DIC $dic): FeatureDescription {
176 176
                 return new FeatureDescription(
177 177
                     $dic->get(Indentation::class)
178 178
                 );
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
 
182 182
         $dic->set(
183 183
             Indentation::class,
184
-            function (DIC $dic): Indentation {
184
+            function(DIC $dic): Indentation {
185 185
                 return new Indentation(
186 186
                     $dic->get('input.indentation')
187 187
                 );
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
 
191 191
         $dic->set(
192 192
             Scenarios::class,
193
-            function (DIC $dic): Scenarios {
193
+            function(DIC $dic): Scenarios {
194 194
                 return new Scenarios(
195 195
                     $dic->get(Indentation::class),
196 196
                     $dic->get(Tags::class),
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
 
203 203
         $dic->set(
204 204
             Steps::class,
205
-            function (DIC $dic): Steps {
205
+            function(DIC $dic): Steps {
206 206
                 return new Steps(
207 207
                     $dic->get(Indentation::class),
208 208
                     $dic->get('input.alignement'),
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
 
213 213
         $dic->set(
214 214
             Tags::class,
215
-            function (DIC $dic): Tags {
215
+            function(DIC $dic): Tags {
216 216
                 return new Tags();
217 217
             }
218 218
         );
Please login to merge, or discard this patch.
src/Command/CheckCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 
27 27
     protected function execute(InputInterface $input, OutputInterface $output)
28 28
     {
29
-        $this->dic->set(InputInterface::class, fn (): InputInterface => $input);
29
+        $this->dic->set(InputInterface::class, fn(): InputInterface => $input);
30 30
 
31 31
         $parser    = $this->dic->get(Parser::class);
32 32
         $finder    = $this->dic->get(Finder::class);
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
                 '',
66 66
                 array_filter(
67 67
                     array_map(
68
-                        function ($line) {
68
+                        function($line) {
69 69
                             if (0 === mb_strpos(ltrim($line), '#')) {
70 70
                                 return '';
71 71
                             }
Please login to merge, or discard this patch.
src/Command/FixCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
 
25 25
     protected function execute(InputInterface $input, OutputInterface $output)
26 26
     {
27
-        $this->dic->set(InputInterface::class, fn (): InputInterface => $input);
27
+        $this->dic->set(InputInterface::class, fn(): InputInterface => $input);
28 28
 
29 29
         $parser    = $this->dic->get(Parser::class);
30 30
         $finder    = $this->dic->get(Finder::class);
Please login to merge, or discard this patch.