File tree Expand file tree Collapse file tree 24 files changed +61
-61
lines changed Expand file tree Collapse file tree 24 files changed +61
-61
lines changed Original file line number Diff line number Diff line change 4
4
5
5
require __DIR__ .'/vendor/autoload.php ' ;
6
6
7
- use Symfony \ Tool \CodeBlockChecker \Application ;
8
- use Symfony \ Tool \CodeBlockChecker \Kernel ;
7
+ use SymfonyTools \CodeBlockChecker \Application ;
8
+ use SymfonyTools \CodeBlockChecker \Kernel ;
9
9
use Symfony \Component \Console \Input \ArgvInput ;
10
10
11
11
$ input = new ArgvInput ();
Original file line number Diff line number Diff line change 42
42
},
43
43
"autoload" : {
44
44
"psr-4" : {
45
- "Symfony \\ Tool \\ CodeBlockChecker\\ " : " src/"
45
+ "SymfonyTools \\ CodeBlockChecker\\ " : " src/"
46
46
}
47
47
},
48
48
"autoload-dev" : {
49
49
"psr-4" : {
50
- "Symfony \\ Tool \\ CodeBlockChecker\\ Tests\\ " : " tests/"
50
+ "SymfonyTools \\ CodeBlockChecker\\ Tests\\ " : " tests/"
51
51
}
52
52
},
53
53
"repositories" : [
Original file line number Diff line number Diff line change @@ -9,15 +9,15 @@ services:
9
9
string $cacheDir : ' %kernel.cache_dir%'
10
10
11
11
_instanceof :
12
- Symfony\Tool \CodeBlockChecker\Service\CodeValidator\Validator :
12
+ SymfonyTools \CodeBlockChecker\Service\CodeValidator\Validator :
13
13
tags :
14
14
- ' app.code_validator'
15
15
16
- Symfony\Tool \CodeBlockChecker\ :
16
+ SymfonyTools \CodeBlockChecker\ :
17
17
resource : ' ../src/'
18
18
exclude :
19
19
- ' ../src/Kernel.php'
20
20
- ' ../src/Application.php'
21
21
22
- Symfony\Tool \CodeBlockChecker\Service\CodeValidator :
22
+ SymfonyTools \CodeBlockChecker\Service\CodeValidator :
23
23
arguments : [!tagged_iterator app.code_validator]
Original file line number Diff line number Diff line change 2
2
3
3
declare (strict_types=1 );
4
4
5
- namespace Symfony \ Tool \CodeBlockChecker ;
5
+ namespace SymfonyTools \CodeBlockChecker ;
6
6
7
7
use Symfony \Component \Console \Application as BaseApplication ;
8
8
use Symfony \Component \Console \Input \InputInterface ;
Original file line number Diff line number Diff line change 2
2
3
3
declare (strict_types=1 );
4
4
5
- namespace Symfony \ Tool \CodeBlockChecker \Command ;
5
+ namespace SymfonyTools \CodeBlockChecker \Command ;
6
6
7
7
use Symfony \Component \Console \Command \Command ;
8
8
use Symfony \Component \Console \Input \InputInterface ;
Original file line number Diff line number Diff line change 2
2
3
3
declare (strict_types=1 );
4
4
5
- namespace Symfony \ Tool \CodeBlockChecker \Command ;
5
+ namespace SymfonyTools \CodeBlockChecker \Command ;
6
6
7
7
use Doctrine \RST \Builder \Documents ;
8
8
use Doctrine \RST \Builder \ParseQueue ;
18
18
use Symfony \Component \Console \Style \SymfonyStyle ;
19
19
use Symfony \Component \Filesystem \Filesystem ;
20
20
use Symfony \Component \Finder \Finder ;
21
- use Symfony \ Tool \CodeBlockChecker \Issue \IssueCollection ;
22
- use Symfony \ Tool \CodeBlockChecker \Listener \CodeNodeCollector ;
23
- use Symfony \ Tool \CodeBlockChecker \Service \Baseline ;
24
- use Symfony \ Tool \CodeBlockChecker \Service \CodeNodeRunner ;
25
- use Symfony \ Tool \CodeBlockChecker \Service \CodeValidator ;
21
+ use SymfonyTools \CodeBlockChecker \Issue \IssueCollection ;
22
+ use SymfonyTools \CodeBlockChecker \Listener \CodeNodeCollector ;
23
+ use SymfonyTools \CodeBlockChecker \Service \Baseline ;
24
+ use SymfonyTools \CodeBlockChecker \Service \CodeNodeRunner ;
25
+ use SymfonyTools \CodeBlockChecker \Service \CodeValidator ;
26
26
use SymfonyDocsBuilder \BuildConfig ;
27
27
28
28
class CheckDocsCommand extends Command
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
- namespace Symfony \ Tool \CodeBlockChecker \Issue ;
3
+ namespace SymfonyTools \CodeBlockChecker \Issue ;
4
4
5
5
use Doctrine \RST \Nodes \CodeNode ;
6
- use Symfony \ Tool \CodeBlockChecker \Service \LineDetector ;
6
+ use SymfonyTools \CodeBlockChecker \Service \LineDetector ;
7
7
8
8
/**
9
9
* Represent an error with some code.
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
- namespace Symfony \ Tool \CodeBlockChecker \Issue ;
3
+ namespace SymfonyTools \CodeBlockChecker \Issue ;
4
4
5
5
class IssueCollection implements \Iterator, \Countable
6
6
{
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
- namespace Symfony \ Tool \CodeBlockChecker ;
3
+ namespace SymfonyTools \CodeBlockChecker ;
4
4
5
5
use Psr \Container \ContainerInterface ;
6
6
use Symfony \Component \Config \FileLocator ;
Original file line number Diff line number Diff line change 2
2
3
3
declare (strict_types=1 );
4
4
5
- namespace Symfony \ Tool \CodeBlockChecker \Listener ;
5
+ namespace SymfonyTools \CodeBlockChecker \Listener ;
6
6
7
7
use Doctrine \RST \Event \PostNodeCreateEvent ;
8
8
use Doctrine \RST \Nodes \CodeNode ;
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
- namespace Symfony \ Tool \CodeBlockChecker \Service ;
3
+ namespace SymfonyTools \CodeBlockChecker \Service ;
4
4
5
- use Symfony \ Tool \CodeBlockChecker \Issue \Issue ;
6
- use Symfony \ Tool \CodeBlockChecker \Issue \IssueCollection ;
5
+ use SymfonyTools \CodeBlockChecker \Issue \Issue ;
6
+ use SymfonyTools \CodeBlockChecker \Issue \IssueCollection ;
7
7
8
8
/**
9
9
* @author Tobias Nyholm <tobias.nyholm@gmail.com>
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
- namespace Symfony \ Tool \CodeBlockChecker \Service ;
3
+ namespace SymfonyTools \CodeBlockChecker \Service ;
4
4
5
5
use Doctrine \RST \Nodes \CodeNode ;
6
6
use Symfony \Component \Filesystem \Filesystem ;
7
7
use Symfony \Component \Process \Process ;
8
- use Symfony \ Tool \CodeBlockChecker \Issue \Issue ;
9
- use Symfony \ Tool \CodeBlockChecker \Issue \IssueCollection ;
8
+ use SymfonyTools \CodeBlockChecker \Issue \Issue ;
9
+ use SymfonyTools \CodeBlockChecker \Issue \IssueCollection ;
10
10
11
11
/**
12
12
* Runs code nodes in a real application.
Original file line number Diff line number Diff line change 2
2
3
3
declare (strict_types=1 );
4
4
5
- namespace Symfony \ Tool \CodeBlockChecker \Service ;
5
+ namespace SymfonyTools \CodeBlockChecker \Service ;
6
6
7
- use Symfony \ Tool \CodeBlockChecker \Issue \IssueCollection ;
8
- use Symfony \ Tool \CodeBlockChecker \Service \CodeValidator \Validator ;
7
+ use SymfonyTools \CodeBlockChecker \Issue \IssueCollection ;
8
+ use SymfonyTools \CodeBlockChecker \Service \CodeValidator \Validator ;
9
9
10
10
/**
11
11
* Verify that all code nodes has the correct syntax.
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
- namespace Symfony \ Tool \CodeBlockChecker \Service \CodeValidator ;
3
+ namespace SymfonyTools \CodeBlockChecker \Service \CodeValidator ;
4
4
5
5
use Doctrine \RST \Nodes \CodeNode ;
6
- use Symfony \ Tool \CodeBlockChecker \Issue \Issue ;
7
- use Symfony \ Tool \CodeBlockChecker \Issue \IssueCollection ;
6
+ use SymfonyTools \CodeBlockChecker \Issue \Issue ;
7
+ use SymfonyTools \CodeBlockChecker \Issue \IssueCollection ;
8
8
9
9
class JsonValidator implements Validator
10
10
{
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
- namespace Symfony \ Tool \CodeBlockChecker \Service \CodeValidator ;
3
+ namespace SymfonyTools \CodeBlockChecker \Service \CodeValidator ;
4
4
5
5
use Doctrine \RST \Nodes \CodeNode ;
6
6
use Symfony \Component \Process \Process ;
7
- use Symfony \ Tool \CodeBlockChecker \Issue \Issue ;
8
- use Symfony \ Tool \CodeBlockChecker \Issue \IssueCollection ;
7
+ use SymfonyTools \CodeBlockChecker \Issue \Issue ;
8
+ use SymfonyTools \CodeBlockChecker \Issue \IssueCollection ;
9
9
10
10
class PhpValidator implements Validator
11
11
{
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
- namespace Symfony \ Tool \CodeBlockChecker \Service \CodeValidator ;
3
+ namespace SymfonyTools \CodeBlockChecker \Service \CodeValidator ;
4
4
5
5
use Doctrine \RST \Nodes \CodeNode ;
6
- use Symfony \ Tool \CodeBlockChecker \Issue \Issue ;
7
- use Symfony \ Tool \CodeBlockChecker \Issue \IssueCollection ;
8
- use Symfony \ Tool \CodeBlockChecker \Twig \DummyExtension ;
6
+ use SymfonyTools \CodeBlockChecker \Issue \Issue ;
7
+ use SymfonyTools \CodeBlockChecker \Issue \IssueCollection ;
8
+ use SymfonyTools \CodeBlockChecker \Twig \DummyExtension ;
9
9
use Twig \Environment ;
10
10
use Twig \Error \SyntaxError ;
11
11
use Twig \Loader \ArrayLoader ;
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
- namespace Symfony \ Tool \CodeBlockChecker \Service \CodeValidator ;
3
+ namespace SymfonyTools \CodeBlockChecker \Service \CodeValidator ;
4
4
5
5
use Doctrine \RST \Nodes \CodeNode ;
6
- use Symfony \ Tool \CodeBlockChecker \Issue \IssueCollection ;
6
+ use SymfonyTools \CodeBlockChecker \Issue \IssueCollection ;
7
7
8
8
interface Validator
9
9
{
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
- namespace Symfony \ Tool \CodeBlockChecker \Service \CodeValidator ;
3
+ namespace SymfonyTools \CodeBlockChecker \Service \CodeValidator ;
4
4
5
5
use Doctrine \RST \Nodes \CodeNode ;
6
- use Symfony \ Tool \CodeBlockChecker \Issue \Issue ;
7
- use Symfony \ Tool \CodeBlockChecker \Issue \IssueCollection ;
6
+ use SymfonyTools \CodeBlockChecker \Issue \Issue ;
7
+ use SymfonyTools \CodeBlockChecker \Issue \IssueCollection ;
8
8
9
9
class XmlValidator implements Validator
10
10
{
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
- namespace Symfony \ Tool \CodeBlockChecker \Service \CodeValidator ;
3
+ namespace SymfonyTools \CodeBlockChecker \Service \CodeValidator ;
4
4
5
5
use Doctrine \RST \Nodes \CodeNode ;
6
6
use Symfony \Component \Yaml \Exception \ParseException ;
7
7
use Symfony \Component \Yaml \Yaml ;
8
- use Symfony \ Tool \CodeBlockChecker \Issue \Issue ;
9
- use Symfony \ Tool \CodeBlockChecker \Issue \IssueCollection ;
8
+ use SymfonyTools \CodeBlockChecker \Issue \Issue ;
9
+ use SymfonyTools \CodeBlockChecker \Issue \IssueCollection ;
10
10
11
11
class YamlValidator implements Validator
12
12
{
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
- namespace Symfony \ Tool \CodeBlockChecker \Service ;
3
+ namespace SymfonyTools \CodeBlockChecker \Service ;
4
4
5
5
use Doctrine \RST \Nodes \CodeNode ;
6
6
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
- namespace Symfony \ Tool \CodeBlockChecker \Twig ;
3
+ namespace SymfonyTools \CodeBlockChecker \Twig ;
4
4
5
5
use Twig \Extension \AbstractExtension ;
6
6
use Twig \TwigFilter ;
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
- namespace Symfony \ Tool \CodeBlockChecker \Tests \Service \Validator ;
3
+ namespace SymfonyTools \CodeBlockChecker \Tests \Service \Validator ;
4
4
5
5
use Doctrine \RST \Configuration ;
6
6
use Doctrine \RST \Environment ;
7
7
use Doctrine \RST \Nodes \CodeNode ;
8
8
use PHPUnit \Framework \TestCase ;
9
- use Symfony \ Tool \CodeBlockChecker \Issue \IssueCollection ;
10
- use Symfony \ Tool \CodeBlockChecker \Service \CodeValidator \PhpValidator ;
11
- use Symfony \ Tool \CodeBlockChecker \Service \CodeValidator \Validator ;
9
+ use SymfonyTools \CodeBlockChecker \Issue \IssueCollection ;
10
+ use SymfonyTools \CodeBlockChecker \Service \CodeValidator \PhpValidator ;
11
+ use SymfonyTools \CodeBlockChecker \Service \CodeValidator \Validator ;
12
12
13
13
class PhpValidatorTest extends TestCase
14
14
{
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
- namespace Symfony \ Tool \CodeBlockChecker \Tests \Service \Validator ;
3
+ namespace SymfonyTools \CodeBlockChecker \Tests \Service \Validator ;
4
4
5
5
use Doctrine \RST \Configuration ;
6
6
use Doctrine \RST \Environment ;
7
7
use Doctrine \RST \Nodes \CodeNode ;
8
8
use PHPUnit \Framework \TestCase ;
9
- use Symfony \ Tool \CodeBlockChecker \Issue \IssueCollection ;
10
- use Symfony \ Tool \CodeBlockChecker \Service \CodeValidator \TwigValidator ;
11
- use Symfony \ Tool \CodeBlockChecker \Service \CodeValidator \Validator ;
9
+ use SymfonyTools \CodeBlockChecker \Issue \IssueCollection ;
10
+ use SymfonyTools \CodeBlockChecker \Service \CodeValidator \TwigValidator ;
11
+ use SymfonyTools \CodeBlockChecker \Service \CodeValidator \Validator ;
12
12
13
13
class TwigValidatorTest extends TestCase
14
14
{
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
- namespace Symfony \ Tool \CodeBlockChecker \Tests \Service \Validator ;
3
+ namespace SymfonyTools \CodeBlockChecker \Tests \Service \Validator ;
4
4
5
5
use Doctrine \RST \Configuration ;
6
6
use Doctrine \RST \Environment ;
7
7
use Doctrine \RST \Nodes \CodeNode ;
8
8
use PHPUnit \Framework \TestCase ;
9
- use Symfony \ Tool \CodeBlockChecker \Issue \IssueCollection ;
10
- use Symfony \ Tool \CodeBlockChecker \Service \CodeValidator \Validator ;
11
- use Symfony \ Tool \CodeBlockChecker \Service \CodeValidator \YamlValidator ;
9
+ use SymfonyTools \CodeBlockChecker \Issue \IssueCollection ;
10
+ use SymfonyTools \CodeBlockChecker \Service \CodeValidator \Validator ;
11
+ use SymfonyTools \CodeBlockChecker \Service \CodeValidator \YamlValidator ;
12
12
13
13
class YamlValidatorTest extends TestCase
14
14
{
You can’t perform that action at this time.
0 commit comments