@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | return []; |
| 32 | 32 | } |
| 33 | 33 | |
| 34 | - return array_map(static function ($data) { |
|
| 34 | + return array_map(static function($data) { |
|
| 35 | 35 | return Artist::fromApi($data); |
| 36 | 36 | }, $response['topartists']['artist']); |
| 37 | 37 | } |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | return []; |
| 53 | 53 | } |
| 54 | 54 | |
| 55 | - return array_map(static function ($data) { |
|
| 55 | + return array_map(static function($data) { |
|
| 56 | 56 | return Song::fromApi($data); |
| 57 | 57 | }, $response['tracks']['track']); |
| 58 | 58 | } |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | throw new InvalidArgumentException('A maximum of 10 tags is allowed'); |
| 38 | 38 | } |
| 39 | 39 | |
| 40 | - array_filter($tags, static function ($tag) { |
|
| 40 | + array_filter($tags, static function($tag) { |
|
| 41 | 41 | if (null === $tag || !\is_string($tag)) { |
| 42 | 42 | throw new InvalidArgumentException(sprintf('Invalid tag given')); |
| 43 | 43 | } |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | return []; |
| 72 | 72 | } |
| 73 | 73 | |
| 74 | - return array_map(static function ($data) { |
|
| 74 | + return array_map(static function($data) { |
|
| 75 | 75 | return Tag::fromApi($data); |
| 76 | 76 | }, $response['tags']['tag']); |
| 77 | 77 | } |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | return []; |
| 88 | 88 | } |
| 89 | 89 | |
| 90 | - return array_map(static function ($data) { |
|
| 90 | + return array_map(static function($data) { |
|
| 91 | 91 | return Tag::fromApi($data); |
| 92 | 92 | }, $response['toptags']['tag']); |
| 93 | 93 | } |
@@ -119,7 +119,7 @@ discard block |
||
| 119 | 119 | return []; |
| 120 | 120 | } |
| 121 | 121 | |
| 122 | - return array_map(static function ($data) { |
|
| 122 | + return array_map(static function($data) { |
|
| 123 | 123 | return Album::fromApi($data); |
| 124 | 124 | }, $response['results']['albummatches']['album']); |
| 125 | 125 | } |
@@ -68,7 +68,7 @@ |
||
| 68 | 68 | */ |
| 69 | 69 | public function autocorrect(bool $autocorrect): self |
| 70 | 70 | { |
| 71 | - $this->query['autocorrect'] = $autocorrect ? 1 : 0; |
|
| 71 | + $this->query['autocorrect'] = $autocorrect ? 1 : 0; |
|
| 72 | 72 | |
| 73 | 73 | return $this; |
| 74 | 74 | } |
@@ -68,7 +68,7 @@ |
||
| 68 | 68 | */ |
| 69 | 69 | public function autocorrect(bool $autocorrect): self |
| 70 | 70 | { |
| 71 | - $this->query['autocorrect'] = $autocorrect ? 1 : 0; |
|
| 71 | + $this->query['autocorrect'] = $autocorrect ? 1 : 0; |
|
| 72 | 72 | |
| 73 | 73 | return $this; |
| 74 | 74 | } |
@@ -68,7 +68,7 @@ |
||
| 68 | 68 | */ |
| 69 | 69 | public function autocorrect(bool $autocorrect): self |
| 70 | 70 | { |
| 71 | - $this->query['autocorrect'] = $autocorrect ? 1 : 0; |
|
| 71 | + $this->query['autocorrect'] = $autocorrect ? 1 : 0; |
|
| 72 | 72 | |
| 73 | 73 | return $this; |
| 74 | 74 | } |
@@ -68,7 +68,7 @@ |
||
| 68 | 68 | */ |
| 69 | 69 | public function autocorrect(bool $autocorrect): self |
| 70 | 70 | { |
| 71 | - $this->query['autocorrect'] = $autocorrect ? 1 : 0; |
|
| 71 | + $this->query['autocorrect'] = $autocorrect ? 1 : 0; |
|
| 72 | 72 | |
| 73 | 73 | return $this; |
| 74 | 74 | } |
@@ -68,7 +68,7 @@ |
||
| 68 | 68 | */ |
| 69 | 69 | public function autocorrect(bool $autocorrect): self |
| 70 | 70 | { |
| 71 | - $this->query['autocorrect'] = $autocorrect ? 1 : 0; |
|
| 71 | + $this->query['autocorrect'] = $autocorrect ? 1 : 0; |
|
| 72 | 72 | |
| 73 | 73 | return $this; |
| 74 | 74 | } |
@@ -68,7 +68,7 @@ |
||
| 68 | 68 | */ |
| 69 | 69 | public function autocorrect(bool $autocorrect): self |
| 70 | 70 | { |
| 71 | - $this->query['autocorrect'] = $autocorrect ? 1 : 0; |
|
| 71 | + $this->query['autocorrect'] = $autocorrect ? 1 : 0; |
|
| 72 | 72 | |
| 73 | 73 | return $this; |
| 74 | 74 | } |
@@ -68,7 +68,7 @@ |
||
| 68 | 68 | */ |
| 69 | 69 | public function autocorrect(bool $autocorrect): self |
| 70 | 70 | { |
| 71 | - $this->query['autocorrect'] = $autocorrect ? 1 : 0; |
|
| 71 | + $this->query['autocorrect'] = $autocorrect ? 1 : 0; |
|
| 72 | 72 | |
| 73 | 73 | return $this; |
| 74 | 74 | } |