diff --git a/.github/workflows/bare_run.yaml b/.github/workflows/bare_run.yaml index e16069a81b..41c80985f4 100644 --- a/.github/workflows/bare_run.yaml +++ b/.github/workflows/bare_run.yaml @@ -12,7 +12,7 @@ jobs: strategy: fail-fast: false matrix: - php_version: ['7.2', '7.3', '7.4', '8.0'] + php_version: ['7.2', '7.3', '7.4', '8.0', '8.1'] steps: - uses: shivammathur/setup-php@v2 @@ -20,4 +20,4 @@ jobs: php-version: ${{ matrix.php }} coverage: none - - run: composer require symplify/easy-ci --dev --ansi + - run: composer require rector/swiss-knife --dev --ansi diff --git a/README.md b/README.md index 869edc6a70..587860a04b 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ -# Easy CI +# Swiss Knife for Upgrades -[![Downloads total](https://img.shields.io/packagist/dt/symplify/easy-ci.svg?style=flat-square)](https://packagist.org/packages/symplify/easy-ci/stats) +[![Downloads total](https://img.shields.io/packagist/dt/rector/swiss-knife.svg?style=flat-square)](https://packagist.org/packages/rector/swiss-knife/stats) Swiss knife in pocket of every upgrade architect! @@ -9,7 +9,7 @@ Swiss knife in pocket of every upgrade architect! ## Install ```bash -composer require symplify/easy-ci --dev +composer require rector/swiss-knife --dev ``` ## Usage @@ -84,10 +84,4 @@ This will update all files in your `/src` directory, to starts with `App\\` and
-## Report Issues - -In case you are experiencing a bug or want to request a new feature head over to the [Symplify monorepo issue tracker](https://github.com/symplify/symplify/issues) - -## Contribute - -The sources of this package are contained in the Symplify monorepo. We welcome contributions for this package on [symplify/symplify](https://github.com/symplify/symplify). +Happy coding! diff --git a/bin/easy-ci b/bin/easy-ci deleted file mode 100755 index 5036ebb09b..0000000000 --- a/bin/easy-ci +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env php -=8.2", @@ -24,7 +24,7 @@ }, "autoload": { "psr-4": { - "Symplify\\EasyCI\\": "src" + "Rector\\SwissKnife\\": "src" }, "classmap": [ "stubs" @@ -32,7 +32,7 @@ }, "autoload-dev": { "psr-4": { - "Symplify\\EasyCI\\Tests\\": "tests" + "Rector\\SwissKnife\\Tests\\": "tests" } }, "replace": { diff --git a/src/Command/CheckCommentedCodeCommand.php b/src/Command/CheckCommentedCodeCommand.php index 521abccc33..3cf430a66f 100644 --- a/src/Command/CheckCommentedCodeCommand.php +++ b/src/Command/CheckCommentedCodeCommand.php @@ -2,17 +2,17 @@ declare(strict_types=1); -namespace Symplify\EasyCI\Command; +namespace Rector\SwissKnife\Command; +use Rector\SwissKnife\Comments\CommentedCodeAnalyzer; +use Rector\SwissKnife\Finder\FilesFinder; +use Rector\SwissKnife\ValueObject\Option; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Style\SymfonyStyle; -use Symplify\EasyCI\Comments\CommentedCodeAnalyzer; -use Symplify\EasyCI\Finder\FilesFinder; -use Symplify\EasyCI\ValueObject\Option; final class CheckCommentedCodeCommand extends Command { diff --git a/src/Command/CheckConflictsCommand.php b/src/Command/CheckConflictsCommand.php index 0019ab0d34..866a90da31 100644 --- a/src/Command/CheckConflictsCommand.php +++ b/src/Command/CheckConflictsCommand.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Symplify\EasyCI\Command; +namespace Rector\SwissKnife\Command; +use Rector\SwissKnife\Finder\FilesFinder; +use Rector\SwissKnife\Git\ConflictResolver; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Style\SymfonyStyle; -use Symplify\EasyCI\Finder\FilesFinder; -use Symplify\EasyCI\Git\ConflictResolver; final class CheckConflictsCommand extends Command { diff --git a/src/Command/DumpEditorconfigCommand.php b/src/Command/DumpEditorconfigCommand.php index 88f937ffc1..7ff3938e13 100644 --- a/src/Command/DumpEditorconfigCommand.php +++ b/src/Command/DumpEditorconfigCommand.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Symplify\EasyCI\Command; +namespace Rector\SwissKnife\Command; use Nette\Utils\FileSystem; use Symfony\Component\Console\Command\Command; diff --git a/src/Command/FindMultiClassesCommand.php b/src/Command/FindMultiClassesCommand.php index 86601b6c71..9ab804dd4e 100644 --- a/src/Command/FindMultiClassesCommand.php +++ b/src/Command/FindMultiClassesCommand.php @@ -2,14 +2,14 @@ declare(strict_types=1); -namespace Symplify\EasyCI\Command; +namespace Rector\SwissKnife\Command; +use Rector\SwissKnife\Finder\MultipleClassInOneFileFinder; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Style\SymfonyStyle; -use Symplify\EasyCI\Finder\MultipleClassInOneFileFinder; final class FindMultiClassesCommand extends Command { diff --git a/src/Command/NamespaceToPSR4Command.php b/src/Command/NamespaceToPSR4Command.php index fe50198f39..ef2e8298c7 100644 --- a/src/Command/NamespaceToPSR4Command.php +++ b/src/Command/NamespaceToPSR4Command.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Symplify\EasyCI\Command; +namespace Rector\SwissKnife\Command; use Nette\Utils\FileSystem; use Nette\Utils\Strings; diff --git a/src/Command/ValidateFileLengthCommand.php b/src/Command/ValidateFileLengthCommand.php index a52976714f..bada2397dd 100644 --- a/src/Command/ValidateFileLengthCommand.php +++ b/src/Command/ValidateFileLengthCommand.php @@ -2,15 +2,15 @@ declare(strict_types=1); -namespace Symplify\EasyCI\Command; +namespace Rector\SwissKnife\Command; +use Rector\SwissKnife\Finder\FilesFinder; +use Rector\SwissKnife\Resolver\TooLongFilesResolver; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; use Symfony\Component\Console\Style\SymfonyStyle; -use Symplify\EasyCI\Finder\FilesFinder; -use Symplify\EasyCI\Resolver\TooLongFilesResolver; final class ValidateFileLengthCommand extends Command { diff --git a/src/Comments/CommentedCodeAnalyzer.php b/src/Comments/CommentedCodeAnalyzer.php index 655951c647..dac421f47c 100644 --- a/src/Comments/CommentedCodeAnalyzer.php +++ b/src/Comments/CommentedCodeAnalyzer.php @@ -2,12 +2,12 @@ declare(strict_types=1); -namespace Symplify\EasyCI\Comments; +namespace Rector\SwissKnife\Comments; use Nette\Utils\FileSystem; /** - * @see \Symplify\EasyCI\Tests\Comments\CommentedCodeAnalyzerTest + * @see \Rector\SwissKnife\Tests\Comments\CommentedCodeAnalyzerTest */ final class CommentedCodeAnalyzer { diff --git a/src/DependencyInjection/ContainerFactory.php b/src/DependencyInjection/ContainerFactory.php index 29513891c3..2d7edcb7fa 100644 --- a/src/DependencyInjection/ContainerFactory.php +++ b/src/DependencyInjection/ContainerFactory.php @@ -2,20 +2,20 @@ declare(strict_types=1); -namespace Symplify\EasyCI\DependencyInjection; +namespace Rector\SwissKnife\DependencyInjection; use Illuminate\Container\Container; +use Rector\SwissKnife\Command\CheckCommentedCodeCommand; +use Rector\SwissKnife\Command\CheckConflictsCommand; +use Rector\SwissKnife\Command\DumpEditorconfigCommand; +use Rector\SwissKnife\Command\FindMultiClassesCommand; +use Rector\SwissKnife\Command\NamespaceToPSR4Command; +use Rector\SwissKnife\Command\ValidateFileLengthCommand; +use Rector\SwissKnife\Testing\Command\DetectUnitTestsCommand; use Symfony\Component\Console\Application; use Symfony\Component\Console\Input\ArrayInput; use Symfony\Component\Console\Output\ConsoleOutput; use Symfony\Component\Console\Style\SymfonyStyle; -use Symplify\EasyCI\Command\CheckCommentedCodeCommand; -use Symplify\EasyCI\Command\CheckConflictsCommand; -use Symplify\EasyCI\Command\DumpEditorconfigCommand; -use Symplify\EasyCI\Command\FindMultiClassesCommand; -use Symplify\EasyCI\Command\NamespaceToPSR4Command; -use Symplify\EasyCI\Command\ValidateFileLengthCommand; -use Symplify\EasyCI\Testing\Command\DetectUnitTestsCommand; final class ContainerFactory { diff --git a/src/Finder/FilesFinder.php b/src/Finder/FilesFinder.php index 7d3af3e2cb..33090868a4 100644 --- a/src/Finder/FilesFinder.php +++ b/src/Finder/FilesFinder.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Symplify\EasyCI\Finder; +namespace Rector\SwissKnife\Finder; use Symfony\Component\Finder\Finder; use Symfony\Component\Finder\SplFileInfo; diff --git a/src/Finder/MultipleClassInOneFileFinder.php b/src/Finder/MultipleClassInOneFileFinder.php index f81de6e1b3..d719a05517 100644 --- a/src/Finder/MultipleClassInOneFileFinder.php +++ b/src/Finder/MultipleClassInOneFileFinder.php @@ -2,9 +2,9 @@ declare(strict_types=1); -namespace Symplify\EasyCI\Finder; +namespace Rector\SwissKnife\Finder; -use Symplify\EasyCI\RobotLoader\PhpClassLoader; +use Rector\SwissKnife\RobotLoader\PhpClassLoader; final readonly class MultipleClassInOneFileFinder { diff --git a/src/Git/ConflictResolver.php b/src/Git/ConflictResolver.php index 23c79af52e..063d9dc3c2 100644 --- a/src/Git/ConflictResolver.php +++ b/src/Git/ConflictResolver.php @@ -2,13 +2,13 @@ declare(strict_types=1); -namespace Symplify\EasyCI\Git; +namespace Rector\SwissKnife\Git; use Nette\Utils\FileSystem; use Nette\Utils\Strings; /** - * @see \Symplify\EasyCI\Tests\Git\ConflictResolver\ConflictResolverTest + * @see \Rector\SwissKnife\Tests\Git\ConflictResolver\ConflictResolverTest */ final class ConflictResolver { diff --git a/src/Resolver/TooLongFilesResolver.php b/src/Resolver/TooLongFilesResolver.php index a9b7d7297a..c743e0ab5d 100644 --- a/src/Resolver/TooLongFilesResolver.php +++ b/src/Resolver/TooLongFilesResolver.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Symplify\EasyCI\Resolver; +namespace Rector\SwissKnife\Resolver; use Symfony\Component\Finder\SplFileInfo; diff --git a/src/RobotLoader/PhpClassLoader.php b/src/RobotLoader/PhpClassLoader.php index b5bec2a40a..078ae4b5bd 100644 --- a/src/RobotLoader/PhpClassLoader.php +++ b/src/RobotLoader/PhpClassLoader.php @@ -1,6 +1,6 @@