@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | /** @var string slug */ |
21 | 21 | const SLUG_PREFIX = '-phile.phpFastCache.slug-'; |
22 | 22 | |
23 | - const SLUG = ['{', '}' , '(', ')', '/' , '\\' , '@', ':']; |
|
23 | + const SLUG = ['{', '}', '(', ')', '/', '\\', '@', ':']; |
|
24 | 24 | |
25 | 25 | /** |
26 | 26 | * @var \BasePhpFastCache the cache engine |
@@ -117,13 +117,13 @@ discard block |
||
117 | 117 | */ |
118 | 118 | protected function slug($key) |
119 | 119 | { |
120 | - $replacer = function ($character) { |
|
120 | + $replacer = function($character) { |
|
121 | 121 | $key = array_search($character[0], self::SLUG); |
122 | 122 | $replacement = self::SLUG_PREFIX . $key; |
123 | 123 | return $replacement; |
124 | 124 | }; |
125 | 125 | $search = array_map( |
126 | - function ($value) { |
|
126 | + function($value) { |
|
127 | 127 | return preg_quote($value); |
128 | 128 | }, |
129 | 129 | self::SLUG |