| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2.0438 |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | 1 | protected function execute(InputInterface $input, OutputInterface $output) |
|
| 24 | { |
||
| 25 | 1 | $force = $input->getOption('force'); |
|
| 26 | |||
| 27 | 1 | if (!$force) { |
|
| 28 | echo "Specificare l'opzione --force per eseguire il comando"; |
||
| 29 | |||
| 30 | return 1; |
||
| 31 | } |
||
| 32 | |||
| 33 | 1 | $command = $this->getApplication()->find('doctrine:schema:drop'); |
|
|
|
|||
| 34 | 1 | $arguments = array('command' => 'doctrine:schema:drop', '--force' => true); |
|
| 35 | 1 | $inputcmd = new ArrayInput($arguments); |
|
| 36 | 1 | $command->run($inputcmd, $output); |
|
| 37 | 1 | } |
|
| 39 |
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.