From ff9c98102ff3b68f6269bbe06cce567e023a6037 Mon Sep 17 00:00:00 2001 From: Amalija Ramljak Date: Wed, 20 Mar 2024 11:57:03 +0100 Subject: [PATCH] NGSTACK-789 run cs fixer --- src/Action/JSLinter.php | 3 ++- src/Action/JSPrettier.php | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Action/JSLinter.php b/src/Action/JSLinter.php index 2825780..5ee4ac4 100644 --- a/src/Action/JSLinter.php +++ b/src/Action/JSLinter.php @@ -9,6 +9,7 @@ use SebastianFeldmann\Cli\Processor\ProcOpen as Processor; use SebastianFeldmann\Git\Repository; +use function array_merge; use function count; use function escapeshellarg; use function preg_match; @@ -20,7 +21,7 @@ final class JSLinter extends Action protected function doExecute(Config $config, IO $io, Repository $repository, Config\Action $action): void { $extensions = $action->getOptions()->get('extensions', ['js']); - + $changedFiles = []; foreach ($extensions as $extension) { $changedFiles = array_merge($changedFiles, $repository->getIndexOperator()->getStagedFilesOfType($extension)); diff --git a/src/Action/JSPrettier.php b/src/Action/JSPrettier.php index a8d4534..9174b41 100644 --- a/src/Action/JSPrettier.php +++ b/src/Action/JSPrettier.php @@ -9,6 +9,7 @@ use SebastianFeldmann\Cli\Processor\ProcOpen as Processor; use SebastianFeldmann\Git\Repository; +use function array_merge; use function count; use function escapeshellarg; use function preg_match; @@ -20,7 +21,7 @@ final class JSPrettier extends Action protected function doExecute(Config $config, IO $io, Repository $repository, Config\Action $action): void { $extensions = $action->getOptions()->get('extensions', ['js']); - + $changedFiles = []; foreach ($extensions as $extension) { $changedFiles = array_merge($changedFiles, $repository->getIndexOperator()->getStagedFilesOfType($extension));