Passed
Pull Request — master (#171)
by ARP
02:50
created

RootProjectLocator   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 6
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getRootLocationPath() 0 4 1
1
<?php
2
3
4
namespace TheCodingMachine\TDBM\Utils;
5
6
class RootProjectLocator
7
{
8
    public static function getRootLocationPath(): string
9
    {
10
        $reflection = new \ReflectionClass(\Composer\Autoload\ClassLoader::class);
11
        return dirname($reflection->getFileName(), 3).'/';
12
    }
13
}
14