|
|
@ -70,6 +70,16 @@ class RoboFile extends \Robo\Tasks { |
|
|
|
return $this->taskExec("php")->arg($execpath)->args($args)->run(); |
|
|
|
} |
|
|
|
|
|
|
|
/** Runs the coding standards fixer */ |
|
|
|
public function clean($opts = ['demo|d' => false]): Result { |
|
|
|
$t = $this->taskExec(realpath(self::BASE."vendor/bin/php-cs-fixer")); |
|
|
|
$t->arg("fix"); |
|
|
|
if ($opts['demo']) { |
|
|
|
$t->args("--dry-run", "--diff")->option("--diff-format", "udiff"); |
|
|
|
} |
|
|
|
return $t->run(); |
|
|
|
} |
|
|
|
|
|
|
|
protected function findCoverageEngine(): string { |
|
|
|
$null = null; |
|
|
|
$code = 0; |
|
|
|