Completed
Branch 2.0.x (e30486)
by Andrew
03:10
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)
1 ignored issue
show
Coding Style introduced by
This method is not in camel caps format.

This check looks for method names that are not written in camelCase.

In camelCase names are written without any punctuation, the start of each new word being marked by a capital letter. Thus the name database connection seeker becomes databaseConnectionSeeker.

Loading history...
22
    {
23
        return \Kohana::find_file($dir, $file, NULL, FALSE);
24
    }
25
}
26