@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | /** |
| 72 | 72 | * Check if cache is enabled. |
| 73 | 73 | * |
| 74 | - * @return bool |
|
| 74 | + * @return \PragmaRX\Coollection\Package\Coollection |
|
| 75 | 75 | */ |
| 76 | 76 | protected function enabled() |
| 77 | 77 | { |
@@ -132,7 +132,7 @@ discard block |
||
| 132 | 132 | * Delete an item from the cache by its unique key. |
| 133 | 133 | * |
| 134 | 134 | * @param string $key |
| 135 | - * @return bool |
|
| 135 | + * @return boolean|null |
|
| 136 | 136 | */ |
| 137 | 137 | public function delete($key) |
| 138 | 138 | { |
@@ -197,7 +197,7 @@ discard block |
||
| 197 | 197 | * Get an item from the cache, or store the default value. |
| 198 | 198 | * |
| 199 | 199 | * @param string $key |
| 200 | - * @param \DateTimeInterface|\DateInterval|float|int $minutes |
|
| 200 | + * @param integer $minutes |
|
| 201 | 201 | * @param Closure $callback |
| 202 | 202 | * @return mixed |
| 203 | 203 | */ |
@@ -203,7 +203,7 @@ |
||
| 203 | 203 | */ |
| 204 | 204 | public function remember($key, $minutes, Closure $callback) |
| 205 | 205 | { |
| 206 | - if (! is_null($value = $this->manager->get($key))) { |
|
| 206 | + if (!is_null($value = $this->manager->get($key))) { |
|
| 207 | 207 | return $value; |
| 208 | 208 | } |
| 209 | 209 | |
@@ -3,9 +3,9 @@ |
||
| 3 | 3 | namespace PragmaRX\Countries\Package\Services\Cache; |
| 4 | 4 | |
| 5 | 5 | use Closure; |
| 6 | -use Psr\SimpleCache\CacheInterface; |
|
| 7 | -use PragmaRX\Countries\Package\Services\Config; |
|
| 8 | 6 | use PragmaRX\Countries\Package\Services\Cache\Managers\Nette as NetteManager; |
| 7 | +use PragmaRX\Countries\Package\Services\Config; |
|
| 8 | +use Psr\SimpleCache\CacheInterface; |
|
| 9 | 9 | |
| 10 | 10 | class Service implements CacheInterface |
| 11 | 11 | { |