Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cs: Update PHP-CS-Fixer #155

Merged
merged 1 commit into from
Sep 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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