@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | } |
52 | 52 | |
53 | 53 | /** |
54 | - * @param $collection |
|
54 | + * @param \Doctrine\Common\Collections\ArrayCollection $collection |
|
55 | 55 | * @param $columns |
56 | 56 | * @param Table $table |
57 | 57 | * @return Table |
@@ -70,7 +70,6 @@ discard block |
||
70 | 70 | /** |
71 | 71 | * @param $collection |
72 | 72 | * @param $columns |
73 | - * @param OutputInterface $output |
|
74 | 73 | * @return Table |
75 | 74 | * @throws \Exception |
76 | 75 | */ |
@@ -10,8 +10,6 @@ |
||
10 | 10 | |
11 | 11 | |
12 | 12 | use Pbxg33k\MusicInfo\MusicInfo; |
13 | -use Pbxg33k\Traits\HydratableTrait; |
|
14 | -use Pbxg33k\Traits\PropertyTrait; |
|
15 | 13 | use Symfony\Component\Console\Command\Command; |
16 | 14 | use Symfony\Component\Console\Helper\Table; |
17 | 15 | use Symfony\Component\Console\Output\OutputInterface; |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | |
40 | 40 | protected function configure() |
41 | 41 | { |
42 | - if(!$this->musicInfo) { |
|
42 | + if (!$this->musicInfo) { |
|
43 | 43 | $this->initializeMusicInfo(); |
44 | 44 | } |
45 | 45 | |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | { |
61 | 61 | $table->setHeaders(array_values($columns)); |
62 | 62 | |
63 | - foreach($collection as $service => $serviceResult) { |
|
63 | + foreach ($collection as $service => $serviceResult) { |
|
64 | 64 | $table = $this->generateTableRows($serviceResult, $columns, $table); |
65 | 65 | } |
66 | 66 | |
@@ -76,10 +76,10 @@ discard block |
||
76 | 76 | */ |
77 | 77 | protected function generateTableRows($collection, $columns, Table $table) |
78 | 78 | { |
79 | - foreach($collection as $item) { |
|
79 | + foreach ($collection as $item) { |
|
80 | 80 | $row = []; |
81 | 81 | |
82 | - foreach($columns as $columnKey => $columnValue) { |
|
82 | + foreach ($columns as $columnKey => $columnValue) { |
|
83 | 83 | $row[] = $item->getPropertyValue($columnKey); |
84 | 84 | } |
85 | 85 |