Completed
Push — master ( 2d9858...85635b )
by Antonio Carlos
08:06 queued 16s
created
src/package/Services/Cache/Service.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
      * @param  null  $ttl
125 125
      * @return bool
126 126
      */
127
-    public function set(string $key, mixed $value, DateInterval|int|null $ttl = null): bool
127
+    public function set(string $key, mixed $value, DateInterval | int | null $ttl = null): bool
128 128
     {
129 129
         if ($this->enabled()) {
130 130
             return $this->manager->set($key, $value, $ttl);
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
      * @param  null  $default
162 162
      * @return array
163 163
      */
164
-    public function getMultiple(Traversable|array $keys, mixed $default = null): Traversable|array
164
+    public function getMultiple(Traversable | array $keys, mixed $default = null): Traversable | array
165 165
     {
166 166
         return $this->manager->getMultiple($keys, $default);
167 167
     }
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
      * @param  null  $ttl
174 174
      * @return bool
175 175
      */
176
-    public function setMultiple(Traversable|array $values, DateInterval|int|null $ttl = null): bool
176
+    public function setMultiple(Traversable | array $values, DateInterval | int | null $ttl = null): bool
177 177
     {
178 178
         return $this->manager->setMultiple($values, $ttl);
179 179
     }
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
      * @param $keys
185 185
      * @return bool|void
186 186
      */
187
-    public function deleteMultiple(Traversable|array $keys): bool
187
+    public function deleteMultiple(Traversable | array $keys): bool
188 188
     {
189 189
         return $this->manager->deleteMultiple($keys);
190 190
     }
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
      */
211 211
     public function remember($key, $minutes, Closure $callback)
212 212
     {
213
-        if (! \is_null($value = $this->manager->get($key))) {
213
+        if (!\is_null($value = $this->manager->get($key))) {
214 214
             return $value;
215 215
         }
216 216
 
Please login to merge, or discard this patch.
src/package/Services/Cache/Managers/Nette.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
         if (\is_null($this->dir)) {
66 66
             $this->dir = $this->config->cache->directory ?: sys_get_temp_dir().'/__PRAGMARX_COUNTRIES__/cache';
67 67
 
68
-            if (! file_exists($this->dir)) {
68
+            if (!file_exists($this->dir)) {
69 69
                 mkdir($this->dir, 0755, true);
70 70
             }
71 71
         }
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
      * @param  null  $ttl
120 120
      * @return bool
121 121
      */
122
-    public function set(string $key, mixed $value, null|int|\DateInterval $ttl = null): bool
122
+    public function set(string $key, mixed $value, null | int | \DateInterval $ttl = null): bool
123 123
     {
124 124
         if ($this->enabled()) {
125 125
             return $this->cache->save($key, $value, [NetteCache::EXPIRE => $this->makeExpiration($ttl)]);
@@ -156,9 +156,9 @@  discard block
 block discarded – undo
156 156
      * @param  null  $default
157 157
      * @return array
158 158
      */
159
-    public function getMultiple(Traversable|array $keys, mixed $default = null): iterable
159
+    public function getMultiple(Traversable | array $keys, mixed $default = null): iterable
160 160
     {
161
-        return coollect($keys)->map(function ($key) {
161
+        return coollect($keys)->map(function($key) {
162 162
             return $this->get($key);
163 163
         });
164 164
     }
@@ -170,9 +170,9 @@  discard block
 block discarded – undo
170 170
      * @param  null  $ttl
171 171
      * @return bool
172 172
      */
173
-    public function setMultiple(Traversable|array $values, DateInterval|int|null $ttl = null): bool
173
+    public function setMultiple(Traversable | array $values, DateInterval | int | null $ttl = null): bool
174 174
     {
175
-        coollect($values)->map(function ($value, $key) use ($ttl) {
175
+        coollect($values)->map(function($value, $key) use ($ttl) {
176 176
             return $this->set($key, $value, $ttl);
177 177
         });
178 178
         return true;
@@ -184,9 +184,9 @@  discard block
 block discarded – undo
184 184
      * @param $keys
185 185
      * @return bool
186 186
      */
187
-    public function deleteMultiple(Traversable|array $keys): bool
187
+    public function deleteMultiple(Traversable | array $keys): bool
188 188
     {
189
-        coollect($keys)->map(function ($key) {
189
+        coollect($keys)->map(function($key) {
190 190
             $this->forget($key);
191 191
         });
192 192
         return true;
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
      */
201 201
     public function has(string $key): bool
202 202
     {
203
-        return ! \is_null($this->get($key));
203
+        return !\is_null($this->get($key));
204 204
     }
205 205
 
206 206
     /**
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
     {
216 216
         $value = $this->get($key);
217 217
 
218
-        if (! \is_null($value)) {
218
+        if (!\is_null($value)) {
219 219
             return $value;
220 220
         }
221 221
 
Please login to merge, or discard this patch.