Provider   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getPath() 0 4 1
1
<?php
2
/**
3
 * Copyright (c) 2018 VectorNetworkProject. All rights reserved. MIT license.
4
 *
5
 * GitHub: https://github.com/VectorNetworkProject/TheMix
6
 * Website: https://www.vector-network.tk
7
 */
8
9
namespace VectorNetworkProject\TheMix\lib\database;
10
11
use VectorNetworkProject\TheMix\TheMix;
12
13
abstract class Provider
0 ignored issues
show
Coding Style introduced by
Provider does not seem to conform to the naming convention (Utils?$).

This check examines a number of code elements and verifies that they conform to the given naming conventions.

You can set conventions for local variables, abstract classes, utility classes, constant, properties, methods, parameters, interfaces, classes, exceptions and special methods.

Loading history...
14
{
15
    /**
16
     * @param string $folder
17
     * @param string $type
18
     *
19
     * @return string
20
     */
21
    protected static function getPath(string $folder, string $type): string
22
    {
23
        return TheMix::getInstance()->getDataFolder().'/'.$folder.'/'.$type.'/';
24
    }
25
}
26