Config   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A get() 0 4 1
1
<?php
2
3
namespace Vertex\Core;
4
5
class Config
6
{
7
    /**
8
     * Returns an array of all settings
9
     * from the specified file.
10
     * 
11
     * @param  string $file 
12
     * @return array       
13
     */
14
    public static function get(string $file)
15
    {
16
        return require __DIR__.'/../config/' . $file . '.php';
17
    }
18
}
19