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

StakxFileLoader   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 9
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getCacheKey() 0 6 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
}