CLI::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

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