Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 11 |
Ratio | 100 % |
Tests | 5 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
23 | 2 | public function createService(ServiceLocatorInterface $serviceLocator) |
|
24 | { |
||
25 | /** @var UpToDateCommand $command */ |
||
26 | 2 | $command = $serviceLocator->get('doctrine.migrations_cmd.uptodate'); |
|
27 | |||
28 | 2 | $input = new RequestInput(new Request(array())); |
|
29 | |||
30 | 2 | $output = new PropertyOutput(); |
|
31 | |||
32 | 2 | return new CheckCommand($command, $input, $output); |
|
33 | } |
||
34 | } |
||
35 |
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.