Skip to content

Commit cffe61c

Browse files
committed
Care only about PHP files for code-style check
1 parent 7f449c4 commit cffe61c

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/Phug/DevTool/Command/CodeStyleCheckCommand.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ protected function execute(InputInterface $input, OutputInterface $output)
2323
{
2424
$helper = $this->getHelper('question');
2525
$args = [
26-
'--standard' => $this->getApplication()->getConfigFilePath('phpcs.xml'),
26+
'--standard' => $this->getApplication()->getConfigFilePath('phpcs.xml'),
27+
'--extensions' => 'php'
2728
];
2829
$ignore = [];
2930
if ($input->getOption('ignore-tests')) {
@@ -33,7 +34,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
3334
$ignore[] = '*/debug/*';
3435
}
3536
if (count($ignore)) {
36-
$args[] = '--ignore='.implode(',', $ignore);
37+
$args['--ignore'] = implode(',', $ignore);
3738
}
3839

3940
if (($code = $this->getApplication()->runCodeStyleChecker($args)) === 0) {

0 commit comments

Comments
 (0)