Update dev:check style to use php-cs-fixer (#12132)

* Update dev:check style to use php-cs-fixer

* dont override default paths

* Update .php_cs

Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
This commit is contained in:
Tony Murray
2020-09-23 20:54:00 -05:00
committed by GitHub
parent 9ade71d20c
commit 93e43d09bc
5 changed files with 492 additions and 76 deletions

View File

@@ -83,11 +83,10 @@ class DevCheckCommand extends LnmsCommand
$this->helper->setFlags(Arr::only($this->options(), ['quiet', 'commands', 'fail-fast', 'full']));
$all = $check == 'all' || $check == 'ci';
$this->helper->enable('style', $all || $check === 'style');
$this->helper->enable('lint', $all || $check === 'lint');
$this->helper->enable('unit', $all || $check === 'unit');
$this->helper->enable('web', $all || $check === 'web');
$this->helper->enable('style', $check == 'all' || $check === 'style');
$this->helper->enable('lint', $check == 'all' || $check == 'ci' || $check === 'lint');
$this->helper->enable('unit', $check == 'all' || $check == 'ci' || $check === 'unit');
$this->helper->enable('web', $check == 'ci' || $check === 'web');
if ($os = $this->option('os')) {
$this->helper->setFlags(['style_enable' => false, 'lint_enable' => false, 'unit_enable' => true, 'web_enable' => false]);