Provider::getPath()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
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