Passed
Push — master ( a46ae4...dbf10f )
by Alain
02:41 queued 17s
created

NullEngine::canHandle()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 2
1
<?php
2
/**
3
 * Bright Nucleus View Component.
4
 *
5
 * @package   BrightNucleus\View
6
 * @author    Alain Schlesser <[email protected]>
7
 * @license   MIT
8
 * @link      http://www.brightnucleus.com/
9
 * @copyright 2016 Alain Schlesser, Bright Nucleus
10
 */
11
12
namespace BrightNucleus\View\Engine;
13
14
use BrightNucleus\View\Support\NullObject;
15
16
/**
17
 * Class NullEngine.
18
 *
19
 * @since   0.1.0
20
 *
21
 * @package BrightNucleus\View\Engine
22
 * @author  Alain Schlesser <[email protected]>
23
 */
24
class NullEngine implements EngineInterface, NullObject
25
{
26
27
    /**
28
     * Check whether the Findable can handle an individual criterion.
29
     *
30
     * @since 0.1.0
31
     *
32
     * @param mixed $criterion Criterion to check.
33
     *
34
     * @return bool Whether the Findable can handle the criterion.
35
     */
36
    public function canHandle($criterion)
0 ignored issues
show
Unused Code introduced by
The parameter $criterion is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
37
    {
38
        return true;
39
    }
40
41
    /**
42
     * Render a given URI.
43
     *
44
     * @since 0.1.0
45
     *
46
     * @param string $uri     URI to render.
47
     * @param array  $context Context in which to render.
48
     *
49
     * @return string Rendered HTML.
50
     */
51
    public function render($uri, array $context = [])
52
    {
53
        return '';
54
    }
55
}
56