We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 266c1ab commit 9901d66Copy full SHA for 9901d66
src/LintCodeCommand.php
@@ -33,11 +33,10 @@ class LintCodeCommand extends Command
33
public function handle()
34
{
35
$bin = $this->option('fix') ? 'phpcbf' : 'phpcs';
36
- $files = empty($this->argument('files')) ? [ '.' ] : $this->argument('files');
37
-
+ $files = empty($this->argument('files')) ? ['.'] : $this->argument('files');
+ $command = "vendor" . DIRECTORY_SEPARATOR . "bin" . DIRECTORY_SEPARATOR . "$bin --standard=";
38
exec(
39
- "vendor/bin/$bin --standard=" . $this->option('standard')
40
- . ' ' . implode(' ', $files),
+ $command . $this->option('standard') . ' ' . implode(' ', $files),
41
$output,
42
$code
43
);
0 commit comments