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

CFSWrapper::find_file()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 2
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