Completed
Push — master ( 208a4c...12b9c5 )
by Michael
02:28
created

CLI::processConfig()   B

Complexity

Conditions 6
Paths 6

Size

Total Lines 16
Code Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 16
rs 8.8571
c 0
b 0
f 0
cc 6
eloc 10
nc 6
nop 0
1
<?php
2
3
namespace SugaredRim\PHP\CodeSniffer;
4
5
class CLI extends \PHP_CodeSniffer_CLI
0 ignored issues
show
Bug introduced by
There is one abstract method setConfigData in this class; you could implement it, or declare this class as abstract.
Loading history...
6
{
7
    use SugaredRimConfigAwareTrait;
8
9
    abstract public function setConfigData($key, $value, $temp = false);
10
11
    public function __construct(callable $finderByConfig = null)
12
    {
13
        $this->sugaredRimSetFinderByConfig($finderByConfig);
14
    }
15
16
    /**
17
     * @codeCoverageIgnore hard coded `exit()` in `parent::runphpcbf`
18
     */
19
    public function runphpcbf()
20
    {
21
        $this->sugaredRimProcessConfig();
22
        parent::runphpcbf();
23
    }
24
25
    /**
26
     * @codeCoverageIgnore hard coded `exit()` in `parent::runphpcs`
27
     */
28
    public function runphpcs()
29
    {
30
        $this->sugaredRimProcessConfig();
31
        parent::runphpcs();
32
    }
33
}
34