Completed
Branch V3 (ec4077)
by PastisD
11:29 queued 09:28
created
src/DataCollector/CacheCollector.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -65,35 +65,35 @@
 block discarded – undo
65 65
             }
66 66
             $stats[ $instanceName ] = $cache->getStats();
67 67
             $instances[ $instanceName ] = [
68
-              'driverName' => $cache->getDriverName(),
69
-              'configClassName' => \get_class( $cache->getConfig()),
70
-              'driverConfig' => $cache->getConfig()->toArray()
68
+                'driverName' => $cache->getDriverName(),
69
+                'configClassName' => \get_class( $cache->getConfig()),
70
+                'driverConfig' => $cache->getConfig()->toArray()
71 71
             ];
72 72
             $driverUsed[ $cache->getDriverName() ] = \get_class($cache);
73 73
         }
74 74
 
75 75
         $this->data = [
76
-          'twigCacheBlocks' => $this->twig_cache_blocks,
77
-          'apiVersion' => PhpfastcacheApi::getVersion(),
78
-          'pfcVersion' => PhpfastcacheApi::getPhpFastCacheVersion(),
79
-          'bundleVersion' => phpFastCacheBundle::VERSION,
80
-          'apiChangelog' => PhpfastcacheApi::getChangelog(),
81
-          'driverUsed' => $driverUsed,
82
-          'instances' => $instances,
83
-          'stats' => $stats,
84
-          'size' => $size,
85
-          'hits' => [
76
+            'twigCacheBlocks' => $this->twig_cache_blocks,
77
+            'apiVersion' => PhpfastcacheApi::getVersion(),
78
+            'pfcVersion' => PhpfastcacheApi::getPhpFastCacheVersion(),
79
+            'bundleVersion' => phpFastCacheBundle::VERSION,
80
+            'apiChangelog' => PhpfastcacheApi::getChangelog(),
81
+            'driverUsed' => $driverUsed,
82
+            'instances' => $instances,
83
+            'stats' => $stats,
84
+            'size' => $size,
85
+            'hits' => [
86 86
             'read' => (int) CacheManager::$ReadHits,
87 87
             'write' => (int) CacheManager::$WriteHits,
88
-          ],
89
-          'coreConfig' => [
88
+            ],
89
+            'coreConfig' => [
90 90
             'driverList' => CacheManager::getDriverList(true),
91 91
             'namespacePath (deprecated)' => CacheManager::getNamespacePath(),
92
-          ],
93
-          'projectConfig' => [
92
+            ],
93
+            'projectConfig' => [
94 94
             'twig_driver' => $this->cache->getConfig()['twig_driver'],
95 95
             'twig_block_debug' => $this->cache->getConfig()['twig_block_debug'],
96
-          ],
96
+            ],
97 97
         ];
98 98
     }
99 99
 
Please login to merge, or discard this patch.
src/Resources/Docs/example/app/AppKernel.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -8,18 +8,18 @@
 block discarded – undo
8 8
     public function registerBundles()
9 9
     {
10 10
         $bundles = [
11
-          new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
12
-          new Symfony\Bundle\SecurityBundle\SecurityBundle(),
13
-          new Symfony\Bundle\TwigBundle\TwigBundle(),
14
-          new Symfony\Bundle\MonologBundle\MonologBundle(),
15
-          new Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle(),
16
-          new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
17
-          new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
18
-          new AppBundle\AppBundle(),
11
+            new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
12
+            new Symfony\Bundle\SecurityBundle\SecurityBundle(),
13
+            new Symfony\Bundle\TwigBundle\TwigBundle(),
14
+            new Symfony\Bundle\MonologBundle\MonologBundle(),
15
+            new Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle(),
16
+            new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
17
+            new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
18
+            new AppBundle\AppBundle(),
19 19
             /**
20 20
              * PhpFastCache Bundle
21 21
              */
22
-          new Phpfastcache\Bundle\phpFastCacheBundle(),
22
+            new Phpfastcache\Bundle\phpFastCacheBundle(),
23 23
         ];
24 24
 
25 25
         if (in_array($this->getEnvironment(), ['dev', 'test'], true)) {
Please login to merge, or discard this patch.
src/Resources/Docs/example/Controller/DefaultController.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -123,8 +123,8 @@
 block discarded – undo
123 123
 
124 124
         // replace this example code with whatever you need
125 125
         return $this->render('default/index.html.twig', [
126
-          'pfc_test' => $pfc_test,
127
-          'base_dir' => realpath($this->getParameter('kernel.root_dir').'/..'),
126
+            'pfc_test' => $pfc_test,
127
+            'base_dir' => realpath($this->getParameter('kernel.root_dir').'/..'),
128 128
         ]);
129 129
     }
130 130
 }
131 131
\ No newline at end of file
Please login to merge, or discard this patch.
src/Service/Phpfastcache.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -97,11 +97,11 @@
 block discarded – undo
97 97
                     $configClass = $driverClass::getConfigClass();
98 98
                     if(\class_exists($configClass)){
99 99
                         $this->createInstance(
100
-                          $name,
101
-                          CacheManager::getInstance(
100
+                            $name,
101
+                            CacheManager::getInstance(
102 102
                             $this->config[ 'drivers' ][ $name ][ 'type' ],
103 103
                             new $configClass($this->config[ 'drivers' ][ $name ][ 'parameters' ])
104
-                          )
104
+                            )
105 105
                         );
106 106
                     }else{
107 107
                         throw new PhpfastcacheInvalidConfigurationException('Invalid configuration class name: ' . $configClass);
Please login to merge, or discard this patch.
src/Twig/CacheExtension/Extension.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@
 block discarded – undo
59 59
     public function getTokenParsers()
60 60
     {
61 61
         return [
62
-          new TokenParser\Cache(),
62
+            new TokenParser\Cache(),
63 63
         ];
64 64
     }
65 65
 }
Please login to merge, or discard this patch.