PhpCsStrict   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 14
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A getDescription() 0 4 1
1
<?php
2
namespace exussum12\CoverageChecker\Loaders;
3
4
/**
5
 * Class PhpCsStrict
6
 * Used to fail warnings too
7
 * @package exussum12\CoverageChecker
8
 */
9
class PhpCsStrict extends PhpCs
10
{
11
    protected $failOnTypes = [
12
        'ERROR',
13
        'WARNING',
14
    ];
15
16
    /**
17
     * {@inheritdoc}
18
     */
19
    public static function getDescription(): string
20
    {
21
        return 'Parses the json report format of phpcs, this mode ' .
22
            'reports errors and warnings as violations';
23
    }
24
}
25