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

AddPHPLintTask::getBeforeScript()   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 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