Completed
Push — feature/coverage ( 751614 )
by Oguzhan
03:42
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.