Passed
Pull Request — main (#57)
by Sílvio
03:15
created
src/Helpers/CacheRedisHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
   */
23 23
   public static function serialize(mixed $data, bool $serialize = true): mixed
24 24
   {
25
-    if($serialize) {
25
+    if ($serialize) {
26 26
       return serialize($data);
27 27
     }
28 28
 
Please login to merge, or discard this patch.
src/Service/CacheMutator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     * @param int|string $ttl
37 37
     * @return bool
38 38
     */
39
-    public function add(string $cacheKey, mixed $cacheData, string $namespace = '', int|string $ttl = 3600): bool
39
+    public function add(string $cacheKey, mixed $cacheData, string $namespace = '', int | string $ttl = 3600): bool
40 40
     {
41 41
         if (!empty($this->cacheer->getCache($cacheKey, $namespace))) {
42 42
             return true;
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
      * @param int|string $ttl
151 151
      * @return bool
152 152
      */
153
-    public function putCache(string $cacheKey, mixed $cacheData, string $namespace = '', int|string $ttl = 3600): bool
153
+    public function putCache(string $cacheKey, mixed $cacheData, string $namespace = '', int | string $ttl = 3600): bool
154 154
     {
155 155
         $data = CacheerHelper::prepareForStorage($cacheData, $this->cacheer->isCompressionEnabled(), $this->cacheer->getEncryptionKey());
156 156
         $this->cacheer->cacheStore->putCache($cacheKey, $data, $namespace, $ttl);
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
     * @param string $namespace
184 184
     * @return bool
185 185
     */
186
-    public function renewCache(string $cacheKey, int|string $ttl = 3600, string $namespace = ''): bool
186
+    public function renewCache(string $cacheKey, int | string $ttl = 3600, string $namespace = ''): bool
187 187
     {
188 188
         $this->cacheer->cacheStore->renewCache($cacheKey, $ttl, $namespace);
189 189
         $this->cacheer->syncState();
Please login to merge, or discard this patch.
src/Cacheer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@
 block discarded – undo
90 90
     /**
91 91
     * @var FileCacheStore|DatabaseCacheStore|RedisCacheStore|ArrayCacheStore
92 92
     */
93
-    public RedisCacheStore|DatabaseCacheStore|ArrayCacheStore|FileCacheStore $cacheStore;
93
+    public RedisCacheStore | DatabaseCacheStore | ArrayCacheStore | FileCacheStore $cacheStore;
94 94
 
95 95
     /**
96 96
     * @var array
Please login to merge, or discard this patch.