Completed
Pull Request — master (#110)
by Sang
05:54
created
src/package/Services/Cache/Service.php 3 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
      */
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -203,7 +203,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Unused Use Statements   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3,9 +3,9 @@
 block discarded – undo
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
 {
Please login to merge, or discard this patch.