Passed
Push — v7 ( ac44be...fe8d78 )
by Georges
02:00
created
lib/Phpfastcache/CacheManager.php 1 patch
Indentation   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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 {
@@ -327,27 +327,27 @@  discard block
 block discarded – undo
327 327
     {
328 328
         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);
329 329
         return [
330
-          'Apc',
331
-          'Apcu',
332
-          'Cassandra',
333
-          'Couchbase',
334
-          'Couchdb',
335
-          'Devnull',
336
-          'Files',
337
-          'Leveldb',
338
-          'Memcache',
339
-          'Memcached',
340
-          'Memstatic',
341
-          'Mongodb',
342
-          'Predis',
343
-          'Redis',
344
-          'Riak',
345
-          'Ssdb',
346
-          'Sqlite',
347
-          'Wincache',
348
-          'Xcache',
349
-          'Zenddisk',
350
-          'Zendshm',
330
+            'Apc',
331
+            'Apcu',
332
+            'Cassandra',
333
+            'Couchbase',
334
+            'Couchdb',
335
+            'Devnull',
336
+            'Files',
337
+            'Leveldb',
338
+            'Memcache',
339
+            'Memcached',
340
+            'Memstatic',
341
+            'Mongodb',
342
+            'Predis',
343
+            'Redis',
344
+            'Riak',
345
+            'Ssdb',
346
+            'Sqlite',
347
+            'Wincache',
348
+            'Xcache',
349
+            'Zenddisk',
350
+            'Zendshm',
351 351
         ];
352 352
     }
353 353
 
@@ -359,9 +359,9 @@  discard block
 block discarded – undo
359 359
     {
360 360
         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);
361 361
         return \array_merge(self::getStaticSystemDrivers(), [
362
-          'Devtrue',
363
-          'Devfalse',
364
-          'Cookie',
362
+            'Devtrue',
363
+            'Devfalse',
364
+            'Cookie',
365 365
         ]);
366 366
     }
367 367
 
@@ -439,7 +439,7 @@  discard block
 block discarded – undo
439 439
 
440 440
         if(!\class_exists($className)){
441 441
             throw new PhpfastcacheInvalidArgumentException(
442
-              sprintf("Can't add '%s' because the class '%s' does not exists", $driverName, $className)
442
+                sprintf("Can't add '%s' because the class '%s' does not exists", $driverName, $className)
443 443
             );
444 444
         }
445 445
 
@@ -492,7 +492,7 @@  discard block
 block discarded – undo
492 492
 
493 493
         if(!\class_exists($className)){
494 494
             throw new PhpfastcacheInvalidArgumentException(
495
-              sprintf("Can't override '%s' because the class '%s' does not exists", $driverName, $className)
495
+                sprintf("Can't override '%s' because the class '%s' does not exists", $driverName, $className)
496 496
             );
497 497
         }
498 498
 
Please login to merge, or discard this patch.