@@ -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 | } |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | */ |
57 | 57 | public function autocorrect(bool $autocorrect): self |
58 | 58 | { |
59 | - $this->query['autocorrect'] = $autocorrect ? 1 : 0; |
|
59 | + $this->query['autocorrect'] = $autocorrect ? 1 : 0; |
|
60 | 60 | |
61 | 61 | return $this; |
62 | 62 | } |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | */ |
81 | 81 | public function forUsername(string $name): self |
82 | 82 | { |
83 | - $this->query['username'] = $name; |
|
83 | + $this->query['username'] = $name; |
|
84 | 84 | |
85 | 85 | return $this; |
86 | 86 | } |
@@ -112,7 +112,7 @@ |
||
112 | 112 | */ |
113 | 113 | private function filterNull(array $object): array |
114 | 114 | { |
115 | - return array_filter($object, static function ($val) { |
|
115 | + return array_filter($object, static function($val) { |
|
116 | 116 | return null !== $val; |
117 | 117 | }); |
118 | 118 | } |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | throw new InvalidArgumentException('A maximum of 10 tags is allowed'); |
53 | 53 | } |
54 | 54 | |
55 | - array_filter($tags, static function ($tag) { |
|
55 | + array_filter($tags, static function($tag) { |
|
56 | 56 | if (null === $tag || !\is_string($tag)) { |
57 | 57 | throw new InvalidArgumentException(sprintf('Invalid tag given')); |
58 | 58 | } |
@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | } |
88 | 88 | |
89 | 89 | return ApiHelper::mapList( |
90 | - static function ($data) { |
|
90 | + static function($data) { |
|
91 | 91 | return Tag::fromApi($data); |
92 | 92 | }, |
93 | 93 | $response['tags']['tag'] |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | } |
107 | 107 | |
108 | 108 | return ApiHelper::mapList( |
109 | - static function ($data) { |
|
109 | + static function($data) { |
|
110 | 110 | return Tag::fromApi($data); |
111 | 111 | }, |
112 | 112 | $response['toptags']['tag'] |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | } |
142 | 142 | |
143 | 143 | return ApiHelper::mapList( |
144 | - static function ($data) { |
|
144 | + static function($data) { |
|
145 | 145 | return Album::fromApi($data); |
146 | 146 | }, |
147 | 147 | $response['results']['albummatches']['album'] |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | } |
48 | 48 | |
49 | 49 | return ApiHelper::mapList( |
50 | - static function ($data) { |
|
50 | + static function($data) { |
|
51 | 51 | return ArtistInfo::fromApi($data); |
52 | 52 | }, |
53 | 53 | $response['artists']['artist'] |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | } |
70 | 70 | |
71 | 71 | return ApiHelper::mapList( |
72 | - static function ($data) { |
|
72 | + static function($data) { |
|
73 | 73 | return Tag::fromApi($data); |
74 | 74 | }, |
75 | 75 | $response['tags']['tag'] |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | } |
92 | 92 | |
93 | 93 | return ApiHelper::mapList( |
94 | - static function ($data) { |
|
94 | + static function($data) { |
|
95 | 95 | return Song::fromApi($data); |
96 | 96 | }, |
97 | 97 | $response['tracks']['track'] |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | } |
67 | 67 | |
68 | 68 | return ApiHelper::mapList( |
69 | - static function ($data) { |
|
69 | + static function($data) { |
|
70 | 70 | return Tag::fromApi($data); |
71 | 71 | }, |
72 | 72 | $response['similartags']['tag'] |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | } |
90 | 90 | |
91 | 91 | return ApiHelper::mapList( |
92 | - static function ($data) { |
|
92 | + static function($data) { |
|
93 | 93 | return Album::fromApi($data); |
94 | 94 | }, |
95 | 95 | $response['albums']['album'] |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | } |
113 | 113 | |
114 | 114 | return ApiHelper::mapList( |
115 | - static function ($data) { |
|
115 | + static function($data) { |
|
116 | 116 | return Artist::fromApi($data); |
117 | 117 | }, |
118 | 118 | $response['topartists']['artist'] |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | } |
132 | 132 | |
133 | 133 | return ApiHelper::mapList( |
134 | - static function ($data) { |
|
134 | + static function($data) { |
|
135 | 135 | return Tag::fromApi($data); |
136 | 136 | }, |
137 | 137 | $response['toptags']['tag'] |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | } |
155 | 155 | |
156 | 156 | return ApiHelper::mapList( |
157 | - static function ($data) { |
|
157 | + static function($data) { |
|
158 | 158 | return Song::fromApi($data); |
159 | 159 | }, |
160 | 160 | $response['tracks']['track'] |
@@ -175,7 +175,7 @@ discard block |
||
175 | 175 | } |
176 | 176 | |
177 | 177 | return ApiHelper::mapList( |
178 | - static function ($data) { |
|
178 | + static function($data) { |
|
179 | 179 | return Chart::fromApi($data); |
180 | 180 | }, |
181 | 181 | $response['weeklychartlist']['chart'] |
@@ -46,7 +46,7 @@ |
||
46 | 46 | } |
47 | 47 | |
48 | 48 | return ApiHelper::mapList( |
49 | - static function ($data) { |
|
49 | + static function($data) { |
|
50 | 50 | return ArtistInfo::fromApi($data); |
51 | 51 | }, |
52 | 52 | $response['artists']['artist'] |