@@ -100,9 +100,9 @@ |
||
| 100 | 100 | /** |
| 101 | 101 | * Cache the api response data if cache set to true in config file. |
| 102 | 102 | * |
| 103 | - * @param string $urlSuffix API URL method |
|
| 104 | 103 | * @param array $options Options |
| 105 | 104 | * @param string $method method name |
| 105 | + * @param string $apiEndPoint |
|
| 106 | 106 | * @return Collection / GuzzleHttp\Exception\ClientException |
| 107 | 107 | */ |
| 108 | 108 | public function cache($apiEndPoint, array $options, $method) |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace Xklusive\BattlenetApi; |
| 4 | 4 | |
| 5 | 5 | use GuzzleHttp\Client; |
| 6 | -use GuzzleHttp\Psr7\Response; |
|
| 7 | 6 | use Illuminate\Contracts\Cache\Repository; |
| 8 | 7 | |
| 9 | 8 | /** |
@@ -108,7 +108,7 @@ |
||
| 108 | 108 | return $this->cache->remember( |
| 109 | 109 | $uniqCacheKey, |
| 110 | 110 | $this->getCacheDuration(), |
| 111 | - function () { |
|
| 111 | + function() { |
|
| 112 | 112 | return $this->api(); |
| 113 | 113 | } |
| 114 | 114 | ); |
@@ -541,7 +541,7 @@ |
||
| 541 | 541 | * |
| 542 | 542 | * @param array $options Options |
| 543 | 543 | * |
| 544 | - * @return Illuminate\Support\Collection api response |
|
| 544 | + * @return null|\Xklusive\BattlenetApi\Collection api response |
|
| 545 | 545 | */ |
| 546 | 546 | public function getProfileCharacters(array $options = []) |
| 547 | 547 | { |