From bcbabbe87c7980606c3907f2b25645d51680976c Mon Sep 17 00:00:00 2001 From: Tobias Nyholm Date: Fri, 23 Apr 2021 15:51:24 +0200 Subject: [PATCH] Update namespace to SymfonyTools (#37) --- code-block-checker.php | 4 ++-- composer.json | 4 ++-- config/services.yaml | 6 +++--- phpstan-baseline.neon | 2 +- src/Application.php | 2 +- src/Command/CacheClearCommand.php | 2 +- src/Command/CheckDocsCommand.php | 12 ++++++------ src/Issue/Issue.php | 4 ++-- src/Issue/IssueCollection.php | 2 +- src/Kernel.php | 2 +- src/Listener/CodeNodeCollector.php | 2 +- src/Service/Baseline.php | 6 +++--- src/Service/CodeNodeRunner.php | 6 +++--- src/Service/CodeValidator.php | 6 +++--- src/Service/CodeValidator/JsonValidator.php | 6 +++--- src/Service/CodeValidator/PhpValidator.php | 6 +++--- src/Service/CodeValidator/TwigValidator.php | 8 ++++---- src/Service/CodeValidator/Validator.php | 4 ++-- src/Service/CodeValidator/XmlValidator.php | 6 +++--- src/Service/CodeValidator/YamlValidator.php | 6 +++--- src/Service/LineDetector.php | 2 +- src/Twig/DummyExtension.php | 2 +- tests/Service/Validator/PhpValidatorTest.php | 8 ++++---- tests/Service/Validator/TwigValidatorTest.php | 8 ++++---- tests/Service/Validator/YamlValidatorTest.php | 8 ++++---- 25 files changed, 62 insertions(+), 62 deletions(-) diff --git a/code-block-checker.php b/code-block-checker.php index 74467ff..b82660c 100755 --- a/code-block-checker.php +++ b/code-block-checker.php @@ -4,8 +4,8 @@ require __DIR__.'/vendor/autoload.php'; -use Symfony\CodeBlockChecker\Application; -use Symfony\CodeBlockChecker\Kernel; +use SymfonyTools\CodeBlockChecker\Application; +use SymfonyTools\CodeBlockChecker\Kernel; use Symfony\Component\Console\Input\ArgvInput; $input = new ArgvInput(); diff --git a/composer.json b/composer.json index ee74df1..b03c6de 100644 --- a/composer.json +++ b/composer.json @@ -42,12 +42,12 @@ }, "autoload": { "psr-4": { - "Symfony\\CodeBlockChecker\\": "src/" + "SymfonyTools\\CodeBlockChecker\\": "src/" } }, "autoload-dev": { "psr-4": { - "Symfony\\CodeBlockChecker\\Tests\\": "tests/" + "SymfonyTools\\CodeBlockChecker\\Tests\\": "tests/" } }, "repositories": [ diff --git a/config/services.yaml b/config/services.yaml index 2367262..849627a 100644 --- a/config/services.yaml +++ b/config/services.yaml @@ -9,15 +9,15 @@ services: string $cacheDir: '%kernel.cache_dir%' _instanceof: - Symfony\CodeBlockChecker\Service\CodeValidator\Validator: + SymfonyTools\CodeBlockChecker\Service\CodeValidator\Validator: tags: - 'app.code_validator' - Symfony\CodeBlockChecker\: + SymfonyTools\CodeBlockChecker\: resource: '../src/' exclude: - '../src/Kernel.php' - '../src/Application.php' - Symfony\CodeBlockChecker\Service\CodeValidator: + SymfonyTools\CodeBlockChecker\Service\CodeValidator: arguments: [!tagged_iterator app.code_validator] diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon index 128c537..fb7dbdb 100644 --- a/phpstan-baseline.neon +++ b/phpstan-baseline.neon @@ -6,7 +6,7 @@ parameters: path: src/Kernel.php - - message: "#^Property Symfony\\\\CodeBlockChecker\\\\Kernel\\:\\:\\$container \\(Symfony\\\\Component\\\\DependencyInjection\\\\Container\\) does not accept CachedContainer\\.$#" + message: "#^Property SymfonyTools\\\\CodeBlockChecker\\\\Kernel\\:\\:\\$container \\(Symfony\\\\Component\\\\DependencyInjection\\\\Container\\) does not accept CachedContainer\\.$#" count: 1 path: src/Kernel.php diff --git a/src/Application.php b/src/Application.php index c7a8d7b..581a717 100644 --- a/src/Application.php +++ b/src/Application.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Symfony\CodeBlockChecker; +namespace SymfonyTools\CodeBlockChecker; use Symfony\Component\Console\Application as BaseApplication; use Symfony\Component\Console\Input\InputInterface; diff --git a/src/Command/CacheClearCommand.php b/src/Command/CacheClearCommand.php index 10593b0..9f961bc 100644 --- a/src/Command/CacheClearCommand.php +++ b/src/Command/CacheClearCommand.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Symfony\CodeBlockChecker\Command; +namespace SymfonyTools\CodeBlockChecker\Command; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; diff --git a/src/Command/CheckDocsCommand.php b/src/Command/CheckDocsCommand.php index 5402a22..44e6a6e 100644 --- a/src/Command/CheckDocsCommand.php +++ b/src/Command/CheckDocsCommand.php @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Symfony\CodeBlockChecker\Command; +namespace SymfonyTools\CodeBlockChecker\Command; use Doctrine\RST\Builder\Documents; use Doctrine\RST\Builder\ParseQueue; @@ -10,11 +10,6 @@ use Doctrine\RST\ErrorManager; use Doctrine\RST\Event\PostNodeCreateEvent; use Doctrine\RST\Meta\Metas; -use Symfony\CodeBlockChecker\Issue\IssueCollection; -use Symfony\CodeBlockChecker\Listener\CodeNodeCollector; -use Symfony\CodeBlockChecker\Service\Baseline; -use Symfony\CodeBlockChecker\Service\CodeNodeRunner; -use Symfony\CodeBlockChecker\Service\CodeValidator; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; @@ -24,6 +19,11 @@ use Symfony\Component\Filesystem\Filesystem; use Symfony\Component\Finder\Finder; use SymfonyDocsBuilder\BuildConfig; +use SymfonyTools\CodeBlockChecker\Issue\IssueCollection; +use SymfonyTools\CodeBlockChecker\Listener\CodeNodeCollector; +use SymfonyTools\CodeBlockChecker\Service\Baseline; +use SymfonyTools\CodeBlockChecker\Service\CodeNodeRunner; +use SymfonyTools\CodeBlockChecker\Service\CodeValidator; class CheckDocsCommand extends Command { diff --git a/src/Issue/Issue.php b/src/Issue/Issue.php index bdef6dc..1082a37 100644 --- a/src/Issue/Issue.php +++ b/src/Issue/Issue.php @@ -1,9 +1,9 @@ diff --git a/src/Service/CodeNodeRunner.php b/src/Service/CodeNodeRunner.php index ca9eb0f..41b4c03 100644 --- a/src/Service/CodeNodeRunner.php +++ b/src/Service/CodeNodeRunner.php @@ -1,12 +1,12 @@