Template::nav()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

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