Completed
Pull Request — master (#46)
by Vladimir
02:25
created

StakxFileLoader::getCacheKey()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
/**
4
 * @copyright 2017 Vladimir Jimenez
5
 * @license   https://github.com/allejo/stakx/blob/master/LICENSE.md MIT
6
 */
7
8
namespace allejo\stakx\Twig;
9
10
class StakxFileLoader extends \Twig_Loader_Filesystem
11
{
12
    public function getCacheKey($name)
13
    {
14
        $path = $this->findTemplate($name);
15
16
        return $path . filemtime($path);
17
    }
18
}