Skip to content

Commit

Permalink
NGSTACK-789 run cs fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
amalija-ramljak committed Mar 20, 2024
1 parent 75ab7e1 commit ff9c981
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/Action/JSLinter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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));
Expand Down
3 changes: 2 additions & 1 deletion src/Action/JSPrettier.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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));
Expand Down

0 comments on commit ff9c981

Please sign in to comment.