Skip to content

Commit bcbabbe

Browse files
authored
Update namespace to SymfonyTools (#37)
1 parent 57cdc3d commit bcbabbe

25 files changed

+62
-62
lines changed

code-block-checker.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
require __DIR__.'/vendor/autoload.php';
66

7-
use Symfony\CodeBlockChecker\Application;
8-
use Symfony\CodeBlockChecker\Kernel;
7+
use SymfonyTools\CodeBlockChecker\Application;
8+
use SymfonyTools\CodeBlockChecker\Kernel;
99
use Symfony\Component\Console\Input\ArgvInput;
1010

1111
$input = new ArgvInput();

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@
4242
},
4343
"autoload": {
4444
"psr-4": {
45-
"Symfony\\CodeBlockChecker\\": "src/"
45+
"SymfonyTools\\CodeBlockChecker\\": "src/"
4646
}
4747
},
4848
"autoload-dev": {
4949
"psr-4": {
50-
"Symfony\\CodeBlockChecker\\Tests\\": "tests/"
50+
"SymfonyTools\\CodeBlockChecker\\Tests\\": "tests/"
5151
}
5252
},
5353
"repositories": [

config/services.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ services:
99
string $cacheDir: '%kernel.cache_dir%'
1010

1111
_instanceof:
12-
Symfony\CodeBlockChecker\Service\CodeValidator\Validator:
12+
SymfonyTools\CodeBlockChecker\Service\CodeValidator\Validator:
1313
tags:
1414
- 'app.code_validator'
1515

16-
Symfony\CodeBlockChecker\:
16+
SymfonyTools\CodeBlockChecker\:
1717
resource: '../src/'
1818
exclude:
1919
- '../src/Kernel.php'
2020
- '../src/Application.php'
2121

22-
Symfony\CodeBlockChecker\Service\CodeValidator:
22+
SymfonyTools\CodeBlockChecker\Service\CodeValidator:
2323
arguments: [!tagged_iterator app.code_validator]

phpstan-baseline.neon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ parameters:
66
path: src/Kernel.php
77

88
-
9-
message: "#^Property Symfony\\\\CodeBlockChecker\\\\Kernel\\:\\:\\$container \\(Symfony\\\\Component\\\\DependencyInjection\\\\Container\\) does not accept CachedContainer\\.$#"
9+
message: "#^Property SymfonyTools\\\\CodeBlockChecker\\\\Kernel\\:\\:\\$container \\(Symfony\\\\Component\\\\DependencyInjection\\\\Container\\) does not accept CachedContainer\\.$#"
1010
count: 1
1111
path: src/Kernel.php
1212

src/Application.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace Symfony\CodeBlockChecker;
5+
namespace SymfonyTools\CodeBlockChecker;
66

77
use Symfony\Component\Console\Application as BaseApplication;
88
use Symfony\Component\Console\Input\InputInterface;

src/Command/CacheClearCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace Symfony\CodeBlockChecker\Command;
5+
namespace SymfonyTools\CodeBlockChecker\Command;
66

77
use Symfony\Component\Console\Command\Command;
88
use Symfony\Component\Console\Input\InputInterface;

src/Command/CheckDocsCommand.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,14 @@
22

33
declare(strict_types=1);
44

5-
namespace Symfony\CodeBlockChecker\Command;
5+
namespace SymfonyTools\CodeBlockChecker\Command;
66

77
use Doctrine\RST\Builder\Documents;
88
use Doctrine\RST\Builder\ParseQueue;
99
use Doctrine\RST\Builder\ParseQueueProcessor;
1010
use Doctrine\RST\ErrorManager;
1111
use Doctrine\RST\Event\PostNodeCreateEvent;
1212
use Doctrine\RST\Meta\Metas;
13-
use Symfony\CodeBlockChecker\Issue\IssueCollection;
14-
use Symfony\CodeBlockChecker\Listener\CodeNodeCollector;
15-
use Symfony\CodeBlockChecker\Service\Baseline;
16-
use Symfony\CodeBlockChecker\Service\CodeNodeRunner;
17-
use Symfony\CodeBlockChecker\Service\CodeValidator;
1813
use Symfony\Component\Console\Command\Command;
1914
use Symfony\Component\Console\Input\InputArgument;
2015
use Symfony\Component\Console\Input\InputInterface;
@@ -24,6 +19,11 @@
2419
use Symfony\Component\Filesystem\Filesystem;
2520
use Symfony\Component\Finder\Finder;
2621
use SymfonyDocsBuilder\BuildConfig;
22+
use SymfonyTools\CodeBlockChecker\Issue\IssueCollection;
23+
use SymfonyTools\CodeBlockChecker\Listener\CodeNodeCollector;
24+
use SymfonyTools\CodeBlockChecker\Service\Baseline;
25+
use SymfonyTools\CodeBlockChecker\Service\CodeNodeRunner;
26+
use SymfonyTools\CodeBlockChecker\Service\CodeValidator;
2727

2828
class CheckDocsCommand extends Command
2929
{

src/Issue/Issue.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22

3-
namespace Symfony\CodeBlockChecker\Issue;
3+
namespace SymfonyTools\CodeBlockChecker\Issue;
44

55
use Doctrine\RST\Nodes\CodeNode;
6-
use Symfony\CodeBlockChecker\Service\LineDetector;
6+
use SymfonyTools\CodeBlockChecker\Service\LineDetector;
77

88
/**
99
* Represent an error with some code.

src/Issue/IssueCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Symfony\CodeBlockChecker\Issue;
3+
namespace SymfonyTools\CodeBlockChecker\Issue;
44

55
class IssueCollection implements \Iterator, \Countable
66
{

src/Kernel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Symfony\CodeBlockChecker;
3+
namespace SymfonyTools\CodeBlockChecker;
44

55
use Psr\Container\ContainerInterface;
66
use Symfony\Component\Config\FileLocator;

src/Listener/CodeNodeCollector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
declare(strict_types=1);
44

5-
namespace Symfony\CodeBlockChecker\Listener;
5+
namespace SymfonyTools\CodeBlockChecker\Listener;
66

77
use Doctrine\RST\Event\PostNodeCreateEvent;
88
use Doctrine\RST\Nodes\CodeNode;

src/Service/Baseline.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22

3-
namespace Symfony\CodeBlockChecker\Service;
3+
namespace SymfonyTools\CodeBlockChecker\Service;
44

5-
use Symfony\CodeBlockChecker\Issue\Issue;
6-
use Symfony\CodeBlockChecker\Issue\IssueCollection;
5+
use SymfonyTools\CodeBlockChecker\Issue\Issue;
6+
use SymfonyTools\CodeBlockChecker\Issue\IssueCollection;
77

88
/**
99
* @author Tobias Nyholm <tobias.nyholm@gmail.com>

src/Service/CodeNodeRunner.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<?php
22

3-
namespace Symfony\CodeBlockChecker\Service;
3+
namespace SymfonyTools\CodeBlockChecker\Service;
44

55
use Doctrine\RST\Nodes\CodeNode;
6-
use Symfony\CodeBlockChecker\Issue\Issue;
7-
use Symfony\CodeBlockChecker\Issue\IssueCollection;
86
use Symfony\Component\Filesystem\Filesystem;
97
use Symfony\Component\Process\Process;
8+
use SymfonyTools\CodeBlockChecker\Issue\Issue;
9+
use SymfonyTools\CodeBlockChecker\Issue\IssueCollection;
1010

1111
/**
1212
* Runs code nodes in a real application.

src/Service/CodeValidator.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
declare(strict_types=1);
44

5-
namespace Symfony\CodeBlockChecker\Service;
5+
namespace SymfonyTools\CodeBlockChecker\Service;
66

7-
use Symfony\CodeBlockChecker\Issue\IssueCollection;
8-
use Symfony\CodeBlockChecker\Service\CodeValidator\Validator;
7+
use SymfonyTools\CodeBlockChecker\Issue\IssueCollection;
8+
use SymfonyTools\CodeBlockChecker\Service\CodeValidator\Validator;
99

1010
/**
1111
* Verify that all code nodes has the correct syntax.

src/Service/CodeValidator/JsonValidator.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?php
22

3-
namespace Symfony\CodeBlockChecker\Service\CodeValidator;
3+
namespace SymfonyTools\CodeBlockChecker\Service\CodeValidator;
44

55
use Doctrine\RST\Nodes\CodeNode;
6-
use Symfony\CodeBlockChecker\Issue\Issue;
7-
use Symfony\CodeBlockChecker\Issue\IssueCollection;
6+
use SymfonyTools\CodeBlockChecker\Issue\Issue;
7+
use SymfonyTools\CodeBlockChecker\Issue\IssueCollection;
88

99
class JsonValidator implements Validator
1010
{

src/Service/CodeValidator/PhpValidator.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php
22

3-
namespace Symfony\CodeBlockChecker\Service\CodeValidator;
3+
namespace SymfonyTools\CodeBlockChecker\Service\CodeValidator;
44

55
use Doctrine\RST\Nodes\CodeNode;
6-
use Symfony\CodeBlockChecker\Issue\Issue;
7-
use Symfony\CodeBlockChecker\Issue\IssueCollection;
86
use Symfony\Component\Process\Process;
7+
use SymfonyTools\CodeBlockChecker\Issue\Issue;
8+
use SymfonyTools\CodeBlockChecker\Issue\IssueCollection;
99

1010
class PhpValidator implements Validator
1111
{

src/Service/CodeValidator/TwigValidator.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?php
22

3-
namespace Symfony\CodeBlockChecker\Service\CodeValidator;
3+
namespace SymfonyTools\CodeBlockChecker\Service\CodeValidator;
44

55
use Doctrine\RST\Nodes\CodeNode;
6-
use Symfony\CodeBlockChecker\Issue\Issue;
7-
use Symfony\CodeBlockChecker\Issue\IssueCollection;
8-
use Symfony\CodeBlockChecker\Twig\DummyExtension;
6+
use SymfonyTools\CodeBlockChecker\Issue\Issue;
7+
use SymfonyTools\CodeBlockChecker\Issue\IssueCollection;
8+
use SymfonyTools\CodeBlockChecker\Twig\DummyExtension;
99
use Twig\Environment;
1010
use Twig\Error\SyntaxError;
1111
use Twig\Loader\ArrayLoader;

src/Service/CodeValidator/Validator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?php
22

3-
namespace Symfony\CodeBlockChecker\Service\CodeValidator;
3+
namespace SymfonyTools\CodeBlockChecker\Service\CodeValidator;
44

55
use Doctrine\RST\Nodes\CodeNode;
6-
use Symfony\CodeBlockChecker\Issue\IssueCollection;
6+
use SymfonyTools\CodeBlockChecker\Issue\IssueCollection;
77

88
interface Validator
99
{

src/Service/CodeValidator/XmlValidator.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?php
22

3-
namespace Symfony\CodeBlockChecker\Service\CodeValidator;
3+
namespace SymfonyTools\CodeBlockChecker\Service\CodeValidator;
44

55
use Doctrine\RST\Nodes\CodeNode;
6-
use Symfony\CodeBlockChecker\Issue\Issue;
7-
use Symfony\CodeBlockChecker\Issue\IssueCollection;
6+
use SymfonyTools\CodeBlockChecker\Issue\Issue;
7+
use SymfonyTools\CodeBlockChecker\Issue\IssueCollection;
88

99
class XmlValidator implements Validator
1010
{

src/Service/CodeValidator/YamlValidator.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<?php
22

3-
namespace Symfony\CodeBlockChecker\Service\CodeValidator;
3+
namespace SymfonyTools\CodeBlockChecker\Service\CodeValidator;
44

55
use Doctrine\RST\Nodes\CodeNode;
6-
use Symfony\CodeBlockChecker\Issue\Issue;
7-
use Symfony\CodeBlockChecker\Issue\IssueCollection;
86
use Symfony\Component\Yaml\Exception\ParseException;
97
use Symfony\Component\Yaml\Yaml;
8+
use SymfonyTools\CodeBlockChecker\Issue\Issue;
9+
use SymfonyTools\CodeBlockChecker\Issue\IssueCollection;
1010

1111
class YamlValidator implements Validator
1212
{

src/Service/LineDetector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Symfony\CodeBlockChecker\Service;
3+
namespace SymfonyTools\CodeBlockChecker\Service;
44

55
use Doctrine\RST\Nodes\CodeNode;
66

src/Twig/DummyExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Symfony\CodeBlockChecker\Twig;
3+
namespace SymfonyTools\CodeBlockChecker\Twig;
44

55
use Twig\Extension\AbstractExtension;
66
use Twig\TwigFilter;

tests/Service/Validator/PhpValidatorTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<?php
22

3-
namespace Symfony\CodeBlockChecker\Tests\Service\Validator;
3+
namespace SymfonyTools\CodeBlockChecker\Tests\Service\Validator;
44

55
use Doctrine\RST\Configuration;
66
use Doctrine\RST\Environment;
77
use Doctrine\RST\Nodes\CodeNode;
88
use PHPUnit\Framework\TestCase;
9-
use Symfony\CodeBlockChecker\Issue\IssueCollection;
10-
use Symfony\CodeBlockChecker\Service\CodeValidator\PhpValidator;
11-
use Symfony\CodeBlockChecker\Service\CodeValidator\Validator;
9+
use SymfonyTools\CodeBlockChecker\Issue\IssueCollection;
10+
use SymfonyTools\CodeBlockChecker\Service\CodeValidator\PhpValidator;
11+
use SymfonyTools\CodeBlockChecker\Service\CodeValidator\Validator;
1212

1313
class PhpValidatorTest extends TestCase
1414
{

tests/Service/Validator/TwigValidatorTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<?php
22

3-
namespace Symfony\CodeBlockChecker\Tests\Service\Validator;
3+
namespace SymfonyTools\CodeBlockChecker\Tests\Service\Validator;
44

55
use Doctrine\RST\Configuration;
66
use Doctrine\RST\Environment;
77
use Doctrine\RST\Nodes\CodeNode;
88
use PHPUnit\Framework\TestCase;
9-
use Symfony\CodeBlockChecker\Issue\IssueCollection;
10-
use Symfony\CodeBlockChecker\Service\CodeValidator\TwigValidator;
11-
use Symfony\CodeBlockChecker\Service\CodeValidator\Validator;
9+
use SymfonyTools\CodeBlockChecker\Issue\IssueCollection;
10+
use SymfonyTools\CodeBlockChecker\Service\CodeValidator\TwigValidator;
11+
use SymfonyTools\CodeBlockChecker\Service\CodeValidator\Validator;
1212

1313
class TwigValidatorTest extends TestCase
1414
{

tests/Service/Validator/YamlValidatorTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<?php
22

3-
namespace Symfony\CodeBlockChecker\Tests\Service\Validator;
3+
namespace SymfonyTools\CodeBlockChecker\Tests\Service\Validator;
44

55
use Doctrine\RST\Configuration;
66
use Doctrine\RST\Environment;
77
use Doctrine\RST\Nodes\CodeNode;
88
use PHPUnit\Framework\TestCase;
9-
use Symfony\CodeBlockChecker\Issue\IssueCollection;
10-
use Symfony\CodeBlockChecker\Service\CodeValidator\Validator;
11-
use Symfony\CodeBlockChecker\Service\CodeValidator\YamlValidator;
9+
use SymfonyTools\CodeBlockChecker\Issue\IssueCollection;
10+
use SymfonyTools\CodeBlockChecker\Service\CodeValidator\Validator;
11+
use SymfonyTools\CodeBlockChecker\Service\CodeValidator\YamlValidator;
1212

1313
class YamlValidatorTest extends TestCase
1414
{

0 commit comments

Comments
 (0)