Completed
Pull Request — develop (#13)
by Oguzhan
06:06 queued 02:55
created
src/Command/BaseCommand.php 3 patches
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
70 70
     /**
71 71
      * @param                 $collection
72 72
      * @param                 $columns
73
-     * @param OutputInterface $output
74 73
      * @return Table
75 74
      * @throws \Exception
76 75
      */
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -10,8 +10,6 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.