Test Failed
Push — master ( 61f54d...c8140e )
by PHPLicengine
02:05
created
lib/PHPLicengine/Cache/Cache.php 1 patch
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -26,21 +26,21 @@  discard block
 block discarded – undo
26 26
 
27 27
 class Cache {
28 28
  
29
-      private $config;
29
+       private $config;
30 30
       
31
-      public function __construct (array $config)
32
-      {
33
-             $this->config = $config;       
34
-      }
31
+       public function __construct (array $config)
32
+       {
33
+              $this->config = $config;       
34
+       }
35 35
 
36
-      /*
36
+       /*
37 37
       This class uses Doctrine Cache. You can look at its doc to add more cache type.
38 38
       Whatever option you need to setup the cache type, must be passed as array to constructor.
39 39
       https://www.doctrine-project.org/projects/doctrine-cache/en/1.8/index.html
40 40
       */
41
-      public function getCache ()
42
-      {
43
-             switch ($this->config['type']) {
41
+       public function getCache ()
42
+       {
43
+              switch ($this->config['type']) {
44 44
                      case 'apc':
45 45
                           $cache = new \Doctrine\Common\Cache\ApcuCache();
46 46
                      break;
@@ -49,12 +49,12 @@  discard block
 block discarded – undo
49 49
                      break;
50 50
                      case 'sqlite3':
51 51
                           $db = new \SQLite3($this->config['sqlite3_db']);
52
-                          $cache = new \Doctrine\Common\Cache\SQLite3Cache($db, $this->config['sqlite3_table']);
52
+                            $cache = new \Doctrine\Common\Cache\SQLite3Cache($db, $this->config['sqlite3_table']);
53 53
                      break;
54 54
                      default:
55 55
                           throw new CacheException('Invalid cache system');
56 56
                      break;
57
-             } 
58
-             return $cache;
59
-      }
57
+              } 
58
+              return $cache;
59
+       }
60 60
 }
Please login to merge, or discard this patch.