Passed
Pull Request — master (#69)
by Dave
02:17
created

PhpstanJsonIdentifier   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 16
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getDescription() 0 3 1
A getCode() 0 3 1
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\ResultsParsers\PhpstanJsonResultsParser;
14
15
use DaveLiddament\StaticAnalysisResultsBaseliner\Domain\ResultsParser\Identifier;
16
17
class PhpstanJsonIdentifier implements Identifier
18
{
19
    /**
20
     * {@inheritdoc}
21
     */
22
    public function getCode(): string
23
    {
24
        return 'phpstan-json-tmp';
25
    }
26
27
    /**
28
     * {@inheritdoc}
29
     */
30
    public function getDescription(): string
31
    {
32
        return 'PHPStan results (JSON format). To generate use: phpstan analyse --error-format json > <filename>.json  NOTE: this will be deprecated once this enhancement has been released: https://github.com/phpstan/phpstan/issues/1686';
33
    }
34
}
35