@@ -62,82 +62,82 @@ discard block |
||
62 | 62 | /** |
63 | 63 | * Specify if the item must provide detailed creation/modification dates |
64 | 64 | */ |
65 | - 'itemDetailedDate' => false, |
|
65 | + 'itemDetailedDate' => false, |
|
66 | 66 | |
67 | 67 | /** |
68 | 68 | * Automatically attempt to fallback to temporary directory |
69 | 69 | * if the cache fails to write on the specified directory |
70 | 70 | */ |
71 | - 'autoTmpFallback' => false, |
|
71 | + 'autoTmpFallback' => false, |
|
72 | 72 | |
73 | 73 | /** |
74 | 74 | * Provide a secure file manipulation mechanism |
75 | 75 | * on intensive usage the performance can be affected. |
76 | 76 | */ |
77 | - 'secureFileManipulation' => false, |
|
77 | + 'secureFileManipulation' => false, |
|
78 | 78 | |
79 | 79 | /** |
80 | 80 | * Ignore Symfony notice for Symfony project which |
81 | 81 | * do not makes use of PhpFastCache's Symfony Bundle |
82 | 82 | */ |
83 | - 'ignoreSymfonyNotice' => false, |
|
83 | + 'ignoreSymfonyNotice' => false, |
|
84 | 84 | |
85 | 85 | /** |
86 | 86 | * Default time-to-live in second |
87 | 87 | */ |
88 | - 'defaultTtl' => 900, |
|
88 | + 'defaultTtl' => 900, |
|
89 | 89 | |
90 | 90 | /** |
91 | 91 | * Default key hash function |
92 | 92 | * (md5 by default) |
93 | 93 | */ |
94 | - 'defaultKeyHashFunction' => '', |
|
94 | + 'defaultKeyHashFunction' => '', |
|
95 | 95 | |
96 | 96 | /** |
97 | 97 | * The securityKey that will be used |
98 | 98 | * to create sub-directory |
99 | 99 | * (Files-based drivers only) |
100 | 100 | */ |
101 | - 'securityKey' => 'auto', |
|
101 | + 'securityKey' => 'auto', |
|
102 | 102 | |
103 | 103 | /** |
104 | 104 | * Auto-generate .htaccess if it's missing |
105 | 105 | * (Files-based drivers only) |
106 | 106 | */ |
107 | - 'htaccess' => true, |
|
107 | + 'htaccess' => true, |
|
108 | 108 | |
109 | 109 | /** |
110 | 110 | * Default files chmod |
111 | 111 | * 0777 recommended |
112 | 112 | * (Files-based drivers only) |
113 | 113 | */ |
114 | - 'default_chmod' => 0777, |
|
114 | + 'default_chmod' => 0777, |
|
115 | 115 | |
116 | 116 | /** |
117 | 117 | * The path where we will writecache files |
118 | 118 | * default value if empty: sys_get_temp_dir() |
119 | 119 | * (Files-based drivers only) |
120 | 120 | */ |
121 | - 'path' => '', |
|
121 | + 'path' => '', |
|
122 | 122 | |
123 | 123 | /** |
124 | 124 | * Driver fallback in case of failure. |
125 | 125 | * Caution, in case of failure an E_WARNING |
126 | 126 | * error will always be raised |
127 | 127 | */ |
128 | - 'fallback' => false, |
|
128 | + 'fallback' => false, |
|
129 | 129 | |
130 | 130 | /** |
131 | 131 | * Maximum size (bytes) of object store in memory |
132 | 132 | * (Memcache(d) drivers only) |
133 | 133 | */ |
134 | - 'limited_memory_each_object' => 4096, |
|
134 | + 'limited_memory_each_object' => 4096, |
|
135 | 135 | |
136 | 136 | /** |
137 | 137 | * Compress stored data, if the backend supports it |
138 | 138 | * (Memcache(d) drivers only) |
139 | 139 | */ |
140 | - 'compress_data' => false, |
|
140 | + 'compress_data' => false, |
|
141 | 141 | ]; |
142 | 142 | |
143 | 143 | /** |
@@ -319,24 +319,24 @@ discard block |
||
319 | 319 | public static function getStaticSystemDrivers() |
320 | 320 | { |
321 | 321 | return [ |
322 | - 'Apc', |
|
323 | - 'Apcu', |
|
324 | - 'Cassandra', |
|
325 | - 'Couchbase', |
|
326 | - 'Couchdb', |
|
327 | - 'Devnull', |
|
328 | - 'Files', |
|
329 | - 'Leveldb', |
|
330 | - 'Memcache', |
|
331 | - 'Memcached', |
|
332 | - 'Memstatic', |
|
333 | - 'Mongodb', |
|
334 | - 'Predis', |
|
335 | - 'Redis', |
|
336 | - 'Ssdb', |
|
337 | - 'Sqlite', |
|
338 | - 'Wincache', |
|
339 | - 'Xcache', |
|
322 | + 'Apc', |
|
323 | + 'Apcu', |
|
324 | + 'Cassandra', |
|
325 | + 'Couchbase', |
|
326 | + 'Couchdb', |
|
327 | + 'Devnull', |
|
328 | + 'Files', |
|
329 | + 'Leveldb', |
|
330 | + 'Memcache', |
|
331 | + 'Memcached', |
|
332 | + 'Memstatic', |
|
333 | + 'Mongodb', |
|
334 | + 'Predis', |
|
335 | + 'Redis', |
|
336 | + 'Ssdb', |
|
337 | + 'Sqlite', |
|
338 | + 'Wincache', |
|
339 | + 'Xcache', |
|
340 | 340 | ]; |
341 | 341 | } |
342 | 342 | |
@@ -346,9 +346,9 @@ discard block |
||
346 | 346 | public static function getStaticAllDrivers() |
347 | 347 | { |
348 | 348 | return array_merge(self::getStaticSystemDrivers(), [ |
349 | - 'Devtrue', |
|
350 | - 'Devfalse', |
|
351 | - 'Cookie', |
|
349 | + 'Devtrue', |
|
350 | + 'Devfalse', |
|
351 | + 'Cookie', |
|
352 | 352 | ]); |
353 | 353 | } |
354 | 354 |
@@ -173,9 +173,9 @@ discard block |
||
173 | 173 | $url .= $path; |
174 | 174 | |
175 | 175 | $this->instance = CouchDBClient::create([ |
176 | - 'dbname' => $this->getDatabaseName(), |
|
177 | - 'url' => $url, |
|
178 | - 'timeout' => $timeout |
|
176 | + 'dbname' => $this->getDatabaseName(), |
|
177 | + 'url' => $url, |
|
178 | + 'timeout' => $timeout |
|
179 | 179 | ]); |
180 | 180 | |
181 | 181 | $this->createDatabase(); |
@@ -192,10 +192,10 @@ discard block |
||
192 | 192 | $path = '/' . $this->getDatabaseName() . '/' . urlencode($docId); |
193 | 193 | |
194 | 194 | $response = $this->instance->getHttpClient()->request( |
195 | - 'GET',// At this moment HEAD requests are not working: https://github.com/doctrine/couchdb-client/issues/72 |
|
196 | - $path, |
|
197 | - null, |
|
198 | - false |
|
195 | + 'GET',// At this moment HEAD requests are not working: https://github.com/doctrine/couchdb-client/issues/72 |
|
196 | + $path, |
|
197 | + null, |
|
198 | + false |
|
199 | 199 | ); |
200 | 200 | if(!empty($response->headers['etag'])){ |
201 | 201 | return trim($response->headers['etag'], " '\"\t\n\r\0\x0B"); |
@@ -236,9 +236,9 @@ discard block |
||
236 | 236 | $info = $this->instance->getDatabaseInfo(); |
237 | 237 | |
238 | 238 | return (new driverStatistic()) |
239 | - ->setSize($info['sizes']['active']) |
|
240 | - ->setRawData($info) |
|
241 | - ->setData(implode(', ', array_keys($this->itemInstances))) |
|
242 | - ->setInfo('Couchdb version ' . $this->instance->getVersion() . "\n For more information see RawData."); |
|
239 | + ->setSize($info['sizes']['active']) |
|
240 | + ->setRawData($info) |
|
241 | + ->setData(implode(', ', array_keys($this->itemInstances))) |
|
242 | + ->setInfo('Couchdb version ' . $this->instance->getVersion() . "\n For more information see RawData."); |
|
243 | 243 | } |
244 | 244 | } |
245 | 245 | \ No newline at end of file |