Completed
Pull Request — 2.0.x (#6)
by Andrew
02:53
created

CFSWrapper   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 11
wmc 1
lcom 0
cbo 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A find_file() 0 4 1
1
<?php
2
/**
3
 * @author     Andrew Coulton <[email protected]>
4
 * @copyright  2015 inGenerator Ltd
5
 * @license    http://kohanaframework.org/license
6
 */
7
8
namespace Ingenerator\KohanaView\TemplateManager;
9
10
/**
11
 * Very simple wrapper around Kohana's cascading file system to allow injection (and mocking/stubbing) as required.
12
 *
13
 * @package Ingenerator\KohanaView\TemplateManager
14
 */
15
class CFSWrapper
16
{
17
18
    /**
19
     * @see \Kohana::find_file
20
     */
21
    public function find_file($dir, $file)
22
    {
23
        return \Kohana::find_file($dir, $file, NULL, FALSE);
24
    }
25
}
26