Skip to content

Commit e32fa14

Browse files
committed
Renamed rules to conform to the *Rule naming
1 parent 82a592c commit e32fa14

13 files changed

+24
-24
lines changed

rules.neon

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@ rules:
1717
- PHPStan\Rules\Methods\MissingMethodParameterTypehintRule
1818
- PHPStan\Rules\Methods\MissingMethodReturnTypehintRule
1919
- PHPStan\Rules\Methods\WrongCaseOfInheritedMethodRule
20-
- PHPStan\Rules\Operators\OperandsInArithmeticAddition
21-
- PHPStan\Rules\Operators\OperandsInArithmeticDivision
22-
- PHPStan\Rules\Operators\OperandsInArithmeticExponentiation
23-
- PHPStan\Rules\Operators\OperandsInArithmeticModulo
24-
- PHPStan\Rules\Operators\OperandsInArithmeticMultiplication
25-
- PHPStan\Rules\Operators\OperandsInArithmeticSubtraction
20+
- PHPStan\Rules\Operators\OperandsInArithmeticAdditionRule
21+
- PHPStan\Rules\Operators\OperandsInArithmeticDivisionRule
22+
- PHPStan\Rules\Operators\OperandsInArithmeticExponentiationRule
23+
- PHPStan\Rules\Operators\OperandsInArithmeticModuloRule
24+
- PHPStan\Rules\Operators\OperandsInArithmeticMultiplicationRule
25+
- PHPStan\Rules\Operators\OperandsInArithmeticSubtractionRule
2626
- PHPStan\Rules\Properties\MissingPropertyTypehintRule
2727
- PHPStan\Rules\StrictCalls\DynamicCallOnStaticMethodsRule
2828
- PHPStan\Rules\StrictCalls\StrictFunctionCallsRule

src/Rules/Operators/OperandsInArithmeticAddition.php renamed to src/Rules/Operators/OperandsInArithmeticAdditionRule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use PHPStan\Type\ArrayType;
66
use PHPStan\Type\MixedType;
77

8-
class OperandsInArithmeticAddition implements \PHPStan\Rules\Rule
8+
class OperandsInArithmeticAdditionRule implements \PHPStan\Rules\Rule
99
{
1010

1111
public function getNodeType(): string

src/Rules/Operators/OperandsInArithmeticDivision.php renamed to src/Rules/Operators/OperandsInArithmeticDivisionRule.php

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

33
namespace PHPStan\Rules\Operators;
44

5-
class OperandsInArithmeticDivision implements \PHPStan\Rules\Rule
5+
class OperandsInArithmeticDivisionRule implements \PHPStan\Rules\Rule
66
{
77

88
public function getNodeType(): string

src/Rules/Operators/OperandsInArithmeticExponentiation.php renamed to src/Rules/Operators/OperandsInArithmeticExponentiationRule.php

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

33
namespace PHPStan\Rules\Operators;
44

5-
class OperandsInArithmeticExponentiation implements \PHPStan\Rules\Rule
5+
class OperandsInArithmeticExponentiationRule implements \PHPStan\Rules\Rule
66
{
77

88
public function getNodeType(): string

src/Rules/Operators/OperandsInArithmeticModulo.php renamed to src/Rules/Operators/OperandsInArithmeticModuloRule.php

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

33
namespace PHPStan\Rules\Operators;
44

5-
class OperandsInArithmeticModulo implements \PHPStan\Rules\Rule
5+
class OperandsInArithmeticModuloRule implements \PHPStan\Rules\Rule
66
{
77

88
public function getNodeType(): string

src/Rules/Operators/OperandsInArithmeticMultiplication.php renamed to src/Rules/Operators/OperandsInArithmeticMultiplicationRule.php

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

33
namespace PHPStan\Rules\Operators;
44

5-
class OperandsInArithmeticMultiplication implements \PHPStan\Rules\Rule
5+
class OperandsInArithmeticMultiplicationRule implements \PHPStan\Rules\Rule
66
{
77

88
public function getNodeType(): string

src/Rules/Operators/OperandsInArithmeticSubtraction.php renamed to src/Rules/Operators/OperandsInArithmeticSubtractionRule.php

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

33
namespace PHPStan\Rules\Operators;
44

5-
class OperandsInArithmeticSubtraction implements \PHPStan\Rules\Rule
5+
class OperandsInArithmeticSubtractionRule implements \PHPStan\Rules\Rule
66
{
77

88
public function getNodeType(): string

tests/Rules/Operators/OperandsInArithmeticAdditionTest.php renamed to tests/Rules/Operators/OperandsInArithmeticAdditionRuleTest.php

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

55
use PHPStan\Rules\Rule;
66

7-
class OperandsInArithmeticAdditionTest extends \PHPStan\Testing\RuleTestCase
7+
class OperandsInArithmeticAdditionRuleTest extends \PHPStan\Testing\RuleTestCase
88
{
99

1010
protected function getRule(): Rule
1111
{
12-
return new OperandsInArithmeticAddition();
12+
return new OperandsInArithmeticAdditionRule();
1313
}
1414

1515
public function testRule(): void

tests/Rules/Operators/OperandsInArithmeticDivisionTest.php renamed to tests/Rules/Operators/OperandsInArithmeticDivisionRuleTest.php

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

55
use PHPStan\Rules\Rule;
66

7-
class OperandsInArithmeticDivisionTest extends \PHPStan\Testing\RuleTestCase
7+
class OperandsInArithmeticDivisionRuleTest extends \PHPStan\Testing\RuleTestCase
88
{
99

1010
protected function getRule(): Rule
1111
{
12-
return new OperandsInArithmeticDivision();
12+
return new OperandsInArithmeticDivisionRule();
1313
}
1414

1515
public function testRule(): void

tests/Rules/Operators/OperandsInArithmeticExponentiationTest.php renamed to tests/Rules/Operators/OperandsInArithmeticExponentiationRuleTest.php

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

55
use PHPStan\Rules\Rule;
66

7-
class OperandsInArithmeticExponentiationTest extends \PHPStan\Testing\RuleTestCase
7+
class OperandsInArithmeticExponentiationRuleTest extends \PHPStan\Testing\RuleTestCase
88
{
99

1010
protected function getRule(): Rule
1111
{
12-
return new OperandsInArithmeticExponentiation();
12+
return new OperandsInArithmeticExponentiationRule();
1313
}
1414

1515
public function testRule(): void

0 commit comments

Comments
 (0)