Completed
Push — V3 ( 9c40c0...7c7d16 )
by Georges
01:49
created
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.
src/Twig/HumanReadableExtension/Extension.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
     public function getFilters()
29 29
     {
30 30
         return [
31
-          new \Twig_SimpleFilter('sizeFormat', [$this, 'size_format']),
31
+            new \Twig_SimpleFilter('sizeFormat', [$this, 'size_format']),
32 32
         ];
33 33
     }
34 34
 
Please login to merge, or discard this patch.
src/Twig/CacheExtension/Node/CacheNode.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -36,9 +36,9 @@
 block discarded – undo
36 36
     public function __construct(\Twig_Node_Expression $annotation, \Twig_Node_Expression $keyInfo, \Twig_Node $body, $lineno, $tag = null)
37 37
     {
38 38
         parent::__construct([
39
-          'key_info' => $keyInfo,
40
-          'body' => $body,
41
-          'annotation' => $annotation
39
+            'key_info' => $keyInfo,
40
+            'body' => $body,
41
+            'annotation' => $annotation
42 42
         ], [], $lineno, $tag);
43 43
     }
44 44
 
Please login to merge, or discard this patch.
src/Twig/CacheExtension/CacheStrategy/LifetimeCacheStrategy.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -77,10 +77,10 @@  discard block
 block discarded – undo
77 77
 
78 78
         if ($this->cacheCollector instanceof CacheCollector) {
79 79
             $this->cacheCollector->setTwigCacheBlock($unprefixedKey, [
80
-              'cacheHit' => $cacheData !== null,
81
-              'cacheTtl' => $key[ 'lifetime' ],
82
-              'cacheSize' => mb_strlen((string)$cacheData),
83
-              'cacheGenTime' => $generationTime,
80
+                'cacheHit' => $cacheData !== null,
81
+                'cacheTtl' => $key[ 'lifetime' ],
82
+                'cacheSize' => mb_strlen((string)$cacheData),
83
+                'cacheGenTime' => $generationTime,
84 84
             ]);
85 85
         }
86 86
 
@@ -101,8 +101,8 @@  discard block
 block discarded – undo
101 101
         }
102 102
 
103 103
         return [
104
-          'lifetime' => $value,
105
-          'key' => $this->twigCachePrefix . $annotation,
104
+            'lifetime' => $value,
105
+            'key' => $this->twigCachePrefix . $annotation,
106 106
         ];
107 107
     }
108 108
 
@@ -115,10 +115,10 @@  discard block
 block discarded – undo
115 115
 
116 116
         if ($this->cacheCollector instanceof CacheCollector) {
117 117
             $this->cacheCollector->setTwigCacheBlock($unprefixedKey, [
118
-              'cacheHit' => false,
119
-              'cacheTtl' => $key[ 'lifetime' ],
120
-              'cacheSize' => \mb_strlen((string)$block),
121
-              'cacheGenTime' => $generationTime,
118
+                'cacheHit' => false,
119
+                'cacheTtl' => $key[ 'lifetime' ],
120
+                'cacheSize' => \mb_strlen((string)$block),
121
+                'cacheGenTime' => $generationTime,
122 122
             ]);
123 123
         }
124 124
 
Please login to merge, or discard this patch.
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->phpfastcache->getConfig()['twig_driver'],
95 95
             'twig_block_debug' => $this->phpfastcache->getConfig()['twig_block_debug'],
96
-          ],
96
+            ],
97 97
         ];
98 98
     }
99 99
 
Please login to merge, or discard this patch.