Container::getTemplateFolderPath()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/**
3
 * Container
4
 * Base view layer object
5
 * @todo add an interface too
6
 *
7
 * @package     erdiko/core
8
 * @copyright   2012-2017 Arroyo Labs, Inc. http://www.arroyolabs.com
9
 * @author      John Arroyo <[email protected]>
10
 */
11
namespace erdiko\core;
12
13
14
abstract class Container
15
{
16
    use Template;
17
    
18
    /**
19
     * Constructor
20
     * @param string $template , Theme Object (Contaier)
21
     * @param mixed $data
22
     */
23
    public function __construct($template = null, $data = null)
24
    {
25
        $this->initiate($template, $data);
26
        // $this->setTemplateFolder('views');
0 ignored issues
show
Unused Code Comprehensibility introduced by
75% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
27
    }
28
29
    /**
30
     * Get template folder filesystem path
31
     */
32
    public function getTemplateFolderPath()
33
    {
34
        return $this->_templateRootFolder.'/'.$this->_templateFolder.'/';
35
    }
36
}