@@ -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 | } |
@@ -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 | } |
@@ -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 $this->mapToList(static function ($data) { |
|
74 | + return $this->mapToList(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 $this->mapToList(static function ($data) { |
|
90 | + return $this->mapToList(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 $this->mapToList(static function ($data) { |
|
122 | + return $this->mapToList(static function($data) { |
|
123 | 123 | return Album::fromApi($data); |
124 | 124 | }, $response['results']['albummatches']['album']); |
125 | 125 | } |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | return []; |
51 | 51 | } |
52 | 52 | |
53 | - return $this->mapToList(static function ($data) { |
|
53 | + return $this->mapToList(static function($data) { |
|
54 | 54 | return Tag::fromApi($data); |
55 | 55 | }, $response['similartags']['tag']); |
56 | 56 | } |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | return []; |
71 | 71 | } |
72 | 72 | |
73 | - return $this->mapToList(static function ($data) { |
|
73 | + return $this->mapToList(static function($data) { |
|
74 | 74 | return Album::fromApi($data); |
75 | 75 | }, $response['albums']['album']); |
76 | 76 | } |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | return []; |
91 | 91 | } |
92 | 92 | |
93 | - return $this->mapToList(static function ($data) { |
|
93 | + return $this->mapToList(static function($data) { |
|
94 | 94 | return Artist::fromApi($data); |
95 | 95 | }, $response['topartists']['artist']); |
96 | 96 | } |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | return []; |
107 | 107 | } |
108 | 108 | |
109 | - return $this->mapToList(static function ($data) { |
|
109 | + return $this->mapToList(static function($data) { |
|
110 | 110 | return Tag::fromApi($data); |
111 | 111 | }, $response['toptags']['tag']); |
112 | 112 | } |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | return []; |
127 | 127 | } |
128 | 128 | |
129 | - return $this->mapToList(static function ($data) { |
|
129 | + return $this->mapToList(static function($data) { |
|
130 | 130 | return Song::fromApi($data); |
131 | 131 | }, $response['tracks']['track']); |
132 | 132 | } |
@@ -144,7 +144,7 @@ discard block |
||
144 | 144 | return []; |
145 | 145 | } |
146 | 146 | |
147 | - return $this->mapToList(static function ($data) { |
|
147 | + return $this->mapToList(static function($data) { |
|
148 | 148 | return Chart::fromApi($data); |
149 | 149 | }, $response['weeklychartlist']['chart']); |
150 | 150 | } |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | return []; |
32 | 32 | } |
33 | 33 | |
34 | - return $this->mapToList(static function ($data) { |
|
34 | + return $this->mapToList(static function($data) { |
|
35 | 35 | return ArtistInfo::fromApi($data); |
36 | 36 | }, $response['artists']['artist']); |
37 | 37 | } |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | return []; |
51 | 51 | } |
52 | 52 | |
53 | - return $this->mapToList(static function ($data) { |
|
53 | + return $this->mapToList(static function($data) { |
|
54 | 54 | return Tag::fromApi($data); |
55 | 55 | }, $response['tags']['tag']); |
56 | 56 | } |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | return []; |
70 | 70 | } |
71 | 71 | |
72 | - return $this->mapToList(static function ($data) { |
|
72 | + return $this->mapToList(static function($data) { |
|
73 | 73 | return Song::fromApi($data); |
74 | 74 | }, $response['tracks']['track']); |
75 | 75 | } |