Completed
Push — master ( 1ff8f1...5e8208 )
by Michael
01:48
created

CLI::processLongArgument()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 10
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

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