Completed
Pull Request — master (#17)
by Oguzhan
05:45 queued 02:32
created
src/Service/Spotify/Endpoint/Artist.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@
 block discarded – undo
121 121
             ->setRawData($raw)
122 122
             ->setDataSource(self::DATA_SOURCE);
123 123
 
124
-        if(is_array($raw->images) && count($raw->images) >= 1) {
124
+        if (is_array($raw->images) && count($raw->images) >= 1) {
125 125
             $object->setImage($raw->images[array_keys($raw->images)[0]]->url);
126 126
         }
127 127
 
Please login to merge, or discard this patch.
src/Command/BaseCommand.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 
44 44
     protected function configure()
45 45
     {
46
-        if(!$this->musicInfo) {
46
+        if (!$this->musicInfo) {
47 47
             $this->initializeMusicInfo();
48 48
         }
49 49
 
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
 
58 58
     protected function initialize(InputInterface $input, OutputInterface $output)
59 59
     {
60
-        if($input->getOption('debug')) {
60
+        if ($input->getOption('debug')) {
61 61
             Debug::enable();
62 62
         }
63 63
 
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
     {
75 75
         $table->setHeaders(array_values($columns));
76 76
 
77
-        foreach($collection as $service => $serviceResult) {
77
+        foreach ($collection as $service => $serviceResult) {
78 78
             $table = $this->generateTableRows($serviceResult, $columns, $table);
79 79
         }
80 80
 
@@ -89,10 +89,10 @@  discard block
 block discarded – undo
89 89
      */
90 90
     protected function generateTableRows($collection, $columns, Table $table)
91 91
     {
92
-        foreach($collection as $item) {
92
+        foreach ($collection as $item) {
93 93
             $row = [];
94 94
 
95
-            foreach($columns as $columnKey => $columnValue) {
95
+            foreach ($columns as $columnKey => $columnValue) {
96 96
                 $row[] = $item->getPropertyValue($columnKey);
97 97
             }
98 98
 
Please login to merge, or discard this patch.
src/Service/VocaDB/Endpoint/Track.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
         var_dump(
51 51
             __FILE__, __LINE__,
52 52
             $raw
53
-        );die();
53
+        ); die();
54 54
 
55 55
         return $object;
56 56
 
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
     /**
25 25
      * @param $apiService
26 26
      *
27
-     * @return mixed
27
+     * @return Track
28 28
      */
29 29
     public function setParent($apiService)
30 30
     {
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
     /**
97 97
      * @param $guid
98 98
      *
99
-     * @return mixed
99
+     * @return ArrayCollection
100 100
      */
101 101
     public function getByGuid($guid, $complete = true)
102 102
     {
Please login to merge, or discard this patch.
src/Service/VocaDB/Endpoint/Album.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -80,8 +80,8 @@
 block discarded – undo
80 80
     public function transformCollection($raw)
81 81
     {
82 82
         $collection = new ArrayCollection();
83
-        if($raw instanceof AlbumCollection) {
84
-            foreach($raw->collection as $album) {
83
+        if ($raw instanceof AlbumCollection) {
84
+            foreach ($raw->collection as $album) {
85 85
                 $collection->add($this->transformSingle($album));
86 86
             }
87 87
 
Please login to merge, or discard this patch.