Conditions | 3 |
Paths | 3 |
Total Lines | 18 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
41 | public function getResult() { |
||
42 | $result = []; |
||
43 | |||
44 | /** |
||
45 | * Go though tables to get results |
||
46 | * |
||
47 | * @var Table $table |
||
48 | */ |
||
49 | foreach ($this->tables as $table) { |
||
50 | $tableResult = $table->getResult(); |
||
51 | |||
52 | if (count($tableResult['issues']) > 0) { |
||
53 | $result[$table->getName()] = $table->getResult(); |
||
54 | } |
||
55 | } |
||
56 | |||
57 | return $result; |
||
58 | } |
||
59 | } |
||
60 |