Skip to content

Commit

Permalink
cs: Update PHP-CS-Fixer (#155)
Browse files Browse the repository at this point in the history
  • Loading branch information
theofidry authored Sep 17, 2023
1 parent a324502 commit f58958f
Show file tree
Hide file tree
Showing 13 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .phive/phars.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
<phive xmlns="https://phar.io/phive">
<phar name="composer-normalize" version="^2.28.3" installed="2.28.3" location="./tools/composer-normalize" copy="false"/>
<phar name="infection" version="^0.26.13" installed="0.26.13" location="./tools/infection" copy="false"/>
<phar name="php-cs-fixer" version="^3.8.0" installed="3.8.0" location="./tools/php-cs-fixer" copy="false"/>
<phar name="php-cs-fixer" version="^3.13.0" installed="3.13.0" location="./tools/php-cs-fixer" copy="false"/>
</phive>
1 change: 1 addition & 0 deletions src/BamarniBinPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Throwable;

use function count;
use function in_array;
use function sprintf;
Expand Down
2 changes: 2 additions & 0 deletions src/Command/BinCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Throwable;

use function chdir;
use function count;
use function file_exists;
Expand All @@ -30,6 +31,7 @@
use function mkdir;
use function putenv;
use function sprintf;

use const GLOB_ONLYDIR;

/**
Expand Down
1 change: 1 addition & 0 deletions src/Command/CouldNotCreateNamespaceDir.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace Bamarni\Composer\Bin\Command;

use RuntimeException;

use function sprintf;

final class CouldNotCreateNamespaceDir extends RuntimeException
Expand Down
1 change: 1 addition & 0 deletions src/Config/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
namespace Bamarni\Composer\Bin\Config;

use Composer\Composer;

use function array_key_exists;
use function array_merge;
use function function_exists;
Expand Down
1 change: 1 addition & 0 deletions src/Input/BinInputFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\StringInput;

use function array_filter;
use function array_map;
use function implode;
Expand Down
1 change: 1 addition & 0 deletions src/Input/InvalidBinInput.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

use RuntimeException;
use Symfony\Component\Console\Input\InputInterface;

use function sprintf;

final class InvalidBinInput extends RuntimeException
Expand Down
1 change: 1 addition & 0 deletions tests/Command/BinCommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
use PHPUnit\Framework\TestCase;
use Symfony\Component\Console\Input\StringInput;
use Symfony\Component\Console\Output\NullOutput;

use function array_shift;
use function exec;
use function chdir;
Expand Down
1 change: 1 addition & 0 deletions tests/Config/ConfigTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use Bamarni\Composer\Bin\Config\Config;
use Bamarni\Composer\Bin\Config\InvalidBamarniComposerExtraConfig;
use PHPUnit\Framework\TestCase;

use function function_exists;

/**
Expand Down
2 changes: 2 additions & 0 deletions tests/EndToEndTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use PHPUnit\Framework\TestCase;
use Symfony\Component\Finder\Finder;
use Symfony\Component\Process\Process;

use function array_map;
use function basename;
use function dirname;
Expand All @@ -20,6 +21,7 @@
use function sprintf;
use function str_replace;
use function trim;

use const PHP_EOL;

/**
Expand Down
1 change: 1 addition & 0 deletions tests/Fixtures/MyTestCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
use Composer\Command\BaseCommand;
use Composer\Factory;
use Composer\IO\NullIO;

use function method_exists;

class MyTestCommand extends BaseCommand
Expand Down
1 change: 1 addition & 0 deletions tests/Input/BinInputFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
use PHPUnit\Framework\TestCase;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\StringInput;

use function sprintf;

/**
Expand Down
2 changes: 2 additions & 0 deletions tests/LoggerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
use Composer\IO\BufferIO;
use PHPUnit\Framework\TestCase;
use Symfony\Component\Console\Output\OutputInterface;

use function array_diff;

use const PHP_EOL;

/**
Expand Down

0 comments on commit f58958f

Please sign in to comment.