Completed
Push — master ( 4b431b...9ea9f1 )
by Restu
15:27
created

View::create()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11
Code Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 11
rs 9.4285
cc 1
eloc 6
nc 1
nop 1
1
<?php
2
namespace JayaCode\Framework\Core\View;
3
4
class View
5
{
6
    public function create($loc = "")
7
    {
8
        ob_start();
9
10
        require_once(__APP_DIR__ . "/resource/view/" . $loc);
11
12
        $content = ob_get_contents();
13
14
        ob_end_clean();
15
        return $content;
16
    }
17
}
18