Skip to content

Commit

Permalink
rebrand to swiss-knife
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Feb 8, 2024
1 parent 174f9a0 commit 0b89a22
Show file tree
Hide file tree
Showing 35 changed files with 74 additions and 80 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/bare_run.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ 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
with:
php-version: ${{ matrix.php }}
coverage: none

- run: composer require symplify/easy-ci --dev --ansi
- run: composer require rector/swiss-knife --dev --ansi
14 changes: 4 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -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!

Expand All @@ -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
Expand Down Expand Up @@ -84,10 +84,4 @@ This will update all files in your `/src` directory, to starts with `App\\` and
<br>
## 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!
4 changes: 0 additions & 4 deletions bin/easy-ci

This file was deleted.

4 changes: 4 additions & 0 deletions bin/swiss-knife
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env php
<?php

require __DIR__ . '/swiss-knife.php';
2 changes: 1 addition & 1 deletion bin/easy-ci.php → bin/swiss-knife.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use Symfony\Component\Console\Application;
use Symfony\Component\Console\Input\ArgvInput;
use Symfony\Component\Console\Output\ConsoleOutput;
use Symplify\EasyCI\DependencyInjection\ContainerFactory;
use Rector\SwissKnife\DependencyInjection\ContainerFactory;

$possibleAutoloadPaths = [
// dependency
Expand Down
2 changes: 1 addition & 1 deletion build/target-repository/composer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "symplify/easy-ci",
"name": "rector/swiss-knife",
"description": "Swiss knife in pocket of every upgrade architect",
"license": "MIT",
"require": {
Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "symplify/easy-ci",
"name": "rector/swiss-knife",
"description": "Swiss knife in pocket of every upgrade architect",
"license": "MIT",
"bin": [
"bin/easy-ci"
"bin/swiss-knife"
],
"require": {
"php": ">=8.2",
Expand All @@ -24,15 +24,15 @@
},
"autoload": {
"psr-4": {
"Symplify\\EasyCI\\": "src"
"Rector\\SwissKnife\\": "src"
},
"classmap": [
"stubs"
]
},
"autoload-dev": {
"psr-4": {
"Symplify\\EasyCI\\Tests\\": "tests"
"Rector\\SwissKnife\\Tests\\": "tests"
}
},
"replace": {
Expand Down
8 changes: 4 additions & 4 deletions src/Command/CheckCommentedCodeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
6 changes: 3 additions & 3 deletions src/Command/CheckConflictsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
2 changes: 1 addition & 1 deletion src/Command/DumpEditorconfigCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/Command/FindMultiClassesCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
2 changes: 1 addition & 1 deletion src/Command/NamespaceToPSR4Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Symplify\EasyCI\Command;
namespace Rector\SwissKnife\Command;

use Nette\Utils\FileSystem;
use Nette\Utils\Strings;
Expand Down
6 changes: 3 additions & 3 deletions src/Command/ValidateFileLengthCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
4 changes: 2 additions & 2 deletions src/Comments/CommentedCodeAnalyzer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
16 changes: 8 additions & 8 deletions src/DependencyInjection/ContainerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
2 changes: 1 addition & 1 deletion src/Finder/FilesFinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/Finder/MultipleClassInOneFileFinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
4 changes: 2 additions & 2 deletions src/Git/ConflictResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
2 changes: 1 addition & 1 deletion src/Resolver/TooLongFilesResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Symplify\EasyCI\Resolver;
namespace Rector\SwissKnife\Resolver;

use Symfony\Component\Finder\SplFileInfo;

Expand Down
2 changes: 1 addition & 1 deletion src/RobotLoader/PhpClassLoader.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php

namespace Symplify\EasyCI\RobotLoader;
namespace Rector\SwissKnife\RobotLoader;

use Nette\Loaders\RobotLoader;

Expand Down
8 changes: 4 additions & 4 deletions src/Testing/Command/DetectUnitTestsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@

declare(strict_types=1);

namespace Symplify\EasyCI\Testing\Command;
namespace Rector\SwissKnife\Testing\Command;

use Nette\Utils\FileSystem;
use Rector\SwissKnife\Testing\Printer\PHPUnitXmlPrinter;
use Rector\SwissKnife\Testing\UnitTestFilePathsFinder;
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\Output\OutputInterface;
use Symfony\Component\Console\Style\SymfonyStyle;
use Symplify\EasyCI\Testing\Printer\PHPUnitXmlPrinter;
use Symplify\EasyCI\Testing\UnitTestFilePathsFinder;
use Symplify\EasyCI\ValueObject\Option;
use Webmozart\Assert\Assert;

final class DetectUnitTestsCommand extends Command
Expand Down
2 changes: 1 addition & 1 deletion src/Testing/Finder/TestCaseClassFinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Symplify\EasyCI\Testing\Finder;
namespace Rector\SwissKnife\Testing\Finder;

use Nette\Loaders\RobotLoader;

Expand Down
2 changes: 1 addition & 1 deletion src/Testing/Printer/PHPUnitXmlPrinter.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Symplify\EasyCI\Testing\Printer;
namespace Rector\SwissKnife\Testing\Printer;

use Nette\Utils\Strings;

Expand Down
6 changes: 3 additions & 3 deletions src/Testing/UnitTestFilePathsFinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

declare(strict_types=1);

namespace Symplify\EasyCI\Testing;
namespace Rector\SwissKnife\Testing;

use Symplify\EasyCI\Testing\Finder\TestCaseClassFinder;
use Rector\SwissKnife\Testing\Finder\TestCaseClassFinder;

/**
* @see \Symplify\EasyCI\Tests\Testing\UnitTestFilePathsFinder\UnitTestFilePathsFinderTest
* @see \Rector\SwissKnife\Tests\Testing\UnitTestFilePathsFinder\UnitTestFilePathsFinderTest
*/
final readonly class UnitTestFilePathsFinder
{
Expand Down
2 changes: 1 addition & 1 deletion src/Testing/UnitTestFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Symplify\EasyCI\Testing;
namespace Rector\SwissKnife\Testing;

final class UnitTestFilter
{
Expand Down
2 changes: 1 addition & 1 deletion src/ValueObject/Option.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Symplify\EasyCI\ValueObject;
namespace Rector\SwissKnife\ValueObject;

final class Option
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Comments/CommentedCodeAnalyzerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

declare(strict_types=1);

namespace Symplify\EasyCI\Tests\Comments;
namespace Rector\SwissKnife\Tests\Comments;

use PHPUnit\Framework\TestCase;
use Symplify\EasyCI\Comments\CommentedCodeAnalyzer;
use Rector\SwissKnife\Comments\CommentedCodeAnalyzer;

final class CommentedCodeAnalyzerTest extends TestCase
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Git/ConflictResolver/ConflictResolverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

declare(strict_types=1);

namespace Symplify\EasyCI\Tests\Git\ConflictResolver;
namespace Rector\SwissKnife\Tests\Git\ConflictResolver;

use Iterator;
use PHPUnit\Framework\Attributes\DataProvider;
use PHPUnit\Framework\TestCase;
use Symplify\EasyCI\Git\ConflictResolver;
use Rector\SwissKnife\Git\ConflictResolver;

final class ConflictResolverTest extends TestCase
{
Expand Down
Loading

0 comments on commit 0b89a22

Please sign in to comment.