@@ -78,12 +78,12 @@ discard block |
||
| 78 | 78 | |
| 79 | 79 | if ($this->cacheCollector instanceof CacheCollector) { |
| 80 | 80 | $this->cacheCollector->setTwigCacheBlock($unprefixedKey, [ |
| 81 | - 'cacheHit' => $cacheData !== null, |
|
| 82 | - 'cacheTtl' => $key[ 'lifetime' ], |
|
| 83 | - 'cacheSize' => mb_strlen((string)$cacheData), |
|
| 84 | - 'cacheGenTime' => $generationTime, |
|
| 85 | - 'cacheFileName' => $sourceContext->getName(), |
|
| 86 | - 'cacheFilePath' => $sourceContext->getPath(), |
|
| 81 | + 'cacheHit' => $cacheData !== null, |
|
| 82 | + 'cacheTtl' => $key[ 'lifetime' ], |
|
| 83 | + 'cacheSize' => mb_strlen((string)$cacheData), |
|
| 84 | + 'cacheGenTime' => $generationTime, |
|
| 85 | + 'cacheFileName' => $sourceContext->getName(), |
|
| 86 | + 'cacheFilePath' => $sourceContext->getPath(), |
|
| 87 | 87 | ]); |
| 88 | 88 | } |
| 89 | 89 | |
@@ -104,8 +104,8 @@ discard block |
||
| 104 | 104 | } |
| 105 | 105 | |
| 106 | 106 | return [ |
| 107 | - 'lifetime' => $value, |
|
| 108 | - 'key' => $this->twigCachePrefix . $annotation, |
|
| 107 | + 'lifetime' => $value, |
|
| 108 | + 'key' => $this->twigCachePrefix . $annotation, |
|
| 109 | 109 | ]; |
| 110 | 110 | } |
| 111 | 111 | |
@@ -118,12 +118,12 @@ discard block |
||
| 118 | 118 | |
| 119 | 119 | if ($this->cacheCollector instanceof CacheCollector) { |
| 120 | 120 | $this->cacheCollector->setTwigCacheBlock($unprefixedKey, [ |
| 121 | - 'cacheHit' => false, |
|
| 122 | - 'cacheTtl' => $key[ 'lifetime' ], |
|
| 123 | - 'cacheSize' => \mb_strlen((string)$block), |
|
| 124 | - 'cacheGenTime' => $generationTime, |
|
| 125 | - 'cacheFileName' => $sourceContext->getName(), |
|
| 126 | - 'cacheFilePath' => $sourceContext->getPath(), |
|
| 121 | + 'cacheHit' => false, |
|
| 122 | + 'cacheTtl' => $key[ 'lifetime' ], |
|
| 123 | + 'cacheSize' => \mb_strlen((string)$block), |
|
| 124 | + 'cacheGenTime' => $generationTime, |
|
| 125 | + 'cacheFileName' => $sourceContext->getName(), |
|
| 126 | + 'cacheFilePath' => $sourceContext->getPath(), |
|
| 127 | 127 | ]); |
| 128 | 128 | } |
| 129 | 129 | |