Total Complexity | 4 |
Total Lines | 37 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class RoboFile extends \Robo\Tasks |
||
11 | { |
||
12 | // define public methods as commands |
||
13 | /** |
||
14 | * Run PHPStan static analysis. |
||
15 | */ |
||
16 | public function phpstan(): Result |
||
17 | { |
||
18 | return $this->taskExec('vendor/bin/phpstan analyse src --memory-limit=1G')->run(); |
||
19 | } |
||
20 | |||
21 | /** |
||
22 | * Run PHP CodeSniffer. |
||
23 | */ |
||
24 | public function phpcs(): Result |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * Run PHPUnit tests. |
||
31 | */ |
||
32 | public function phpunit(): Result |
||
33 | { |
||
34 | return $this->taskPHPUnit() |
||
35 | ->configFile('tests/phpunit.xml.dist') |
||
36 | ->run(); |
||
37 | } |
||
38 | |||
39 | /** |
||
40 | * Run all quality checks. |
||
41 | */ |
||
42 | public function quality(): void |
||
47 | } |
||
48 | } |
||
49 |