From 34b3a2b94997d9a475c62969022b0c6f8443a988 Mon Sep 17 00:00:00 2001 From: Carlos A Sastre Date: Tue, 15 Aug 2023 21:24:00 +0200 Subject: [PATCH] Update coding standards --- .../unit/rules/CanOnlyDepend/DocParamTagTest.php | 16 ++++++++-------- .../rules/CanOnlyDepend/DocReturnTagTest.php | 2 +- .../rules/CanOnlyDepend/DocThrowsTagTest.php | 2 +- tests/unit/rules/CanOnlyDepend/DocVarTagTest.php | 2 +- tests/unit/rules/CanOnlyDepend/NewTest.php | 4 ++-- .../rules/CanOnlyDepend/WithBuiltInNewTest.php | 6 +++--- .../ShouldNotBeAbstract/AbstractClassTest.php | 2 +- .../ShowRuleNameAbstractClassTest.php | 2 +- .../rules/ShouldNotBeFinal/FinalClassTest.php | 2 +- .../ShowRuleNameFinalClassTest.php | 2 +- .../rules/ShouldNotDepend/DocParamTagTest.php | 16 ++++++++-------- .../rules/ShouldNotDepend/DocReturnTagTest.php | 2 +- .../rules/ShouldNotDepend/DocThrowsTagTest.php | 2 +- .../unit/rules/ShouldNotDepend/DocVarTagTest.php | 2 +- 14 files changed, 31 insertions(+), 31 deletions(-) diff --git a/tests/unit/rules/CanOnlyDepend/DocParamTagTest.php b/tests/unit/rules/CanOnlyDepend/DocParamTagTest.php index 4ea04957..7af44348 100644 --- a/tests/unit/rules/CanOnlyDepend/DocParamTagTest.php +++ b/tests/unit/rules/CanOnlyDepend/DocParamTagTest.php @@ -37,14 +37,14 @@ class DocParamTagTest extends RuleTestCase public function testRule(): void { $this->analyse(['tests/fixtures/FixtureClass.php'], [ - [sprintf('%s should not depend on %s', FixtureClass::class, SimpleClass::class), 74], - [sprintf('%s should not depend on %s', FixtureClass::class, SimpleClassTwo::class), 74], - [sprintf('%s should not depend on %s', FixtureClass::class, SimpleClassThree::class), 74], - [sprintf('%s should not depend on %s', FixtureClass::class, SimpleClassFour::class), 74], - [sprintf('%s should not depend on %s', FixtureClass::class, SimpleClassFive::class), 74], - [sprintf('%s should not depend on %s', FixtureClass::class, SimpleClassSix::class), 74], - [sprintf('%s should not depend on %s', FixtureClass::class, InterfaceWithTemplate::class), 74], - [sprintf('%s should not depend on %s', FixtureClass::class, ClassImplementing::class), 74], + [sprintf('%s should not depend on %s', FixtureClass::class, SimpleClass::class), 76], + [sprintf('%s should not depend on %s', FixtureClass::class, SimpleClassTwo::class), 76], + [sprintf('%s should not depend on %s', FixtureClass::class, SimpleClassThree::class), 76], + [sprintf('%s should not depend on %s', FixtureClass::class, SimpleClassFour::class), 76], + [sprintf('%s should not depend on %s', FixtureClass::class, SimpleClassFive::class), 76], + [sprintf('%s should not depend on %s', FixtureClass::class, SimpleClassSix::class), 76], + [sprintf('%s should not depend on %s', FixtureClass::class, InterfaceWithTemplate::class), 76], + [sprintf('%s should not depend on %s', FixtureClass::class, ClassImplementing::class), 76], ]); } diff --git a/tests/unit/rules/CanOnlyDepend/DocReturnTagTest.php b/tests/unit/rules/CanOnlyDepend/DocReturnTagTest.php index 12ad5eca..d08ea4b9 100644 --- a/tests/unit/rules/CanOnlyDepend/DocReturnTagTest.php +++ b/tests/unit/rules/CanOnlyDepend/DocReturnTagTest.php @@ -29,7 +29,7 @@ class DocReturnTagTest extends RuleTestCase public function testRule(): void { $this->analyse(['tests/fixtures/FixtureClass.php'], [ - [sprintf('%s should not depend on %s', FixtureClass::class, SimpleInterface::class), 74], + [sprintf('%s should not depend on %s', FixtureClass::class, SimpleInterface::class), 76], ]); } diff --git a/tests/unit/rules/CanOnlyDepend/DocThrowsTagTest.php b/tests/unit/rules/CanOnlyDepend/DocThrowsTagTest.php index 8fd3ee69..6bffe640 100644 --- a/tests/unit/rules/CanOnlyDepend/DocThrowsTagTest.php +++ b/tests/unit/rules/CanOnlyDepend/DocThrowsTagTest.php @@ -29,7 +29,7 @@ class DocThrowsTagTest extends RuleTestCase public function testRule(): void { $this->analyse(['tests/fixtures/FixtureClass.php'], [ - [sprintf('%s should not depend on %s', FixtureClass::class, SimpleException::class), 74], + [sprintf('%s should not depend on %s', FixtureClass::class, SimpleException::class), 76], ]); } diff --git a/tests/unit/rules/CanOnlyDepend/DocVarTagTest.php b/tests/unit/rules/CanOnlyDepend/DocVarTagTest.php index 2a5c9bee..850352c6 100644 --- a/tests/unit/rules/CanOnlyDepend/DocVarTagTest.php +++ b/tests/unit/rules/CanOnlyDepend/DocVarTagTest.php @@ -37,7 +37,7 @@ class DocVarTagTest extends RuleTestCase public function testRule(): void { $this->analyse(['tests/fixtures/FixtureClass.php'], [ - [sprintf('%s should not depend on %s', FixtureClass::class, SimpleClass::class), 77], + [sprintf('%s should not depend on %s', FixtureClass::class, SimpleClass::class), 79], ]); } diff --git a/tests/unit/rules/CanOnlyDepend/NewTest.php b/tests/unit/rules/CanOnlyDepend/NewTest.php index 5c509026..86063832 100644 --- a/tests/unit/rules/CanOnlyDepend/NewTest.php +++ b/tests/unit/rules/CanOnlyDepend/NewTest.php @@ -30,8 +30,8 @@ class NewTest extends RuleTestCase public function testRule(): void { $this->analyse(['tests/fixtures/FixtureClass.php'], [ - [sprintf('%s should not depend on %s', FixtureClass::class, SimpleException::class), 79], - [sprintf('%s should not depend on %s', FixtureClass::class, ClassImplementing::class), 82], + [sprintf('%s should not depend on %s', FixtureClass::class, SimpleException::class), 81], + [sprintf('%s should not depend on %s', FixtureClass::class, ClassImplementing::class), 84], ]); } diff --git a/tests/unit/rules/CanOnlyDepend/WithBuiltInNewTest.php b/tests/unit/rules/CanOnlyDepend/WithBuiltInNewTest.php index f4502051..b50ea247 100644 --- a/tests/unit/rules/CanOnlyDepend/WithBuiltInNewTest.php +++ b/tests/unit/rules/CanOnlyDepend/WithBuiltInNewTest.php @@ -30,9 +30,9 @@ class WithBuiltInNewTest extends RuleTestCase public function testRule(): void { $this->analyse(['tests/fixtures/FixtureClass.php'], [ - [sprintf('%s should not depend on %s', FixtureClass::class, \DateTime::class), 77], - [sprintf('%s should not depend on %s', FixtureClass::class, SimpleException::class), 79], - [sprintf('%s should not depend on %s', FixtureClass::class, ClassImplementing::class), 82], + [sprintf('%s should not depend on %s', FixtureClass::class, \DateTime::class), 79], + [sprintf('%s should not depend on %s', FixtureClass::class, SimpleException::class), 81], + [sprintf('%s should not depend on %s', FixtureClass::class, ClassImplementing::class), 84], ]); } diff --git a/tests/unit/rules/ShouldNotBeAbstract/AbstractClassTest.php b/tests/unit/rules/ShouldNotBeAbstract/AbstractClassTest.php index d05c2013..85a161cb 100644 --- a/tests/unit/rules/ShouldNotBeAbstract/AbstractClassTest.php +++ b/tests/unit/rules/ShouldNotBeAbstract/AbstractClassTest.php @@ -27,7 +27,7 @@ class AbstractClassTest extends RuleTestCase public function testRule(): void { $this->analyse(['tests/fixtures/Simple/SimpleAbstractClass.php'], [ - [sprintf('%s should not be abstract', SimpleAbstractClass::class), 7], + [sprintf('%s should not be abstract', SimpleAbstractClass::class), 5], ]); } diff --git a/tests/unit/rules/ShouldNotBeAbstract/ShowRuleNameAbstractClassTest.php b/tests/unit/rules/ShouldNotBeAbstract/ShowRuleNameAbstractClassTest.php index 15cc0af4..8abbf1f9 100644 --- a/tests/unit/rules/ShouldNotBeAbstract/ShowRuleNameAbstractClassTest.php +++ b/tests/unit/rules/ShouldNotBeAbstract/ShowRuleNameAbstractClassTest.php @@ -27,7 +27,7 @@ class ShowRuleNameAbstractClassTest extends RuleTestCase public function testRule(): void { $this->analyse(['tests/fixtures/Simple/SimpleAbstractClass.php'], [ - [sprintf('%s: %s should not be abstract', self::RULE_NAME, SimpleAbstractClass::class), 7], + [sprintf('%s: %s should not be abstract', self::RULE_NAME, SimpleAbstractClass::class), 5], ]); } diff --git a/tests/unit/rules/ShouldNotBeFinal/FinalClassTest.php b/tests/unit/rules/ShouldNotBeFinal/FinalClassTest.php index c0180ebc..771dabc0 100644 --- a/tests/unit/rules/ShouldNotBeFinal/FinalClassTest.php +++ b/tests/unit/rules/ShouldNotBeFinal/FinalClassTest.php @@ -27,7 +27,7 @@ class FinalClassTest extends RuleTestCase public function testRule(): void { $this->analyse(['tests/fixtures/Simple/SimpleFinalClass.php'], [ - [sprintf('%s should not be final', SimpleFinalClass::class), 7], + [sprintf('%s should not be final', SimpleFinalClass::class), 5], ]); } diff --git a/tests/unit/rules/ShouldNotBeFinal/ShowRuleNameFinalClassTest.php b/tests/unit/rules/ShouldNotBeFinal/ShowRuleNameFinalClassTest.php index fdc066be..c5cf236a 100644 --- a/tests/unit/rules/ShouldNotBeFinal/ShowRuleNameFinalClassTest.php +++ b/tests/unit/rules/ShouldNotBeFinal/ShowRuleNameFinalClassTest.php @@ -27,7 +27,7 @@ class ShowRuleNameFinalClassTest extends RuleTestCase public function testRule(): void { $this->analyse(['tests/fixtures/Simple/SimpleFinalClass.php'], [ - [sprintf('%s: %s should not be final', self::RULE_NAME, SimpleFinalClass::class), 7], + [sprintf('%s: %s should not be final', self::RULE_NAME, SimpleFinalClass::class), 5], ]); } diff --git a/tests/unit/rules/ShouldNotDepend/DocParamTagTest.php b/tests/unit/rules/ShouldNotDepend/DocParamTagTest.php index 658f5f4f..fd12454c 100644 --- a/tests/unit/rules/ShouldNotDepend/DocParamTagTest.php +++ b/tests/unit/rules/ShouldNotDepend/DocParamTagTest.php @@ -37,14 +37,14 @@ class DocParamTagTest extends RuleTestCase public function testRule(): void { $this->analyse(['tests/fixtures/FixtureClass.php'], [ - [sprintf('%s should not depend on %s', FixtureClass::class, SimpleClass::class), 74], - [sprintf('%s should not depend on %s', FixtureClass::class, SimpleClassTwo::class), 74], - [sprintf('%s should not depend on %s', FixtureClass::class, SimpleClassThree::class), 74], - [sprintf('%s should not depend on %s', FixtureClass::class, SimpleClassFour::class), 74], - [sprintf('%s should not depend on %s', FixtureClass::class, SimpleClassFive::class), 74], - [sprintf('%s should not depend on %s', FixtureClass::class, SimpleClassSix::class), 74], - [sprintf('%s should not depend on %s', FixtureClass::class, InterfaceWithTemplate::class), 74], - [sprintf('%s should not depend on %s', FixtureClass::class, ClassImplementing::class), 74], + [sprintf('%s should not depend on %s', FixtureClass::class, SimpleClass::class), 76], + [sprintf('%s should not depend on %s', FixtureClass::class, SimpleClassTwo::class), 76], + [sprintf('%s should not depend on %s', FixtureClass::class, SimpleClassThree::class), 76], + [sprintf('%s should not depend on %s', FixtureClass::class, SimpleClassFour::class), 76], + [sprintf('%s should not depend on %s', FixtureClass::class, SimpleClassFive::class), 76], + [sprintf('%s should not depend on %s', FixtureClass::class, SimpleClassSix::class), 76], + [sprintf('%s should not depend on %s', FixtureClass::class, InterfaceWithTemplate::class), 76], + [sprintf('%s should not depend on %s', FixtureClass::class, ClassImplementing::class), 76], ]); } diff --git a/tests/unit/rules/ShouldNotDepend/DocReturnTagTest.php b/tests/unit/rules/ShouldNotDepend/DocReturnTagTest.php index cc7c4a0c..c93944c0 100644 --- a/tests/unit/rules/ShouldNotDepend/DocReturnTagTest.php +++ b/tests/unit/rules/ShouldNotDepend/DocReturnTagTest.php @@ -37,7 +37,7 @@ class DocReturnTagTest extends RuleTestCase public function testRule(): void { $this->analyse(['tests/fixtures/FixtureClass.php'], [ - [sprintf('%s should not depend on %s', FixtureClass::class, SimpleInterface::class), 74], + [sprintf('%s should not depend on %s', FixtureClass::class, SimpleInterface::class), 76], ]); } diff --git a/tests/unit/rules/ShouldNotDepend/DocThrowsTagTest.php b/tests/unit/rules/ShouldNotDepend/DocThrowsTagTest.php index fc235ec1..4a4b729b 100644 --- a/tests/unit/rules/ShouldNotDepend/DocThrowsTagTest.php +++ b/tests/unit/rules/ShouldNotDepend/DocThrowsTagTest.php @@ -37,7 +37,7 @@ class DocThrowsTagTest extends RuleTestCase public function testRule(): void { $this->analyse(['tests/fixtures/FixtureClass.php'], [ - [sprintf('%s should not depend on %s', FixtureClass::class, SimpleException::class), 74], + [sprintf('%s should not depend on %s', FixtureClass::class, SimpleException::class), 76], ]); } diff --git a/tests/unit/rules/ShouldNotDepend/DocVarTagTest.php b/tests/unit/rules/ShouldNotDepend/DocVarTagTest.php index ddd1c8cb..07ab553b 100644 --- a/tests/unit/rules/ShouldNotDepend/DocVarTagTest.php +++ b/tests/unit/rules/ShouldNotDepend/DocVarTagTest.php @@ -37,7 +37,7 @@ class DocVarTagTest extends RuleTestCase public function testRule(): void { $this->analyse(['tests/fixtures/FixtureClass.php'], [ - [sprintf('%s should not depend on %s', FixtureClass::class, SimpleClass::class), 77], + [sprintf('%s should not depend on %s', FixtureClass::class, SimpleClass::class), 79], ]); }