Passed
Push — main ( 7c2b5d...a879dc )
by Dimitri
02:51
created
Handlers/File.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -47,14 +47,14 @@  discard block
 block discarded – undo
47 47
      * @var array<string, mixed>
48 48
      */
49 49
     protected array $_defaultConfig = [
50
-		'duration'  => 3600,
51
-		'groups'    => [],
52
-		'lock'      => true,
53
-		'mask'      => 0o664,
54
-		'dirMask'   => 0770,
55
-		'path'      => null,
56
-		'prefix'    => 'blitz_',
57
-		'serialize' => true,
50
+  'duration'  => 3600,
51
+  'groups'    => [],
52
+  'lock'      => true,
53
+  'mask'      => 0o664,
54
+  'dirMask'   => 0770,
55
+  'path'      => null,
56
+  'prefix'    => 'blitz_',
57
+  'serialize' => true,
58 58
     ];
59 59
 
60 60
     /**
@@ -438,7 +438,7 @@  discard block
 block discarded – undo
438 438
         );
439 439
 
440 440
         foreach ($filtered as $object) {
441
-			/** @var \SplFileInfo $object */
441
+   /** @var \SplFileInfo $object */
442 442
             $path = $object->getPathname();
443 443
             unset($object);
444 444
             // phpcs:ignore
Please login to merge, or discard this patch.
Handlers/BaseHandler.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -240,7 +240,7 @@
 block discarded – undo
240 240
     {
241 241
         $this->ensureValidType($values, self::CHECK_KEY);
242 242
 
243
-		$restore = null;
243
+  $restore = null;
244 244
         if ($ttl !== null) {
245 245
             $restore = $this->getConfig('duration');
246 246
             $this->setConfig('duration', $ttl);
Please login to merge, or discard this patch.
Handlers/RedisHandler.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -272,7 +272,7 @@
 block discarded – undo
272 272
      */
273 273
     public function clear(): bool
274 274
     {
275
-		 if ($this->getConfig('clearUsesFlushDb')) {
275
+   if ($this->getConfig('clearUsesFlushDb')) {
276 276
             $this->_Redis->flushDB(false);
277 277
 
278 278
             return true;
Please login to merge, or discard this patch.
Handlers/ArrayHandler.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
         if ($this->get($key) === null) {
89 89
             $this->set($key, 0);
90 90
 
91
-			return 0;
91
+   return 0;
92 92
         }
93 93
 
94 94
         $key = $this->_key($key);
Please login to merge, or discard this patch.
Handlers/Memcached.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -334,7 +334,7 @@
 block discarded – undo
334 334
             return array_fill_keys(array_keys($cacheKeys), $default);
335 335
         }
336 336
 
337
-		$return = [];
337
+  $return = [];
338 338
         foreach ($cacheKeys as $original => $prefixed) {
339 339
             $return[$original] = $values[$prefixed] ?? $default;
340 340
         }
Please login to merge, or discard this patch.
ResponseCache.php 1 patch
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -57,18 +57,18 @@  discard block
 block discarded – undo
57 57
     {
58 58
         $uri = $request->getUri();
59 59
 
60
-		$query = '';
61
-		if ($this->cacheQueryString !== false) {
62
-			parse_str($uri->getQuery(), $queryParams);
63
-
64
-			if (is_array($this->cacheQueryString)) {
65
-				// Filtrer seulement les paramètres spécifiés
66
-				$queryParams = array_intersect_key($queryParams, array_flip($this->cacheQueryString));
67
-			}
68
-			// Trier pour garantir l'ordre et éviter les doublons avec paramètres dans un ordre différent
69
-			ksort($queryParams);
70
-			$query = http_build_query($queryParams);
71
-		}
60
+  $query = '';
61
+  if ($this->cacheQueryString !== false) {
62
+   parse_str($uri->getQuery(), $queryParams);
63
+
64
+   if (is_array($this->cacheQueryString)) {
65
+    // Filtrer seulement les paramètres spécifiés
66
+    $queryParams = array_intersect_key($queryParams, array_flip($this->cacheQueryString));
67
+   }
68
+   // Trier pour garantir l'ordre et éviter les doublons avec paramètres dans un ordre différent
69
+   ksort($queryParams);
70
+   $query = http_build_query($queryParams);
71
+  }
72 72
 
73 73
         return md5($uri->withFragment('')->withQuery($query));
74 74
     }
@@ -102,19 +102,19 @@  discard block
 block discarded – undo
102 102
     {
103 103
         if ($cachedResponse = $this->cache->get($this->generateCacheKey($request))) {
104 104
             if (!is_string($cachedResponse)) {
105
-				throw new Exception('Données de cache corrompues');
106
-			}
105
+    throw new Exception('Données de cache corrompues');
106
+   }
107 107
 
108
-			$cachedResponse = unserialize($cachedResponse, ['allowed_classes' => false]);
108
+   $cachedResponse = unserialize($cachedResponse, ['allowed_classes' => false]);
109 109
 
110
-			if (!is_array($cachedResponse) || !isset($cachedResponse['output'], $cachedResponse['headers'])) {
111
-				throw new Exception('Structure de cache invalide');
112
-			}
110
+   if (!is_array($cachedResponse) || !isset($cachedResponse['output'], $cachedResponse['headers'])) {
111
+    throw new Exception('Structure de cache invalide');
112
+   }
113 113
 
114
-			// Validation des headers
115
-			if (!is_array($cachedResponse['headers'])) {
116
-				throw new Exception('Headers de cache invalides');
117
-			}
114
+   // Validation des headers
115
+   if (!is_array($cachedResponse['headers'])) {
116
+    throw new Exception('Headers de cache invalides');
117
+   }
118 118
 
119 119
             $headers = $cachedResponse['headers'];
120 120
             $output  = $cachedResponse['output'];
Please login to merge, or discard this patch.