Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
38 | protected function execute(InputInterface $input, OutputInterface $output) |
||
39 | { |
||
40 | $io = new SymfonyStyle($input, $output); |
||
41 | $io->title('Repartition of tables by groups.'); |
||
42 | |||
43 | foreach ($this->loader->getGroups() as $group => $tables) { |
||
44 | $io->section($group); |
||
45 | $io->listing($tables); |
||
46 | } |
||
47 | } |
||
48 | } |
||
49 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: