Passed
Push — master ( 6407fd...37d291 )
by Gordon
04:05 queued 01:59
created

AddPHPLintTask   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 4
dl 0
loc 18
rs 10
c 1
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getFlag() 0 3 1
A getScript() 0 3 1
A getBeforeScript() 0 3 1
1
<?php declare(strict_types = 1);
2
3
namespace Suilven\PHPTravisEnhancer;
4
5
use Suilven\PHPTravisEnhancer\Abstraction\TaskBase;
6
use Suilven\PHPTravisEnhancer\IFace\Task;
7
8
class AddPHPLintTask extends TaskBase implements Task
9
{
10
    /** @return string bash variable for use in Travis script */
11
    public function getFlag(): string
12
    {
13
        return 'LINT_CHECK';
14
    }
15
16
17
    public function getBeforeScript(): ?string
18
    {
19
        return null;
20
    }
21
22
23
    public function getScript(): ?string
24
    {
25
        return 'vendor/bin/parallel-lint src/ tests/';
26
    }
27
}
28