diff --git a/.phive/phars.xml b/.phive/phars.xml index 335086e..eb60025 100644 --- a/.phive/phars.xml +++ b/.phive/phars.xml @@ -2,5 +2,5 @@ - + diff --git a/src/BamarniBinPlugin.php b/src/BamarniBinPlugin.php index 1d21c93..19e36e0 100644 --- a/src/BamarniBinPlugin.php +++ b/src/BamarniBinPlugin.php @@ -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; diff --git a/src/Command/BinCommand.php b/src/Command/BinCommand.php index 9edb4c3..eaf6ff0 100644 --- a/src/Command/BinCommand.php +++ b/src/Command/BinCommand.php @@ -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; @@ -30,6 +31,7 @@ use function mkdir; use function putenv; use function sprintf; + use const GLOB_ONLYDIR; /** diff --git a/src/Command/CouldNotCreateNamespaceDir.php b/src/Command/CouldNotCreateNamespaceDir.php index 3314507..8985a7c 100644 --- a/src/Command/CouldNotCreateNamespaceDir.php +++ b/src/Command/CouldNotCreateNamespaceDir.php @@ -5,6 +5,7 @@ namespace Bamarni\Composer\Bin\Command; use RuntimeException; + use function sprintf; final class CouldNotCreateNamespaceDir extends RuntimeException diff --git a/src/Config/Config.php b/src/Config/Config.php index fa62b3a..629ab86 100644 --- a/src/Config/Config.php +++ b/src/Config/Config.php @@ -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; diff --git a/src/Input/BinInputFactory.php b/src/Input/BinInputFactory.php index dab96f6..66a30b8 100644 --- a/src/Input/BinInputFactory.php +++ b/src/Input/BinInputFactory.php @@ -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; diff --git a/src/Input/InvalidBinInput.php b/src/Input/InvalidBinInput.php index 2418d9c..7f44ff5 100644 --- a/src/Input/InvalidBinInput.php +++ b/src/Input/InvalidBinInput.php @@ -6,6 +6,7 @@ use RuntimeException; use Symfony\Component\Console\Input\InputInterface; + use function sprintf; final class InvalidBinInput extends RuntimeException diff --git a/tests/Command/BinCommandTest.php b/tests/Command/BinCommandTest.php index ad83072..b47f8ae 100644 --- a/tests/Command/BinCommandTest.php +++ b/tests/Command/BinCommandTest.php @@ -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; diff --git a/tests/Config/ConfigTest.php b/tests/Config/ConfigTest.php index cf941cb..51e52e5 100644 --- a/tests/Config/ConfigTest.php +++ b/tests/Config/ConfigTest.php @@ -7,6 +7,7 @@ use Bamarni\Composer\Bin\Config\Config; use Bamarni\Composer\Bin\Config\InvalidBamarniComposerExtraConfig; use PHPUnit\Framework\TestCase; + use function function_exists; /** diff --git a/tests/EndToEndTest.php b/tests/EndToEndTest.php index 74b1139..d45a685 100644 --- a/tests/EndToEndTest.php +++ b/tests/EndToEndTest.php @@ -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; @@ -20,6 +21,7 @@ use function sprintf; use function str_replace; use function trim; + use const PHP_EOL; /** diff --git a/tests/Fixtures/MyTestCommand.php b/tests/Fixtures/MyTestCommand.php index e19728a..51d5dea 100644 --- a/tests/Fixtures/MyTestCommand.php +++ b/tests/Fixtures/MyTestCommand.php @@ -11,6 +11,7 @@ use Composer\Command\BaseCommand; use Composer\Factory; use Composer\IO\NullIO; + use function method_exists; class MyTestCommand extends BaseCommand diff --git a/tests/Input/BinInputFactoryTest.php b/tests/Input/BinInputFactoryTest.php index 75684a6..bf00d7d 100644 --- a/tests/Input/BinInputFactoryTest.php +++ b/tests/Input/BinInputFactoryTest.php @@ -8,6 +8,7 @@ use PHPUnit\Framework\TestCase; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\StringInput; + use function sprintf; /** diff --git a/tests/LoggerTest.php b/tests/LoggerTest.php index 0f7a64f..4fdd869 100644 --- a/tests/LoggerTest.php +++ b/tests/LoggerTest.php @@ -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; /**