Skip to content
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
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
"php": ">=8.4",
"ext-tokenizer": "*",
"entropy/entropy": "^0.4.23",
"nikic/php-parser": "^5.9",
"webmozart/assert": "^2.4"
"nikic/php-parser": "^5.9"
},
"require-dev": {
"phpstan/extension-installer": "^1.4",
Expand Down
2 changes: 1 addition & 1 deletion src/Analyzer/NeedsFinalizeAnalyzer.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@

namespace Rector\SwissKnife\Analyzer;

use Entropy\Validation\Assert;
use PhpParser\NodeTraverser;
use Rector\SwissKnife\PhpParser\CachedPhpParser;
use Rector\SwissKnife\PhpParser\NodeTraverserFactory;
use Rector\SwissKnife\PhpParser\NodeVisitor\NeedForFinalizeNodeVisitor;
use Webmozart\Assert\Assert;

final readonly class NeedsFinalizeAnalyzer
{
Expand Down
2 changes: 1 addition & 1 deletion src/Command/FeaturesCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
use Entropy\Console\Contract\CommandInterface;
use Entropy\Console\Enum\ExitCode;
use Entropy\Console\Output\OutputPrinter;
use Entropy\Validation\Assert;
use Rector\SwissKnife\Lines\FeatureCounter\FeatureCounterAnalyzer;
use Rector\SwissKnife\Lines\FeatureCounter\ResultPrinter;
use Rector\SwissKnife\Lines\Finder\ProjectFilesFinder;
use Rector\SwissKnife\Lines\OutputFormatter\JsonOutputFormatter;
use Webmozart\Assert\Assert;

final readonly class FeaturesCommand implements CommandInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/Command/GenerateSymfonySmokeTestsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
use Entropy\Console\Output\OutputPrinter;
use Entropy\Utils\FileSystem;
use Entropy\Utils\Json;
use Entropy\Validation\Assert;
use Rector\SwissKnife\SmokeTestgen\FileSystem\TestsDirectoryResolver;
use Rector\SwissKnife\SmokeTestgen\Templating\TemplateDecorator;
use Rector\SwissKnife\SmokeTestgen\TestTemplateResolver;
use Rector\SwissKnife\SmokeTestgen\Utils\TestPathResolver;
use RuntimeException;
use Webmozart\Assert\Assert;

final readonly class GenerateSymfonySmokeTestsCommand implements CommandInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/Command/SplitSymfonyConfigToPerPackageCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
use Entropy\Console\Enum\ExitCode;
use Entropy\Console\Output\OutputPrinter;
use Entropy\Utils\FileSystem;
use Entropy\Validation\Assert;
use PhpParser\Node\Expr\MethodCall;
use PhpParser\Node\Scalar\String_;
use PhpParser\Node\Stmt;
Expand All @@ -19,7 +20,6 @@
use Rector\SwissKnife\PhpParser\NodeFactory\SplitConfigClosureFactory;
use Rector\SwissKnife\PhpParser\NodeVisitor\AddImportConfigMethodCallNodeVisitor;
use Rector\SwissKnife\PhpParser\NodeVisitor\ExtractSymfonyExtensionCallNodeVisitor;
use Webmozart\Assert\Assert;

final readonly class SplitSymfonyConfigToPerPackageCommand implements CommandInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/EntityClassResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@

use Entropy\FileSystem\FileInfo;
use Entropy\Utils\Regex;
use Entropy\Validation\Assert;
use PhpParser\NodeTraverser;
use Rector\SwissKnife\Finder\FilesFinder;
use Rector\SwissKnife\Finder\PhpFilesFinder;
use Rector\SwissKnife\PhpParser\CachedPhpParser;
use Rector\SwissKnife\PhpParser\NodeTraverserFactory;
use Rector\SwissKnife\PhpParser\NodeVisitor\EntityClassNameCollectingNodeVisitor;
use Webmozart\Assert\Assert;

/**
* @see \Rector\SwissKnife\Tests\EntityClassResolver\EntityClassResolverTest
Expand Down
2 changes: 1 addition & 1 deletion src/Finder/FilesFinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use Entropy\FileSystem\FileFinder;
use Entropy\FileSystem\FileInfo;
use Webmozart\Assert\Assert;
use Entropy\Validation\Assert;

/**
* @see \Rector\SwissKnife\Tests\Finder\FilesFinderTest
Expand Down
2 changes: 1 addition & 1 deletion src/Finder/PhpFilesFinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use Entropy\FileSystem\FileFinder;
use Entropy\FileSystem\FileInfo;
use Webmozart\Assert\Assert;
use Entropy\Validation\Assert;

/**
* @see \Rector\SwissKnife\Tests\Finder\PhpFilesFinderTest
Expand Down
2 changes: 1 addition & 1 deletion src/Lines/Analyser.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@

namespace Rector\SwissKnife\Lines;

use Entropy\Validation\Assert;
use PhpParser\NodeTraverser;
use PhpParser\Parser;
use Rector\SwissKnife\Lines\NodeVisitor\CommentLineCountingNodeVisitor;
use Rector\SwissKnife\Lines\NodeVisitor\StructureNodeVisitor;
use Throwable;
use Webmozart\Assert\Assert;

/**
* @see \Rector\SwissKnife\Tests\Lines\AnalyserTest
Expand Down
2 changes: 1 addition & 1 deletion src/Lines/Finder/MeasureFileFinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use Entropy\FileSystem\FileFinder;
use Entropy\FileSystem\FileInfo;
use Webmozart\Assert\Assert;
use Entropy\Validation\Assert;

final class MeasureFileFinder
{
Expand Down
2 changes: 1 addition & 1 deletion src/Lines/OutputFormatter/JsonOutputFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

namespace Rector\SwissKnife\Lines\OutputFormatter;

use Entropy\Validation\Assert;
use Rector\SwissKnife\Lines\FeatureCounter\ValueObject\FeatureCollector;
use Rector\SwissKnife\Lines\Measurements;
use Webmozart\Assert\Assert;

final class JsonOutputFormatter
{
Expand Down
2 changes: 1 addition & 1 deletion src/Lines/OutputFormatter/TextOutputFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
use Entropy\Console\ConsoleTable\ValueObject\TableView;
use Entropy\Console\ConsoleTable\ViewRenderer;
use Entropy\Console\Output\OutputPrinter;
use Entropy\Validation\Assert;
use Rector\SwissKnife\Lines\Measurements;
use Rector\SwissKnife\Lines\NumberFormat;
use Webmozart\Assert\Assert;

final readonly class TextOutputFormatter
{
Expand Down
2 changes: 1 addition & 1 deletion src/MockedClassResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
namespace Rector\SwissKnife;

use Entropy\FileSystem\FileInfo;
use Entropy\Validation\Assert;
use PhpParser\NodeTraverser;
use Rector\SwissKnife\Finder\PhpFilesFinder;
use Rector\SwissKnife\PhpParser\CachedPhpParser;
use Rector\SwissKnife\PhpParser\NodeTraverserFactory;
use Rector\SwissKnife\PhpParser\NodeVisitor\MockedClassNameCollectingNodeVisitor;
use Webmozart\Assert\Assert;

final readonly class MockedClassResolver
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@

namespace Rector\SwissKnife\PhpParser\NodeVisitor;

use Entropy\Validation\Assert;
use PhpParser\Comment\Doc;
use PhpParser\Node;
use PhpParser\Node\Name;
use PhpParser\Node\Stmt\Class_;
use PhpParser\NodeVisitorAbstract;
use Webmozart\Assert\Assert;

final class EntityClassNameCollectingNodeVisitor extends NodeVisitorAbstract
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace Rector\SwissKnife\PhpParser\NodeVisitor;

use Entropy\Validation\Assert;
use PhpParser\Node;
use PhpParser\Node\Expr;
use PhpParser\Node\Expr\ClassConstFetch;
Expand All @@ -23,7 +24,6 @@
use Rector\SwissKnife\ValueObject\ClassConstantFetch\ParentClassConstantFetch;
use Rector\SwissKnife\ValueObject\ClassConstantFetch\StaticClassConstantFetch;
use ReflectionClass;
use Webmozart\Assert\Assert;

final class FindClassConstFetchNodeVisitor extends NodeVisitorAbstract
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

namespace Rector\SwissKnife\PhpParser\NodeVisitor;

use Entropy\Validation\Assert;
use PhpParser\Node;
use PhpParser\Node\Name;
use PhpParser\Node\Stmt\Class_;
use PhpParser\NodeVisitorAbstract;
use Rector\SwissKnife\ValueObject\ClassConstant;
use ReflectionClass;
use Webmozart\Assert\Assert;

final class FindNonPrivateClassConstNodeVisitor extends NodeVisitorAbstract
{
Expand Down
2 changes: 1 addition & 1 deletion src/SmokeTestgen/TestTemplateResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

namespace Rector\SwissKnife\SmokeTestgen;

use Entropy\Validation\Assert;
use Rector\SwissKnife\SmokeTestgen\Contract\TestByPackageSubscriberInterface;
use Rector\SwissKnife\SmokeTestgen\TestByPackageSubscriber\ServiceContainerTestByPackageSubscriber;
use Webmozart\Assert\Assert;

final class TestTemplateResolver
{
Expand Down
2 changes: 1 addition & 1 deletion src/Testing/Command/DetectUnitTestsCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
use Entropy\Console\Enum\ExitCode;
use Entropy\Console\Output\OutputPrinter;
use Entropy\Utils\FileSystem;
use Entropy\Validation\Assert;
use Rector\SwissKnife\Testing\Printer\PHPUnitXmlPrinter;
use Rector\SwissKnife\Testing\UnitTestFilePathsFinder;
use Webmozart\Assert\Assert;

final readonly class DetectUnitTestsCommand implements CommandInterface
{
Expand Down
2 changes: 1 addition & 1 deletion src/ValueObject/ClassConstant.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Rector\SwissKnife\ValueObject;

use Webmozart\Assert\Assert;
use Entropy\Validation\Assert;

final readonly class ClassConstant
{
Expand Down
Loading