| Total Complexity | 4 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class BiCoreBundleCreatedatabaseCommand extends Command |
||
| 12 | { |
||
| 13 | private $em; |
||
| 14 | |||
| 15 | 3 | public function __construct(ObjectManager $em) |
|
| 16 | { |
||
| 17 | 3 | $this->em = $em; |
|
| 18 | |||
| 19 | // you *must* call the parent constructor |
||
| 20 | 3 | parent::__construct(); |
|
| 21 | 3 | } |
|
| 22 | 3 | protected function configure() |
|
| 23 | { |
||
| 24 | $this |
||
| 25 | 3 | ->setName('bicorebundle:createdatabase') |
|
| 26 | 3 | ->setDescription('Creazione database bi') |
|
| 27 | 3 | ->setHelp('Creazione di un nuovo database di bi'); |
|
| 28 | 3 | } |
|
| 29 | 1 | protected function execute(InputInterface $input, OutputInterface $output) |
|
| 46 | 1 | } |
|
| 47 | } |
||
| 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.