@@ -65,101 +65,101 @@ discard block |
||
65 | 65 | /** |
66 | 66 | * Specify if the item must provide detailed creation/modification dates |
67 | 67 | */ |
68 | - 'itemDetailedDate' => false, |
|
68 | + 'itemDetailedDate' => false, |
|
69 | 69 | |
70 | 70 | /** |
71 | 71 | * Automatically attempt to fallback to temporary directory |
72 | 72 | * if the cache fails to write on the specified directory |
73 | 73 | */ |
74 | - 'autoTmpFallback' => false, |
|
74 | + 'autoTmpFallback' => false, |
|
75 | 75 | |
76 | 76 | /** |
77 | 77 | * Provide a secure file manipulation mechanism, |
78 | 78 | * on intensive usage the performance can be affected. |
79 | 79 | */ |
80 | - 'secureFileManipulation' => false, |
|
80 | + 'secureFileManipulation' => false, |
|
81 | 81 | |
82 | 82 | /** |
83 | 83 | * Ignore Symfony notice for Symfony project which |
84 | 84 | * do not makes use of PhpFastCache's Symfony Bundle |
85 | 85 | */ |
86 | - 'ignoreSymfonyNotice' => false, |
|
86 | + 'ignoreSymfonyNotice' => false, |
|
87 | 87 | |
88 | 88 | /** |
89 | 89 | * Default time-to-live in second |
90 | 90 | */ |
91 | - 'defaultTtl' => 900, |
|
91 | + 'defaultTtl' => 900, |
|
92 | 92 | |
93 | 93 | /** |
94 | 94 | * Default key hash function |
95 | 95 | * (md5 by default) |
96 | 96 | */ |
97 | - 'defaultKeyHashFunction' => '', |
|
97 | + 'defaultKeyHashFunction' => '', |
|
98 | 98 | |
99 | 99 | /** |
100 | 100 | * The securityKey that will be used |
101 | 101 | * to create sub-directory |
102 | 102 | * (Files-based drivers only) |
103 | 103 | */ |
104 | - 'securityKey' => 'Auto', |
|
104 | + 'securityKey' => 'Auto', |
|
105 | 105 | |
106 | 106 | /** |
107 | 107 | * Auto-generate .htaccess if it's missing |
108 | 108 | * (Files-based drivers only) |
109 | 109 | */ |
110 | - 'htaccess' => true, |
|
110 | + 'htaccess' => true, |
|
111 | 111 | |
112 | 112 | /** |
113 | 113 | * Default files chmod |
114 | 114 | * 0777 recommended |
115 | 115 | * (Files-based drivers only) |
116 | 116 | */ |
117 | - 'default_chmod' => 0777, |
|
117 | + 'default_chmod' => 0777, |
|
118 | 118 | |
119 | 119 | /** |
120 | 120 | * The path where we will writecache files |
121 | 121 | * default value if empty: sys_get_temp_dir() |
122 | 122 | * (Files-based drivers only) |
123 | 123 | */ |
124 | - 'path' => '', |
|
124 | + 'path' => '', |
|
125 | 125 | |
126 | 126 | /** |
127 | 127 | * Driver fallback in case of failure. |
128 | 128 | * Caution, in case of failure an E_WARNING |
129 | 129 | * error will always be raised |
130 | 130 | */ |
131 | - 'fallback' => false, |
|
131 | + 'fallback' => false, |
|
132 | 132 | |
133 | 133 | /** |
134 | 134 | * Maximum size (bytes) of object store in memory |
135 | 135 | * (Memcache(d) drivers only) |
136 | 136 | */ |
137 | - 'limited_memory_each_object' => 4096, |
|
137 | + 'limited_memory_each_object' => 4096, |
|
138 | 138 | |
139 | 139 | /** |
140 | 140 | * Compress stored data, if the backend supports it |
141 | 141 | * (Memcache(d) drivers only) |
142 | 142 | */ |
143 | - 'compress_data' => false, |
|
143 | + 'compress_data' => false, |
|
144 | 144 | |
145 | 145 | /** |
146 | 146 | * Prevent cache slams when |
147 | 147 | * making use of heavy cache |
148 | 148 | * items |
149 | 149 | */ |
150 | - 'preventCacheSlams' => false, |
|
150 | + 'preventCacheSlams' => false, |
|
151 | 151 | |
152 | 152 | /** |
153 | 153 | * Cache slams timeout |
154 | 154 | * in seconds |
155 | 155 | */ |
156 | - 'cacheSlamsTimeout' => 15, |
|
156 | + 'cacheSlamsTimeout' => 15, |
|
157 | 157 | |
158 | 158 | /** |
159 | 159 | * Cache slams timeout |
160 | 160 | * in seconds |
161 | 161 | */ |
162 | - 'cacheFileExtension' => 'txt', |
|
162 | + 'cacheFileExtension' => 'txt', |
|
163 | 163 | |
164 | 164 | ]; |
165 | 165 | |
@@ -169,10 +169,10 @@ discard block |
||
169 | 169 | * @var array |
170 | 170 | */ |
171 | 171 | protected static $safeFileExtensions = [ |
172 | - 'txt', |
|
173 | - 'cache', |
|
174 | - 'db', |
|
175 | - 'pfc', |
|
172 | + 'txt', |
|
173 | + 'cache', |
|
174 | + 'db', |
|
175 | + 'pfc', |
|
176 | 176 | ]; |
177 | 177 | |
178 | 178 | /** |
@@ -211,7 +211,7 @@ discard block |
||
211 | 211 | $badPracticeOmeter[ $driver ] = 1; |
212 | 212 | if (!$config[ 'ignoreSymfonyNotice' ] && interface_exists('Symfony\Component\HttpKernel\KernelInterface') && !class_exists('phpFastCache\Bundle\phpFastCacheBundle')) { |
213 | 213 | trigger_error('A Symfony Bundle to make the PhpFastCache integration more easier is now available here: https://github.com/PHPSocialNetwork/phpfastcache-bundle', |
214 | - E_USER_NOTICE); |
|
214 | + E_USER_NOTICE); |
|
215 | 215 | } |
216 | 216 | $class = self::getNamespacePath() . $driver . '\Driver'; |
217 | 217 | try { |
@@ -226,7 +226,7 @@ discard block |
||
226 | 226 | self::$instances[ $instance ] = new $class($config); |
227 | 227 | self::$instances[ $instance ]->setEventManager(EventManager::getInstance()); |
228 | 228 | trigger_error(sprintf('The "%s" driver is unavailable at the moment, the fallback driver "%s" has been used instead.', $driver, |
229 | - $fallback), E_USER_WARNING); |
|
229 | + $fallback), E_USER_WARNING); |
|
230 | 230 | } else { |
231 | 231 | throw new phpFastCacheInvalidConfigurationException('The fallback driver cannot be the same than the default driver', 0, $e); |
232 | 232 | } |
@@ -379,26 +379,26 @@ discard block |
||
379 | 379 | public static function getStaticSystemDrivers() |
380 | 380 | { |
381 | 381 | return [ |
382 | - 'Apc', |
|
383 | - 'Apcu', |
|
384 | - 'Cassandra', |
|
385 | - 'Couchbase', |
|
386 | - 'Couchdb', |
|
387 | - 'Devnull', |
|
388 | - 'Files', |
|
389 | - 'Leveldb', |
|
390 | - 'Memcache', |
|
391 | - 'Memcached', |
|
392 | - 'Memstatic', |
|
393 | - 'Mongodb', |
|
394 | - 'Predis', |
|
395 | - 'Redis', |
|
396 | - 'Ssdb', |
|
397 | - 'Sqlite', |
|
398 | - 'Wincache', |
|
399 | - 'Xcache', |
|
400 | - 'Zenddisk', |
|
401 | - 'Zendshm', |
|
382 | + 'Apc', |
|
383 | + 'Apcu', |
|
384 | + 'Cassandra', |
|
385 | + 'Couchbase', |
|
386 | + 'Couchdb', |
|
387 | + 'Devnull', |
|
388 | + 'Files', |
|
389 | + 'Leveldb', |
|
390 | + 'Memcache', |
|
391 | + 'Memcached', |
|
392 | + 'Memstatic', |
|
393 | + 'Mongodb', |
|
394 | + 'Predis', |
|
395 | + 'Redis', |
|
396 | + 'Ssdb', |
|
397 | + 'Sqlite', |
|
398 | + 'Wincache', |
|
399 | + 'Xcache', |
|
400 | + 'Zenddisk', |
|
401 | + 'Zendshm', |
|
402 | 402 | ]; |
403 | 403 | } |
404 | 404 | |
@@ -408,9 +408,9 @@ discard block |
||
408 | 408 | public static function getStaticAllDrivers() |
409 | 409 | { |
410 | 410 | return array_merge(self::getStaticSystemDrivers(), [ |
411 | - 'Devtrue', |
|
412 | - 'Devfalse', |
|
413 | - 'Cookie', |
|
411 | + 'Devtrue', |
|
412 | + 'Devfalse', |
|
413 | + 'Cookie', |
|
414 | 414 | ]); |
415 | 415 | } |
416 | 416 |