@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | use Phpfastcache\Config\ConfigurationOption; |
19 | 19 | use Phpfastcache\Core\Pool\ExtendedCacheItemPoolInterface; |
20 | 20 | use Phpfastcache\Exceptions\{ |
21 | - PhpfastcacheDeprecatedException, PhpfastcacheDriverCheckException, PhpfastcacheDriverException, PhpfastcacheDriverNotFoundException, PhpfastcacheInstanceNotFoundException, PhpfastcacheInvalidArgumentException, PhpfastcacheInvalidConfigurationException, PhpfastcacheLogicException, PhpfastcacheUnsupportedOperationException |
|
21 | + PhpfastcacheDeprecatedException, PhpfastcacheDriverCheckException, PhpfastcacheDriverException, PhpfastcacheDriverNotFoundException, PhpfastcacheInstanceNotFoundException, PhpfastcacheInvalidArgumentException, PhpfastcacheInvalidConfigurationException, PhpfastcacheLogicException, PhpfastcacheUnsupportedOperationException |
|
22 | 22 | }; |
23 | 23 | use Phpfastcache\Util\ClassNamespaceResolverTrait; |
24 | 24 | |
@@ -115,8 +115,8 @@ discard block |
||
115 | 115 | if (\is_array($config)) { |
116 | 116 | $config = new ConfigurationOption($config); |
117 | 117 | \trigger_error( |
118 | - 'The CacheManager will drops the support of primitive configuration arrays, use a "\Phpfastcache\Config\ConfigurationOption" object instead', |
|
119 | - E_USER_DEPRECATED |
|
118 | + 'The CacheManager will drops the support of primitive configuration arrays, use a "\Phpfastcache\Config\ConfigurationOption" object instead', |
|
119 | + E_USER_DEPRECATED |
|
120 | 120 | ); |
121 | 121 | }elseif ($config === null){ |
122 | 122 | $config = self::getDefaultConfig(); |
@@ -138,9 +138,9 @@ discard block |
||
138 | 138 | |
139 | 139 | if(!is_a($driverClass, ExtendedCacheItemPoolInterface::class, true)){ |
140 | 140 | throw new PhpfastcacheDriverException(sprintf( |
141 | - 'Class "%s" does not implement "%s"', |
|
142 | - $driverClass, |
|
143 | - ExtendedCacheItemPoolInterface::class |
|
141 | + 'Class "%s" does not implement "%s"', |
|
142 | + $driverClass, |
|
143 | + ExtendedCacheItemPoolInterface::class |
|
144 | 144 | )); |
145 | 145 | } |
146 | 146 | try { |
@@ -332,27 +332,27 @@ discard block |
||
332 | 332 | { |
333 | 333 | \trigger_error(\sprintf('Method "%s" is deprecated as of the V7 and will be removed soon or later, use CacheManager::getDriverList() instead.', __METHOD__), E_USER_DEPRECATED); |
334 | 334 | return [ |
335 | - 'Apc', |
|
336 | - 'Apcu', |
|
337 | - 'Cassandra', |
|
338 | - 'Couchbase', |
|
339 | - 'Couchdb', |
|
340 | - 'Devnull', |
|
341 | - 'Files', |
|
342 | - 'Leveldb', |
|
343 | - 'Memcache', |
|
344 | - 'Memcached', |
|
345 | - 'Memstatic', |
|
346 | - 'Mongodb', |
|
347 | - 'Predis', |
|
348 | - 'Redis', |
|
349 | - 'Riak', |
|
350 | - 'Ssdb', |
|
351 | - 'Sqlite', |
|
352 | - 'Wincache', |
|
353 | - 'Xcache', |
|
354 | - 'Zenddisk', |
|
355 | - 'Zendshm', |
|
335 | + 'Apc', |
|
336 | + 'Apcu', |
|
337 | + 'Cassandra', |
|
338 | + 'Couchbase', |
|
339 | + 'Couchdb', |
|
340 | + 'Devnull', |
|
341 | + 'Files', |
|
342 | + 'Leveldb', |
|
343 | + 'Memcache', |
|
344 | + 'Memcached', |
|
345 | + 'Memstatic', |
|
346 | + 'Mongodb', |
|
347 | + 'Predis', |
|
348 | + 'Redis', |
|
349 | + 'Riak', |
|
350 | + 'Ssdb', |
|
351 | + 'Sqlite', |
|
352 | + 'Wincache', |
|
353 | + 'Xcache', |
|
354 | + 'Zenddisk', |
|
355 | + 'Zendshm', |
|
356 | 356 | ]; |
357 | 357 | } |
358 | 358 | |
@@ -364,9 +364,9 @@ discard block |
||
364 | 364 | { |
365 | 365 | \trigger_error(\sprintf('Method "%s" is deprecated as of the V7 and will be removed soon or later, use CacheManager::getDriverList() instead.', __METHOD__), E_USER_DEPRECATED); |
366 | 366 | return \array_merge(self::getStaticSystemDrivers(), [ |
367 | - 'Devtrue', |
|
368 | - 'Devfalse', |
|
369 | - 'Cookie', |
|
367 | + 'Devtrue', |
|
368 | + 'Devfalse', |
|
369 | + 'Cookie', |
|
370 | 370 | ]); |
371 | 371 | } |
372 | 372 | |
@@ -444,7 +444,7 @@ discard block |
||
444 | 444 | |
445 | 445 | if(!\class_exists($className)){ |
446 | 446 | throw new PhpfastcacheInvalidArgumentException( |
447 | - sprintf("Can't add '%s' because the class '%s' does not exists", $driverName, $className) |
|
447 | + sprintf("Can't add '%s' because the class '%s' does not exists", $driverName, $className) |
|
448 | 448 | ); |
449 | 449 | } |
450 | 450 | |
@@ -497,7 +497,7 @@ discard block |
||
497 | 497 | |
498 | 498 | if(!\class_exists($className)){ |
499 | 499 | throw new PhpfastcacheInvalidArgumentException( |
500 | - sprintf("Can't override '%s' because the class '%s' does not exists", $driverName, $className) |
|
500 | + sprintf("Can't override '%s' because the class '%s' does not exists", $driverName, $className) |
|
501 | 501 | ); |
502 | 502 | } |
503 | 503 | |
@@ -511,7 +511,7 @@ discard block |
||
511 | 511 | |
512 | 512 | if(!\is_subclass_of($className, self::CORE_DRIVER_NAMESPACE . $driverName . '\\Driver', true)){ |
513 | 513 | throw new PhpfastcacheLogicException( |
514 | - sprintf("Can't override '%s' because the class '%s' MUST extend '%s'", $driverName, $className, self::CORE_DRIVER_NAMESPACE . $driverName . '\\Driver') |
|
514 | + sprintf("Can't override '%s' because the class '%s' MUST extend '%s'", $driverName, $className, self::CORE_DRIVER_NAMESPACE . $driverName . '\\Driver') |
|
515 | 515 | ); |
516 | 516 | } |
517 | 517 |
@@ -66,5 +66,5 @@ |
||
66 | 66 | |
67 | 67 | if ((!\defined('PFC_IGNORE_COMPOSER_WARNING') || !PFC_IGNORE_COMPOSER_WARNING) && \class_exists(\Composer\Autoload\ClassLoader::class)) { |
68 | 68 | \trigger_error('Your project already makes use of Composer. You SHOULD use the composer dependency "phpfastcache/phpfastcache" instead of hard-autoloading.', |
69 | - E_USER_WARNING); |
|
69 | + E_USER_WARNING); |
|
70 | 70 | } |
71 | 71 | \ No newline at end of file |
@@ -41,7 +41,7 @@ |
||
41 | 41 | return true; |
42 | 42 | } else if (\constant($CONSTANT_NAME) !== $driverName) { |
43 | 43 | \trigger_error('Memcache collision detected, you used both Memcache and Memcached driver in your script, this may leads to unexpected behaviours', |
44 | - E_USER_WARNING); |
|
44 | + E_USER_WARNING); |
|
45 | 45 | |
46 | 46 | return false; |
47 | 47 | } |