Passed
Push — v7 ( b946a8...c2ec86 )
by Georges
02:04
created
lib/Phpfastcache/CacheManager.php 1 patch
Indentation   +33 added lines, -33 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
 
@@ -116,8 +116,8 @@  discard block
 block discarded – undo
116 116
         if (\is_array($config)) {
117 117
             $config = new ConfigurationOption($config);
118 118
             trigger_error(
119
-              'The CacheManager will drops the support of primitive configuration arrays, use a "\Phpfastcache\Config\ConfigurationOption" object instead',
120
-              E_USER_DEPRECATED
119
+                'The CacheManager will drops the support of primitive configuration arrays, use a "\Phpfastcache\Config\ConfigurationOption" object instead',
120
+                E_USER_DEPRECATED
121 121
             );
122 122
         }elseif ($config === null){
123 123
             $config = self::getDefaultConfig();
@@ -139,9 +139,9 @@  discard block
 block discarded – undo
139 139
 
140 140
             if(!is_a($driverClass, ExtendedCacheItemPoolInterface::class, true)){
141 141
                 throw new PhpfastcacheDriverException(sprintf(
142
-                  'Class "%s" does not implement "%s"',
143
-                  $driverClass,
144
-                  ExtendedCacheItemPoolInterface::class
142
+                    'Class "%s" does not implement "%s"',
143
+                    $driverClass,
144
+                    ExtendedCacheItemPoolInterface::class
145 145
                 ));
146 146
             }
147 147
             try {
@@ -328,27 +328,27 @@  discard block
 block discarded – undo
328 328
     {
329 329
         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);
330 330
         return [
331
-          'Apc',
332
-          'Apcu',
333
-          'Cassandra',
334
-          'Couchbase',
335
-          'Couchdb',
336
-          'Devnull',
337
-          'Files',
338
-          'Leveldb',
339
-          'Memcache',
340
-          'Memcached',
341
-          'Memstatic',
342
-          'Mongodb',
343
-          'Predis',
344
-          'Redis',
345
-          'Riak',
346
-          'Ssdb',
347
-          'Sqlite',
348
-          'Wincache',
349
-          'Xcache',
350
-          'Zenddisk',
351
-          'Zendshm',
331
+            'Apc',
332
+            'Apcu',
333
+            'Cassandra',
334
+            'Couchbase',
335
+            'Couchdb',
336
+            'Devnull',
337
+            'Files',
338
+            'Leveldb',
339
+            'Memcache',
340
+            'Memcached',
341
+            'Memstatic',
342
+            'Mongodb',
343
+            'Predis',
344
+            'Redis',
345
+            'Riak',
346
+            'Ssdb',
347
+            'Sqlite',
348
+            'Wincache',
349
+            'Xcache',
350
+            'Zenddisk',
351
+            'Zendshm',
352 352
         ];
353 353
     }
354 354
 
@@ -360,9 +360,9 @@  discard block
 block discarded – undo
360 360
     {
361 361
         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);
362 362
         return \array_merge(self::getStaticSystemDrivers(), [
363
-          'Devtrue',
364
-          'Devfalse',
365
-          'Cookie',
363
+            'Devtrue',
364
+            'Devfalse',
365
+            'Cookie',
366 366
         ]);
367 367
     }
368 368
 
@@ -440,7 +440,7 @@  discard block
 block discarded – undo
440 440
 
441 441
         if(!\class_exists($className)){
442 442
             throw new PhpfastcacheInvalidArgumentException(
443
-              sprintf("Can't add '%s' because the class '%s' does not exists", $driverName, $className)
443
+                sprintf("Can't add '%s' because the class '%s' does not exists", $driverName, $className)
444 444
             );
445 445
         }
446 446
 
@@ -493,7 +493,7 @@  discard block
 block discarded – undo
493 493
 
494 494
         if(!\class_exists($className)){
495 495
             throw new PhpfastcacheInvalidArgumentException(
496
-              sprintf("Can't override '%s' because the class '%s' does not exists", $driverName, $className)
496
+                sprintf("Can't override '%s' because the class '%s' does not exists", $driverName, $className)
497 497
             );
498 498
         }
499 499
 
@@ -507,7 +507,7 @@  discard block
 block discarded – undo
507 507
 
508 508
         if(!\is_subclass_of($className, self::CORE_DRIVER_NAMESPACE . $driverName . '\\Driver', true)){
509 509
             throw new PhpfastcacheLogicException(
510
-              sprintf("Can't override '%s' because the class '%s' MUST extend '%s'", $driverName, $className, self::CORE_DRIVER_NAMESPACE . $driverName . '\\Driver')
510
+                sprintf("Can't override '%s' because the class '%s' MUST extend '%s'", $driverName, $className, self::CORE_DRIVER_NAMESPACE . $driverName . '\\Driver')
511 511
             );
512 512
         }
513 513
 
Please login to merge, or discard this patch.