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

View   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 14
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A create() 0 11 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