@@ -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, fn (): InputInterface => $input); |
|
| 29 | + $this->dic->setService(InputInterface::class, 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 | - function ($line) { |
|
| 68 | + 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, fn (): InputInterface => $input); |
|
| 27 | + $this->dic->setService(InputInterface::class, 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 | - function (DIC $dic): Application { |
|
| 33 | + 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,21 +41,21 @@ discard block |
||
| 41 | 41 | |
| 42 | 42 | $dic->setService( |
| 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->setService( |
| 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->setParameter( |
| 57 | 57 | 'autoload.directory', |
| 58 | - function (DIC $dic): string { |
|
| 58 | + function(DIC $dic): string { |
|
| 59 | 59 | /** |
| 60 | 60 | * @var string |
| 61 | 61 | */ |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | |
| 68 | 68 | $dic->setParameter( |
| 69 | 69 | 'gherkin.i18n', |
| 70 | - function (DIC $dic): array { |
|
| 70 | + function(DIC $dic): array { |
|
| 71 | 71 | $i18n = require $dic->getParameter('autoload.directory').'/behat/gherkin/i18n.php'; |
| 72 | 72 | |
| 73 | 73 | return $i18n; |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | |
| 77 | 77 | $dic->setService( |
| 78 | 78 | ArrayKeywords::class, |
| 79 | - function (DIC $dic): ArrayKeywords { |
|
| 79 | + function(DIC $dic): ArrayKeywords { |
|
| 80 | 80 | /** |
| 81 | 81 | * @var array<string, array<string, string>> |
| 82 | 82 | */ |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | |
| 91 | 91 | $dic->setService( |
| 92 | 92 | Lexer::class, |
| 93 | - function (DIC $dic): Lexer { |
|
| 93 | + function(DIC $dic): Lexer { |
|
| 94 | 94 | return new Lexer( |
| 95 | 95 | $dic->getService(ArrayKeywords::class) |
| 96 | 96 | ); |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | |
| 100 | 100 | $dic->setService( |
| 101 | 101 | Parser::class, |
| 102 | - function (DIC $dic): Parser { |
|
| 102 | + function(DIC $dic): Parser { |
|
| 103 | 103 | return new Parser( |
| 104 | 104 | $dic->getService(Lexer::class) |
| 105 | 105 | ); |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | |
| 109 | 109 | $dic->setParameter( |
| 110 | 110 | 'input.sources', |
| 111 | - function (DIC $dic): array { |
|
| 111 | + function(DIC $dic): array { |
|
| 112 | 112 | $input = $dic->getService(InputInterface::class); |
| 113 | 113 | |
| 114 | 114 | $sources = $input->getArgument('sources'); |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | |
| 121 | 121 | $dic->setParameter( |
| 122 | 122 | 'input.alignement', |
| 123 | - function (DIC $dic): string { |
|
| 123 | + function(DIC $dic): string { |
|
| 124 | 124 | $input = $dic->getService(InputInterface::class); |
| 125 | 125 | |
| 126 | 126 | return 'left' === $input->getOption('align') ? 'left' : 'right'; |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | |
| 130 | 130 | $dic->setParameter( |
| 131 | 131 | 'input.indentation', |
| 132 | - function (DIC $dic): int { |
|
| 132 | + function(DIC $dic): int { |
|
| 133 | 133 | $input = $dic->getService(InputInterface::class); |
| 134 | 134 | |
| 135 | 135 | $indent = $input->getOption('indent'); |
@@ -142,7 +142,7 @@ discard block |
||
| 142 | 142 | |
| 143 | 143 | $dic->setService( |
| 144 | 144 | Finder::class, |
| 145 | - function (DIC $dic): Finder { |
|
| 145 | + function(DIC $dic): Finder { |
|
| 146 | 146 | /** |
| 147 | 147 | * @var string[] |
| 148 | 148 | */ |
@@ -154,7 +154,7 @@ discard block |
||
| 154 | 154 | |
| 155 | 155 | $dic->setService( |
| 156 | 156 | Background::class, |
| 157 | - function (DIC $dic): Background { |
|
| 157 | + function(DIC $dic): Background { |
|
| 158 | 158 | return new Background( |
| 159 | 159 | $dic->getService(Indentation::class), |
| 160 | 160 | $dic->getService(Steps::class), |
@@ -164,7 +164,7 @@ discard block |
||
| 164 | 164 | |
| 165 | 165 | $dic->setService( |
| 166 | 166 | Feature::class, |
| 167 | - function (DIC $dic): Feature { |
|
| 167 | + function(DIC $dic): Feature { |
|
| 168 | 168 | return new Feature( |
| 169 | 169 | $dic->getService(Background::class), |
| 170 | 170 | $dic->getService(Scenarios::class), |
@@ -176,7 +176,7 @@ discard block |
||
| 176 | 176 | |
| 177 | 177 | $dic->setService( |
| 178 | 178 | Examples::class, |
| 179 | - function (DIC $dic): Examples { |
|
| 179 | + function(DIC $dic): Examples { |
|
| 180 | 180 | return new Examples( |
| 181 | 181 | $dic->getService(Indentation::class) |
| 182 | 182 | ); |
@@ -185,7 +185,7 @@ discard block |
||
| 185 | 185 | |
| 186 | 186 | $dic->setService( |
| 187 | 187 | FeatureDescription::class, |
| 188 | - function (DIC $dic): FeatureDescription { |
|
| 188 | + function(DIC $dic): FeatureDescription { |
|
| 189 | 189 | return new FeatureDescription( |
| 190 | 190 | $dic->getService(Indentation::class) |
| 191 | 191 | ); |
@@ -194,7 +194,7 @@ discard block |
||
| 194 | 194 | |
| 195 | 195 | $dic->setService( |
| 196 | 196 | Indentation::class, |
| 197 | - function (DIC $dic): Indentation { |
|
| 197 | + function(DIC $dic): Indentation { |
|
| 198 | 198 | /** |
| 199 | 199 | * @var int |
| 200 | 200 | */ |
@@ -208,7 +208,7 @@ discard block |
||
| 208 | 208 | |
| 209 | 209 | $dic->setService( |
| 210 | 210 | Scenarios::class, |
| 211 | - function (DIC $dic): Scenarios { |
|
| 211 | + function(DIC $dic): Scenarios { |
|
| 212 | 212 | return new Scenarios( |
| 213 | 213 | $dic->getService(Indentation::class), |
| 214 | 214 | $dic->getService(Tags::class), |
@@ -220,7 +220,7 @@ discard block |
||
| 220 | 220 | |
| 221 | 221 | $dic->setService( |
| 222 | 222 | Steps::class, |
| 223 | - function (DIC $dic): Steps { |
|
| 223 | + function(DIC $dic): Steps { |
|
| 224 | 224 | /** |
| 225 | 225 | * @var string |
| 226 | 226 | */ |
@@ -235,7 +235,7 @@ discard block |
||
| 235 | 235 | |
| 236 | 236 | $dic->setService( |
| 237 | 237 | Tags::class, |
| 238 | - function (DIC $dic): Tags { |
|
| 238 | + function(DIC $dic): Tags { |
|
| 239 | 239 | return new Tags(); |
| 240 | 240 | } |
| 241 | 241 | ); |