Browse Source

CS fix

labels
J. King 6 years ago
parent
commit
a441fc6a95
  1. 10
      RoboFile.php

10
RoboFile.php

@ -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;

Loading…
Cancel
Save