@@ -8,7 +8,6 @@ |
||
8 | 8 | use Symfony\Bundle\MakerBundle\DependencyBuilder; |
9 | 9 | use Symfony\Bundle\MakerBundle\Generator; |
10 | 10 | use Symfony\Bundle\MakerBundle\InputConfiguration; |
11 | -use Symfony\Component\Console\Command\Command; |
|
12 | 11 | use Symfony\Component\Console\Command\Command as BaseCommand; |
13 | 12 | use Symfony\Component\Console\Input\InputInterface; |
14 | 13 | use Symfony\Component\Console\Input\InputOption; |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | |
149 | 149 | $question->setValidator(['Sensio\Bundle\GeneratorBundle\Command\Validators', 'validateBundleName']); |
150 | 150 | $question->setNormalizer( |
151 | - function ($value) { |
|
151 | + function($value) { |
|
152 | 152 | return $value ? trim($value) : ''; |
153 | 153 | } |
154 | 154 | ); |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | $input->getOption('entity_name') |
172 | 172 | ); |
173 | 173 | $question->setValidator( |
174 | - function ($answer) { |
|
174 | + function($answer) { |
|
175 | 175 | // Should only contain letters. |
176 | 176 | $valid = preg_match('/^[a-zA-Z]+$/', $answer); |
177 | 177 | if (!$valid) { |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | } |
185 | 185 | ); |
186 | 186 | $question->setNormalizer( |
187 | - function ($value) { |
|
187 | + function($value) { |
|
188 | 188 | return $value ? trim($value) : ''; |
189 | 189 | } |
190 | 190 | ); |
@@ -264,12 +264,12 @@ discard block |
||
264 | 264 | ), 'yes' |
265 | 265 | ); |
266 | 266 | $question->setNormalizer( |
267 | - function ($value) { |
|
267 | + function($value) { |
|
268 | 268 | return $value[0] == 'y' ? 'y' : 'n'; |
269 | 269 | } |
270 | 270 | ); |
271 | 271 | $question->setValidator( |
272 | - function ($answer) { |
|
272 | + function($answer) { |
|
273 | 273 | // Should only contain letters. |
274 | 274 | $allowed = [ |
275 | 275 | 'y', |
@@ -11,7 +11,6 @@ |
||
11 | 11 | namespace IrishDan\ResponsiveImageBundle\Command; |
12 | 12 | |
13 | 13 | use IrishDan\ResponsiveImageBundle\ImageEntityClassLocator; |
14 | -use Sensio\Bundle\GeneratorBundle\Command\GenerateDoctrineCrudCommand; |
|
15 | 14 | use Sensio\Bundle\GeneratorBundle\Command\Validators; |
16 | 15 | use Symfony\Component\Console\Command\Command; |
17 | 16 | use Symfony\Component\Console\Input\InputInterface; |
@@ -11,7 +11,6 @@ |
||
11 | 11 | namespace IrishDan\ResponsiveImageBundle\Tests\File; |
12 | 12 | |
13 | 13 | use Doctrine\ORM\EntityManager; |
14 | - |
|
15 | 14 | use IrishDan\ResponsiveImageBundle\File\FileToObject; |
16 | 15 | use IrishDan\ResponsiveImageBundle\ImageEntityNameResolver; |
17 | 16 | use IrishDan\ResponsiveImageBundle\ResponsiveImageInterface; |