Skip to content

Commit 3282547

Browse files
committed
moving symfony and doctrine rules
1 parent 4522cb1 commit 3282547

File tree

56 files changed

+94
-86
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+94
-86
lines changed

config/doctrine-rules.neon

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
rules:
2+
- Symplify\PHPStanRules\PHPStan\Rules\Doctrine\NoGetRepositoryOutsideServiceRule
3+
- Symplify\PHPStanRules\PHPStan\Rules\Doctrine\NoParentRepositoryRule
4+
- Symplify\PHPStanRules\PHPStan\Rules\Doctrine\NoRepositoryCallInDataFixtureRule

config/symfony-rules.neon

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
rules:
2+
- Symplify\PHPStanRules\PHPStan\Rule\NoAbstractControllerConstructorRule
3+
- Symplify\PHPStanRules\PHPStan\Rule\NoRequiredOutsideClassRule
4+
- Symplify\PHPStanRules\PHPStan\Rule\SingleArgEventDispatchRule

src/Doctrine/DoctrineEntityDocumentAnalyser.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 TomasVotruba\Handyman\PHPStan;
5+
namespace Symplify\PHPStanRules\PHPStan;
66

77
use PHPStan\PhpDoc\ResolvedPhpDocBlock;
88
use PHPStan\Reflection\ClassReflection;

src/Rules/Doctrine/NoGetRepositoryOutsideServiceRule.php renamed to src/PHPStan/Rules/Doctrine/NoGetRepositoryOutsideServiceRule.php

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

33
declare(strict_types=1);
44

5-
namespace TomasVotruba\Handyman\PHPStan\Rule;
5+
namespace Symplify\PHPStanRules\PHPStan\Rules\Doctrine;
66

77
use PhpParser\Node;
88
use PhpParser\Node\Expr\MethodCall;
@@ -16,7 +16,7 @@
1616
* Check if abstract controller has constructor, as it should use
1717
* #[Require] instead to avoid parent constructor override
1818
*
19-
* @see \TomasVotruba\Handyman\Tests\PHPStan\Rule\NoGetRepositoryOutsideServiceRule\NoGetRepositoryOutsideServiceRuleTest
19+
* @see \Symplify\PHPStanRules\Tests\PHPStan\Rule\NoGetRepositoryOutsideServiceRule\NoGetRepositoryOutsideServiceRuleTest
2020
*
2121
* @implements Rule<MethodCall>
2222
*/

src/Rules/Doctrine/NoParentRepositoryRule.php renamed to src/PHPStan/Rules/Doctrine/NoParentRepositoryRule.php

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

33
declare(strict_types=1);
44

5-
namespace TomasVotruba\Handyman\PHPStan\Rule;
5+
namespace Symplify\PHPStanRules\PHPStan\Rules\Doctrine;
66

77
use PhpParser\Node;
88
use PhpParser\Node\Name;
@@ -16,7 +16,7 @@
1616
* Check if class extends repository class,
1717
* the entity manager should be injected via constructor instead
1818
*
19-
* @see \TomasVotruba\Handyman\Tests\PHPStan\Rule\NoParentRepositoryRule\NoParentRepositoryRuleTest
19+
* @see \Symplify\PHPStanRules\Tests\PHPStan\Rule\NoParentRepositoryRule\NoParentRepositoryRuleTest
2020
*
2121
* @implements Rule<Class_>
2222
*/

src/Rules/Doctrine/NoRepositoryCallInDataFixtureRule.php renamed to src/PHPStan/Rules/Doctrine/NoRepositoryCallInDataFixtureRule.php

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

33
declare(strict_types=1);
44

5-
namespace TomasVotruba\Handyman\PHPStan\Rule;
5+
namespace Symplify\PHPStanRules\PHPStan\Rules\Doctrine;
66

77
use PhpParser\Node;
88
use PhpParser\Node\Expr\MethodCall;
@@ -11,7 +11,7 @@
1111
use PHPStan\Rules\Rule;
1212

1313
/**
14-
* @see \TomasVotruba\Handyman\Tests\PHPStan\Rule\NoRepositoryCallInDataFixtureRule\NoRepositoryCallInDataFixtureRuleTest
14+
* @see \Symplify\PHPStanRules\Tests\PHPStan\Rule\NoRepositoryCallInDataFixtureRule\NoRepositoryCallInDataFixtureRuleTest
1515
*
1616
* @implements Rule<MethodCall>
1717
*/

src/Rules/Complexity/NoConstructorOverrideRule.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 TomasVotruba\Handyman\PHPStan\Rule;
5+
namespace Symplify\PHPStanRules\PHPStan\Rule;
66

77
use PhpParser\Node;
88
use PhpParser\Node\Expr\StaticCall;

src/Rules/Doctrine/NoDocumentMockingRule.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 TomasVotruba\Handyman\PHPStan\Rule;
5+
namespace Symplify\PHPStanRules\Rules\Doctrine;
66

77
use PhpParser\Node;
88
use PhpParser\Node\Expr\MethodCall;

src/Rules/Doctrine/NoEntityMockingRule.php

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

33
declare(strict_types=1);
44

5-
namespace TomasVotruba\Handyman\PHPStan\Rule;
5+
namespace Symplify\PHPStanRules\Rules\Doctrine;
66

77
use PhpParser\Node;
88
use PhpParser\Node\Expr\MethodCall;
@@ -12,13 +12,13 @@
1212
use PHPStan\Rules\Rule;
1313
use PHPStan\Rules\RuleError;
1414
use PHPStan\Rules\RuleErrorBuilder;
15-
use TomasVotruba\Handyman\PHPStan\DoctrineEntityDocumentAnalyser;
15+
use Symplify\PHPStanRules\PHPStan\DoctrineEntityDocumentAnalyser;
1616

1717
/**
1818
* The ORM entities and ODM documents should never be mocked, as it leads to typeless code.
1919
* Use them directly instead.
2020
*
21-
* @see \TomasVotruba\Handyman\Tests\PHPStan\Rule\NoEntityMockingRule\NoEntityMockingRuleTest
21+
* @see \Symplify\PHPStanRules\Tests\PHPStan\Rule\NoEntityMockingRule\NoEntityMockingRuleTest
2222
* @implements Rule<MethodCall>
2323
*/
2424
final readonly class NoEntityMockingRule implements Rule

src/Rules/PHPUnit/NoMockOnlyTestRule.php

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

33
declare(strict_types=1);
44

5-
namespace TomasVotruba\Handyman\PHPStan\Rule;
5+
namespace Symplify\PHPStanRules\PHPStan\Rule;
66

77
use PhpParser\Node;
88
use PhpParser\Node\Name;
@@ -12,10 +12,10 @@
1212
use PHPStan\Rules\Rule;
1313
use PHPStan\Rules\RuleError;
1414
use PHPStan\Rules\RuleErrorBuilder;
15-
use TomasVotruba\Handyman\PHPStan\PHPUnitTestAnalyser;
15+
use Symplify\PHPStanRules\PHPStan\PHPUnitTestAnalyser;
1616

1717
/**
18-
* @see \TomasVotruba\Handyman\Tests\PHPStan\Rule\NoMockOnlyTestRule\NoMockOnlyTestRuleTest
18+
* @see \Symplify\PHPStanRules\Tests\PHPStan\Rule\NoMockOnlyTestRule\NoMockOnlyTestRuleTest
1919
*
2020
* @implements Rule<InClassNode>
2121
*/

0 commit comments

Comments
 (0)