CLI   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 27
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 2
dl 0
loc 27
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A runphpcbf() 0 5 1
A runphpcs() 0 5 1
1
<?php
2
3
namespace SugaredRim\PHP\CodeSniffer;
4
5
class CLI extends \PHP_CodeSniffer_CLI
6
{
7
    use SugaredRimConfigAwareTrait;
8
9
    public function __construct(callable $finderByConfig = null)
10
    {
11
        $this->sugaredRimSetFinderByConfig($finderByConfig);
12
    }
13
14
    /**
15
     * @codeCoverageIgnore hard coded `exit()` in `parent::runphpcbf`
16
     */
17
    public function runphpcbf()
18
    {
19
        $this->sugaredRimProcessConfig();
20
        parent::runphpcbf();
21
    }
22
23
    /**
24
     * @codeCoverageIgnore hard coded `exit()` in `parent::runphpcs`
25
     */
26
    public function runphpcs()
27
    {
28
        $this->sugaredRimProcessConfig();
29
        parent::runphpcs();
30
    }
31
}
32