@@ -92,7 +92,7 @@ |
||
92 | 92 | |
93 | 93 | $output['result_count'] = count($xml->item); |
94 | 94 | |
95 | - foreach($xml->item as $value) { |
|
95 | + foreach ($xml->item as $value) { |
|
96 | 96 | $output['results'][] = [ |
97 | 97 | 'title' => (string) $value->title, |
98 | 98 | 'rss' => (string) $value->source, |
@@ -93,7 +93,7 @@ |
||
93 | 93 | $response = json_decode($response['search']); |
94 | 94 | $output['result_count'] = $response->resultCount; |
95 | 95 | |
96 | - foreach($response->results as $value) { |
|
96 | + foreach ($response->results as $value) { |
|
97 | 97 | $output['results'][] = [ |
98 | 98 | 'itunes_id' => $value->collectionId, |
99 | 99 | 'author' => $value->artistName, |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | protected function getEpisodes($channel) |
39 | 39 | { |
40 | 40 | $items = []; |
41 | - foreach($channel->item as $value) { |
|
41 | + foreach ($channel->item as $value) { |
|
42 | 42 | $items[] = [ |
43 | 43 | 'title' => (string) $value->title, |
44 | 44 | 'mp3' => $this->getAudioUrl($value), |
@@ -142,10 +142,10 @@ discard block |
||
142 | 142 | $categories = $channel->xpath('itunes:category'); |
143 | 143 | |
144 | 144 | $items = []; |
145 | - foreach ( $categories as $category ) { |
|
145 | + foreach ($categories as $category) { |
|
146 | 146 | $item = ['title' => (string) $category->attributes()->text, 'children' => []]; |
147 | 147 | |
148 | - if (! empty($category->xpath('itunes:category'))) { |
|
148 | + if (!empty($category->xpath('itunes:category'))) { |
|
149 | 149 | $inner = $this->fetchCategories($category); |
150 | 150 | |
151 | 151 | $item['children'] = $inner; |