Conditions | 2 |
Paths | 2 |
Total Lines | 17 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Tests | 12 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
29 | 1 | protected function execute(InputInterface $input, OutputInterface $output) |
|
30 | { |
||
31 | /* @var $em \Doctrine\ORM\EntityManager */ |
||
32 | 1 | $em = $this->em; |
|
|
|||
33 | 1 | $driver = $em->getConnection()->getDriver()->getName(); |
|
34 | |||
35 | |||
36 | 1 | if ($driver != "pdo_sqlite") { |
|
37 | 1 | $command = $this->getApplication()->find('doctrine:database:create'); |
|
38 | 1 | $arguments = array('--if-not-exists' => true); |
|
39 | 1 | $inputcmd = new ArrayInput($arguments); |
|
40 | 1 | $command->run($inputcmd, $output); |
|
41 | } |
||
42 | 1 | $command = $this->getApplication()->find('doctrine:schema:create'); |
|
43 | 1 | $arguments = array(''); |
|
44 | 1 | $inputcmd = new ArrayInput($arguments); |
|
45 | 1 | $command->run($inputcmd, $output); |
|
46 | 1 | } |
|
48 |
This check looks for multiple assignments in successive lines of code. It will report an issue if the operators are not in a straight line.
To visualize
will produce issues in the first and second line, while this second example
will produce no issues.