@@ -84,7 +84,7 @@ |
||
| 84 | 84 | } |
| 85 | 85 | |
| 86 | 86 | /** |
| 87 | - * @param null $client |
|
| 87 | + * @param QwerteeClient $client |
|
| 88 | 88 | */ |
| 89 | 89 | public static function setClient($client) |
| 90 | 90 | { |
@@ -42,9 +42,9 @@ discard block |
||
| 42 | 42 | } |
| 43 | 43 | |
| 44 | 44 | $list = collect($this->client->get_items()) |
| 45 | - ->sortBy(function (\SimplePie_Item $item, $key) { |
|
| 45 | + ->sortBy(function(\SimplePie_Item $item, $key) { |
|
| 46 | 46 | return $item->get_title(); |
| 47 | - })->sortByDesc(function (\SimplePie_Item $item, $key) { |
|
| 47 | + })->sortByDesc(function(\SimplePie_Item $item, $key) { |
|
| 48 | 48 | return $item->get_date('Ymd'); |
| 49 | 49 | }); |
| 50 | 50 | |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | |
| 75 | 75 | private function extractData(Collection $feedItems) |
| 76 | 76 | { |
| 77 | - $dataItems = $feedItems->map(function (\SimplePie_Item $item) { |
|
| 77 | + $dataItems = $feedItems->map(function(\SimplePie_Item $item) { |
|
| 78 | 78 | $crawler = new Crawler($item->get_content()); |
| 79 | 79 | $zoom = $crawler->filter('img')->first()->attr('src'); |
| 80 | 80 | |