RedConfig   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getSpawn1() 0 4 1
A getSpawn2() 0 4 1
A getCore() 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\game\corepvp\red;
10
11
use VectorNetworkProject\TheMix\game\DefaultConfig;
12
13
class RedConfig extends DefaultConfig
0 ignored issues
show
Coding Style introduced by
RedConfig 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
     * @return array
17
     */
18
    public static function getSpawn1(): array
19
    {
20
        return self::getRedConfig()['spawn1'];
21
    }
22
23
    /**
24
     * @return array
25
     */
26
    public static function getSpawn2(): array
27
    {
28
        return self::getRedConfig()['spawn2'];
29
    }
30
31
    /**
32
     * @return array
33
     */
34
    public static function getCore(): array
35
    {
36
        return self::getRedConfig()['core'];
37
    }
38
}
39