|
|
@ -81,8 +81,8 @@ class RoboFile extends \Robo\Tasks { |
|
|
|
|
|
|
|
/** Runs the coding standards fixer */ |
|
|
|
public function clean($opts = ['demo|d' => false]): Result { |
|
|
|
$t = $this->taskExec(norm(BASE."vendor/bin/php-cs-fixer")); |
|
|
|
$t->arg("fix"); |
|
|
|
$t = $this->taskExec(realpath(BASE."vendor/bin/php-cs-fixer")); |
|
|
|
$t->arg("fix")->arg("--allow-risky=yes"); |
|
|
|
if ($opts['demo']) { |
|
|
|
$t->args("--dry-run", "--diff")->option("--diff-format", "udiff"); |
|
|
|
} |
|
|
|