@@ -115,7 +115,7 @@ |
||
| 115 | 115 | '', |
| 116 | 116 | array_filter( |
| 117 | 117 | array_map( |
| 118 | - function ($line) { |
|
| 118 | + function($line) { |
|
| 119 | 119 | if (0 === mb_strpos(ltrim($line), '#')) { |
| 120 | 120 | return ''; |
| 121 | 121 | } |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | |
| 32 | 32 | $dic->set( |
| 33 | 33 | Application::class, |
| 34 | - function (DIC $dic): Application { |
|
| 34 | + function(DIC $dic): Application { |
|
| 35 | 35 | $application = new Application('Kawaii Gherkin', '1.0.3'); |
| 36 | 36 | $application->add($dic->get(FixCommand::class)); |
| 37 | 37 | |
@@ -41,21 +41,21 @@ discard block |
||
| 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 | 'autoload.directory', |
| 51 | - function (DIC $dic): string { |
|
| 51 | + function(DIC $dic): string { |
|
| 52 | 52 | return \dirname($dic->get('autoload.file')); |
| 53 | 53 | } |
| 54 | 54 | ); |
| 55 | 55 | |
| 56 | 56 | $dic->set( |
| 57 | 57 | 'gherkin.i18n', |
| 58 | - function (DIC $dic): array { |
|
| 58 | + function(DIC $dic): array { |
|
| 59 | 59 | $i18n = require $dic->get('autoload.directory').'/behat/gherkin/i18n.php'; |
| 60 | 60 | |
| 61 | 61 | return $i18n; |
@@ -64,7 +64,7 @@ discard block |
||
| 64 | 64 | |
| 65 | 65 | $dic->set( |
| 66 | 66 | ArrayKeywords::class, |
| 67 | - function (DIC $dic): ArrayKeywords { |
|
| 67 | + function(DIC $dic): ArrayKeywords { |
|
| 68 | 68 | return new ArrayKeywords( |
| 69 | 69 | $dic->get('gherkin.i18n') |
| 70 | 70 | ); |
@@ -73,7 +73,7 @@ discard block |
||
| 73 | 73 | |
| 74 | 74 | $dic->set( |
| 75 | 75 | Lexer::class, |
| 76 | - function (DIC $dic): Lexer { |
|
| 76 | + function(DIC $dic): Lexer { |
|
| 77 | 77 | return new Lexer( |
| 78 | 78 | $dic->get(ArrayKeywords::class) |
| 79 | 79 | ); |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | |
| 83 | 83 | $dic->set( |
| 84 | 84 | Parser::class, |
| 85 | - function (DIC $dic): Parser { |
|
| 85 | + function(DIC $dic): Parser { |
|
| 86 | 86 | return new Parser( |
| 87 | 87 | $dic->get(Lexer::class) |
| 88 | 88 | ); |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | |
| 92 | 92 | $dic->set( |
| 93 | 93 | 'input.sources', |
| 94 | - function (DIC $dic): array { |
|
| 94 | + function(DIC $dic): array { |
|
| 95 | 95 | $input = $dic->get(InputInterface::class); |
| 96 | 96 | |
| 97 | 97 | $sources = $input->getArgument('sources'); |
@@ -103,16 +103,16 @@ discard block |
||
| 103 | 103 | |
| 104 | 104 | $dic->set( |
| 105 | 105 | 'input.alignement', |
| 106 | - function (DIC $dic): string { |
|
| 106 | + function(DIC $dic): string { |
|
| 107 | 107 | $input = $dic->get(InputInterface::class); |
| 108 | 108 | |
| 109 | - return 'left' === $input->getOption('align') ? 'left': 'right'; |
|
| 109 | + return 'left' === $input->getOption('align') ? 'left' : 'right'; |
|
| 110 | 110 | } |
| 111 | 111 | ); |
| 112 | 112 | |
| 113 | 113 | $dic->set( |
| 114 | 114 | 'input.indentation', |
| 115 | - function (DIC $dic): int { |
|
| 115 | + function(DIC $dic): int { |
|
| 116 | 116 | $input = $dic->get(InputInterface::class); |
| 117 | 117 | |
| 118 | 118 | $indent = $input->getOption('indent'); |
@@ -125,7 +125,7 @@ discard block |
||
| 125 | 125 | |
| 126 | 126 | $dic->set( |
| 127 | 127 | Finder::class, |
| 128 | - function (DIC $dic): Finder { |
|
| 128 | + function(DIC $dic): Finder { |
|
| 129 | 129 | $sources = $dic->get('input.sources'); |
| 130 | 130 | |
| 131 | 131 | return new Finder(...$sources); |
@@ -134,7 +134,7 @@ discard block |
||
| 134 | 134 | |
| 135 | 135 | $dic->set( |
| 136 | 136 | Background::class, |
| 137 | - function (DIC $dic): Background { |
|
| 137 | + function(DIC $dic): Background { |
|
| 138 | 138 | return new Background( |
| 139 | 139 | $dic->get(Indentation::class), |
| 140 | 140 | $dic->get(Steps::class), |
@@ -144,7 +144,7 @@ discard block |
||
| 144 | 144 | |
| 145 | 145 | $dic->set( |
| 146 | 146 | ComposedFormatter::class, |
| 147 | - function (DIC $dic): ComposedFormatter { |
|
| 147 | + function(DIC $dic): ComposedFormatter { |
|
| 148 | 148 | return new ComposedFormatter( |
| 149 | 149 | $dic->get(Background::class), |
| 150 | 150 | $dic->get(Scenarios::class), |
@@ -156,7 +156,7 @@ discard block |
||
| 156 | 156 | |
| 157 | 157 | $dic->set( |
| 158 | 158 | Examples::class, |
| 159 | - function (DIC $dic): Examples { |
|
| 159 | + function(DIC $dic): Examples { |
|
| 160 | 160 | return new Examples( |
| 161 | 161 | $dic->get(Indentation::class) |
| 162 | 162 | ); |
@@ -165,7 +165,7 @@ discard block |
||
| 165 | 165 | |
| 166 | 166 | $dic->set( |
| 167 | 167 | FeatureDescription::class, |
| 168 | - function (DIC $dic): FeatureDescription { |
|
| 168 | + function(DIC $dic): FeatureDescription { |
|
| 169 | 169 | return new FeatureDescription( |
| 170 | 170 | $dic->get(Indentation::class) |
| 171 | 171 | ); |
@@ -174,7 +174,7 @@ discard block |
||
| 174 | 174 | |
| 175 | 175 | $dic->set( |
| 176 | 176 | Indentation::class, |
| 177 | - function (DIC $dic): Indentation { |
|
| 177 | + function(DIC $dic): Indentation { |
|
| 178 | 178 | return new Indentation( |
| 179 | 179 | $dic->get('input.indentation') |
| 180 | 180 | ); |
@@ -183,7 +183,7 @@ discard block |
||
| 183 | 183 | |
| 184 | 184 | $dic->set( |
| 185 | 185 | Scenarios::class, |
| 186 | - function (DIC $dic): Scenarios { |
|
| 186 | + function(DIC $dic): Scenarios { |
|
| 187 | 187 | return new Scenarios( |
| 188 | 188 | $dic->get(Indentation::class), |
| 189 | 189 | $dic->get(Tags::class), |
@@ -195,7 +195,7 @@ discard block |
||
| 195 | 195 | |
| 196 | 196 | $dic->set( |
| 197 | 197 | Steps::class, |
| 198 | - function (DIC $dic): Steps { |
|
| 198 | + function(DIC $dic): Steps { |
|
| 199 | 199 | return new Steps( |
| 200 | 200 | $dic->get(Indentation::class), |
| 201 | 201 | $dic->get('input.alignement'), |
@@ -205,7 +205,7 @@ discard block |
||
| 205 | 205 | |
| 206 | 206 | $dic->set( |
| 207 | 207 | Tags::class, |
| 208 | - function (DIC $dic): Tags { |
|
| 208 | + function(DIC $dic): Tags { |
|
| 209 | 209 | return new Tags(); |
| 210 | 210 | } |
| 211 | 211 | ); |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | public function __construct(Indentation $indentation, Steps $steps) |
| 15 | 15 | { |
| 16 | 16 | $this->indentation = $indentation; |
| 17 | - $this->steps = $steps; |
|
| 17 | + $this->steps = $steps; |
|
| 18 | 18 | } |
| 19 | 19 | |
| 20 | 20 | /** |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | Tags $tags |
| 21 | 21 | ) { |
| 22 | 22 | $this->background = $background; |
| 23 | - $this->scenarios = $scenarios; |
|
| 23 | + $this->scenarios = $scenarios; |
|
| 24 | 24 | $this->featureDescription = $featureDescription; |
| 25 | 25 | $this->tags = $tags; |
| 26 | 26 | } |