@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | |
27 | 27 | protected function execute(InputInterface $input, OutputInterface $output) |
28 | 28 | { |
29 | - $this->dic->setService(InputInterface::class, static fn (): InputInterface => $input); |
|
29 | + $this->dic->setService(InputInterface::class, static fn(): InputInterface => $input); |
|
30 | 30 | |
31 | 31 | $parser = $this->dic->getService(Parser::class); |
32 | 32 | $finder = $this->dic->getService(Finder::class); |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | '', |
66 | 66 | array_filter( |
67 | 67 | array_map( |
68 | - static function ($line) { |
|
68 | + static function($line) { |
|
69 | 69 | if (0 === mb_strpos(ltrim($line), '#')) { |
70 | 70 | return ''; |
71 | 71 | } |
@@ -24,7 +24,7 @@ |
||
24 | 24 | |
25 | 25 | protected function execute(InputInterface $input, OutputInterface $output) |
26 | 26 | { |
27 | - $this->dic->setService(InputInterface::class, static fn (): InputInterface => $input); |
|
27 | + $this->dic->setService(InputInterface::class, static fn(): InputInterface => $input); |
|
28 | 28 | |
29 | 29 | $parser = $this->dic->getService(Parser::class); |
30 | 30 | $finder = $this->dic->getService(Finder::class); |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | |
31 | 31 | $dic->setService( |
32 | 32 | Application::class, |
33 | - static function (DIC $dic): Application { |
|
33 | + static function(DIC $dic): Application { |
|
34 | 34 | $application = new Application('Kawaii Gherkin', '1.0.3'); |
35 | 35 | $application->add($dic->getService(CheckCommand::class)); |
36 | 36 | $application->add($dic->getService(FixCommand::class)); |
@@ -41,17 +41,17 @@ discard block |
||
41 | 41 | |
42 | 42 | $dic->setService( |
43 | 43 | FixCommand::class, |
44 | - static fn (DIC $dic): FixCommand => new FixCommand($dic) |
|
44 | + static fn(DIC $dic): FixCommand => new FixCommand($dic) |
|
45 | 45 | ); |
46 | 46 | |
47 | 47 | $dic->setService( |
48 | 48 | CheckCommand::class, |
49 | - static fn (DIC $dic): CheckCommand => new CheckCommand($dic) |
|
49 | + static fn(DIC $dic): CheckCommand => new CheckCommand($dic) |
|
50 | 50 | ); |
51 | 51 | |
52 | 52 | $dic->setParameter( |
53 | 53 | 'autoload.directory', |
54 | - static function (DIC $dic): string { |
|
54 | + static function(DIC $dic): string { |
|
55 | 55 | /** |
56 | 56 | * @var string |
57 | 57 | */ |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | |
64 | 64 | $dic->setParameter( |
65 | 65 | 'gherkin.i18n', |
66 | - function (DIC $dic): array { |
|
66 | + function(DIC $dic): array { |
|
67 | 67 | $i18n = require $dic->getParameter('autoload.directory').'/behat/gherkin/i18n.php'; |
68 | 68 | |
69 | 69 | return $i18n; |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | |
73 | 73 | $dic->setService( |
74 | 74 | ArrayKeywords::class, |
75 | - static function (DIC $dic): ArrayKeywords { |
|
75 | + static function(DIC $dic): ArrayKeywords { |
|
76 | 76 | /** |
77 | 77 | * @var array<string, array<string, string>> |
78 | 78 | */ |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | |
87 | 87 | $dic->setService( |
88 | 88 | Lexer::class, |
89 | - static function (DIC $dic): Lexer { |
|
89 | + static function(DIC $dic): Lexer { |
|
90 | 90 | return new Lexer( |
91 | 91 | $dic->getService(ArrayKeywords::class) |
92 | 92 | ); |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | |
96 | 96 | $dic->setService( |
97 | 97 | Parser::class, |
98 | - static function (DIC $dic): Parser { |
|
98 | + static function(DIC $dic): Parser { |
|
99 | 99 | return new Parser( |
100 | 100 | $dic->getService(Lexer::class) |
101 | 101 | ); |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | |
105 | 105 | $dic->setParameter( |
106 | 106 | 'input.sources', |
107 | - static function (DIC $dic): array { |
|
107 | + static function(DIC $dic): array { |
|
108 | 108 | $input = $dic->getService(InputInterface::class); |
109 | 109 | |
110 | 110 | $sources = $input->getArgument('sources'); |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | |
117 | 117 | $dic->setParameter( |
118 | 118 | 'input.alignement', |
119 | - static function (DIC $dic): string { |
|
119 | + static function(DIC $dic): string { |
|
120 | 120 | $input = $dic->getService(InputInterface::class); |
121 | 121 | |
122 | 122 | return 'left' === $input->getOption('align') ? 'left' : 'right'; |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | |
126 | 126 | $dic->setParameter( |
127 | 127 | 'input.indentation', |
128 | - static function (DIC $dic): int { |
|
128 | + static function(DIC $dic): int { |
|
129 | 129 | $input = $dic->getService(InputInterface::class); |
130 | 130 | |
131 | 131 | $indent = $input->getOption('indent'); |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | |
139 | 139 | $dic->setService( |
140 | 140 | Finder::class, |
141 | - static function (DIC $dic): Finder { |
|
141 | + static function(DIC $dic): Finder { |
|
142 | 142 | /** |
143 | 143 | * @var string[] |
144 | 144 | */ |
@@ -150,7 +150,7 @@ discard block |
||
150 | 150 | |
151 | 151 | $dic->setService( |
152 | 152 | Background::class, |
153 | - static function (DIC $dic): Background { |
|
153 | + static function(DIC $dic): Background { |
|
154 | 154 | return new Background( |
155 | 155 | $dic->getService(Indentation::class), |
156 | 156 | $dic->getService(Steps::class), |
@@ -160,7 +160,7 @@ discard block |
||
160 | 160 | |
161 | 161 | $dic->setService( |
162 | 162 | Feature::class, |
163 | - static function (DIC $dic): Feature { |
|
163 | + static function(DIC $dic): Feature { |
|
164 | 164 | return new Feature( |
165 | 165 | $dic->getService(Background::class), |
166 | 166 | $dic->getService(Scenarios::class), |
@@ -172,7 +172,7 @@ discard block |
||
172 | 172 | |
173 | 173 | $dic->setService( |
174 | 174 | Examples::class, |
175 | - static function (DIC $dic): Examples { |
|
175 | + static function(DIC $dic): Examples { |
|
176 | 176 | return new Examples( |
177 | 177 | $dic->getService(Indentation::class) |
178 | 178 | ); |
@@ -181,7 +181,7 @@ discard block |
||
181 | 181 | |
182 | 182 | $dic->setService( |
183 | 183 | FeatureDescription::class, |
184 | - static function (DIC $dic): FeatureDescription { |
|
184 | + static function(DIC $dic): FeatureDescription { |
|
185 | 185 | return new FeatureDescription( |
186 | 186 | $dic->getService(Indentation::class) |
187 | 187 | ); |
@@ -190,7 +190,7 @@ discard block |
||
190 | 190 | |
191 | 191 | $dic->setService( |
192 | 192 | Indentation::class, |
193 | - static function (DIC $dic): Indentation { |
|
193 | + static function(DIC $dic): Indentation { |
|
194 | 194 | /** |
195 | 195 | * @var int |
196 | 196 | */ |
@@ -204,7 +204,7 @@ discard block |
||
204 | 204 | |
205 | 205 | $dic->setService( |
206 | 206 | Scenarios::class, |
207 | - static function (DIC $dic): Scenarios { |
|
207 | + static function(DIC $dic): Scenarios { |
|
208 | 208 | return new Scenarios( |
209 | 209 | $dic->getService(Indentation::class), |
210 | 210 | $dic->getService(Tags::class), |
@@ -216,7 +216,7 @@ discard block |
||
216 | 216 | |
217 | 217 | $dic->setService( |
218 | 218 | Steps::class, |
219 | - static function (DIC $dic): Steps { |
|
219 | + static function(DIC $dic): Steps { |
|
220 | 220 | /** |
221 | 221 | * @var string |
222 | 222 | */ |
@@ -231,7 +231,7 @@ discard block |
||
231 | 231 | |
232 | 232 | $dic->setService( |
233 | 233 | Tags::class, |
234 | - static fn (DIC $dic): Tags => new Tags() |
|
234 | + static fn(DIC $dic): Tags => new Tags() |
|
235 | 235 | ); |
236 | 236 | |
237 | 237 | return $dic; |