Passed
Pull Request — master (#60)
by Stephan
02:16
created

PhpCodeSnifferJsonIdentifier::getCode()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
3
/**
4
 * Static Analysis Results Baseliner (sarb).
5
 *
6
 * (c) Dave Liddament
7
 *
8
 * For the full copyright and licence information please view the LICENSE file distributed with this source code.
9
 */
10
11
declare(strict_types=1);
12
13
namespace DaveLiddament\StaticAnalysisResultsBaseliner\Plugins\PhpCodeSnifferJsonResultsParser;
14
15
use DaveLiddament\StaticAnalysisResultsBaseliner\Domain\ResultsParser\Identifier;
16
17
class PhpCodeSnifferJsonIdentifier implements Identifier
18
{
19
    /**
20
     * {@inheritdoc}
21
     */
22
    public function getCode(): string
23
    {
24
        return 'phpcodesniffer-json';
25
    }
26
27
    /**
28
     * {@inheritdoc}
29
     */
30
    public function getDescription(): string
31
    {
32
        return 'PHP Code Sniffer (default format). To generate use: phpcs --report=json <code directory> > <output.txt> ';
33
    }
34
}
35