@@ -121,7 +121,7 @@ |
||
| 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 | |
@@ -43,7 +43,7 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | |
@@ -50,7 +50,7 @@ |
||
| 50 | 50 | var_dump( |
| 51 | 51 | __FILE__, __LINE__, |
| 52 | 52 | $raw |
| 53 | - );die(); |
|
| 53 | + ); die(); |
|
| 54 | 54 | |
| 55 | 55 | return $object; |
| 56 | 56 | |
@@ -24,7 +24,7 @@ discard block |
||
| 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 |
||
| 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 | { |