Template   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 6
dl 0
loc 14
rs 10
c 2
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A nav() 0 8 1
1
<?php
2
3
namespace Erykai\Template;
4
5
class Template extends Resource
6
{
7
    /**
8
     * @param string $index
9
     * @param string $pathFile
10
     */
11
    public function nav(string $index, string $pathFile, string $module = null)
12
    {
13
14
        $this->setPage(file_get_contents(TEMPLATE_PATH . "/{$this->getThemePage()}/$pathFile.{$this->getExt()}"));
0 ignored issues
show
Bug introduced by
The constant Erykai\Template\TEMPLATE_PATH was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
15
        $this->setIndex(file_get_contents(TEMPLATE_PATH . "/{$this->getThemeIndex()}/$index.{$this->getExt()}"));
16
        $this->page();
17
        $this->route();
18
        $this->text($this->getThemeIndex(). '_'. str_replace("/","_", $pathFile), $module);
19
    }
20
}