Path   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A get() 0 6 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace WebServCo\Framework;
6
7
final class Path
8
{
9
    /**
10
     * Returns the full path that the framework project is located in.
11
     */
12
    public static function get(): string
13
    {
14
        return \str_replace(
15
            \sprintf('src%sWebServCo%sFramework', \DIRECTORY_SEPARATOR, \DIRECTORY_SEPARATOR),
16
            '',
17
            __DIR__,
18
        );
19
    }
20
}
21