@@ -116,7 +116,7 @@ |
||
| 116 | 116 | protected function request($url) |
| 117 | 117 | { |
| 118 | 118 | $response = $this->getHttpClient() |
| 119 | - ->request('GET', $url, ['headers' => ['authorization' => 'Bearer ' . $this->getToken()]]); |
|
| 119 | + ->request('GET', $url, ['headers' => ['authorization' => 'Bearer ' . $this->getToken()]]); |
|
| 120 | 120 | |
| 121 | 121 | return ResponseMediator::convertResponseToArray($response); |
| 122 | 122 | } |
@@ -5,15 +5,14 @@ |
||
| 5 | 5 | use ClashOfClans\Api\AbstractResource; |
| 6 | 6 | |
| 7 | 7 | /** |
| 8 | - |
|
| 9 | 8 | */ |
| 10 | 9 | class AchievementList extends AbstractResource |
| 11 | 10 | { |
| 12 | - protected $casts = [ |
|
| 13 | - 'all' => Achievement::class |
|
| 14 | - ]; |
|
| 11 | + protected $casts = [ |
|
| 12 | + 'all' => Achievement::class |
|
| 13 | + ]; |
|
| 15 | 14 | |
| 16 | - /** |
|
| 15 | + /** |
|
| 17 | 16 | * @return array |
| 18 | 17 | */ |
| 19 | 18 | public function all() |
@@ -13,11 +13,11 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | class PlayerItemLevelList extends AbstractResource |
| 15 | 15 | { |
| 16 | - protected $casts = [ |
|
| 17 | - 'all' => PlayerItemLevel::class |
|
| 18 | - ]; |
|
| 16 | + protected $casts = [ |
|
| 17 | + 'all' => PlayerItemLevel::class |
|
| 18 | + ]; |
|
| 19 | 19 | |
| 20 | - /** |
|
| 20 | + /** |
|
| 21 | 21 | * @return array |
| 22 | 22 | */ |
| 23 | 23 | public function all() |
@@ -25,7 +25,6 @@ discard block |
||
| 25 | 25 | * @method PlayerItemLevelList troops() |
| 26 | 26 | * @method PlayerItemLevelList heroes() |
| 27 | 27 | * @method PlayerItemLevelList spells() |
| 28 | - |
|
| 29 | 28 | */ |
| 30 | 29 | /* |
| 31 | 30 | "legendStatistics": { |
@@ -56,7 +55,7 @@ discard block |
||
| 56 | 55 | 'spells' => PlayerItemLevelList::class, |
| 57 | 56 | 'heroes' => PlayerItemLevelList::class, |
| 58 | 57 | 'troops' => PlayerItemLevelList::class, |
| 59 | - 'achievements' => AchievementList::class |
|
| 58 | + 'achievements' => AchievementList::class |
|
| 60 | 59 | ]; |
| 61 | 60 | |
| 62 | 61 | } |