Reset::level()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 4
Ratio 100 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 4
loc 4
rs 10
c 0
b 0
f 0
1
<?php namespace FreedomCore\TrinityCore\Console\Commands;
2
3
use FreedomCore\TrinityCore\Console\Abstracts\BaseCommand;
4
5
/**
6
 * Class Reset
7
 * @package FreedomCore\TrinityCore\Console\Commands
8
 * @codeCoverageIgnore
9
 */
10 View Code Duplication
class Reset extends BaseCommand
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
11
{
12
13
    /**
14
     * Reset achievements for specified player
15
     * @param string $playerName
16
     * @return array|string
17
     */
18
    public function achievements(string $playerName)
19
    {
20
        return $this->executeCommand(__FUNCTION__, get_defined_vars());
21
    }
22
23
    /**
24
     * Reset honor for specified player
25
     * @param string $playerName
26
     * @return array|string
27
     */
28
    public function honor(string $playerName)
29
    {
30
        return $this->executeCommand(__FUNCTION__, get_defined_vars());
31
    }
32
33
    /**
34
     * Reset level for specified player
35
     * @param string $playerName
36
     * @return array|string
37
     */
38
    public function level(string $playerName)
39
    {
40
        return $this->executeCommand(__FUNCTION__, get_defined_vars());
41
    }
42
43
    /**
44
     * Reset spells for specified player
45
     * @param string $playerName
46
     * @return array|string
47
     */
48
    public function spells(string $playerName)
49
    {
50
        return $this->executeCommand(__FUNCTION__, get_defined_vars());
51
    }
52
53
    /**
54
     * Reset stats for specified player
55
     * @param string $playerName
56
     * @return array|string
57
     */
58
    public function stats(string $playerName)
59
    {
60
        return $this->executeCommand(__FUNCTION__, get_defined_vars());
61
    }
62
63
    /**
64
     * Reset talents for specified player
65
     * @param string $playerName
66
     * @return array|string
67
     */
68
    public function talents(string $playerName)
69
    {
70
        return $this->executeCommand(__FUNCTION__, get_defined_vars());
71
    }
72
73
    /**
74
     * Reset $type (talents/spells) for ALL players
75
     * @param string $type
76
     * @return array|string
77
     */
78
    public function all(string $type)
79
    {
80
        return $this->executeCommand(__FUNCTION__, get_defined_vars());
81
    }
82
}
83