Skip to content

Commit

Permalink
Update coding standards
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosas committed Aug 15, 2023
1 parent 3bba15b commit 34b3a2b
Show file tree
Hide file tree
Showing 14 changed files with 31 additions and 31 deletions.
16 changes: 8 additions & 8 deletions tests/unit/rules/CanOnlyDepend/DocParamTagTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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],
]);
}

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/rules/CanOnlyDepend/DocReturnTagTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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],
]);
}

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/rules/CanOnlyDepend/DocThrowsTagTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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],
]);
}

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/rules/CanOnlyDepend/DocVarTagTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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],
]);
}

Expand Down
4 changes: 2 additions & 2 deletions tests/unit/rules/CanOnlyDepend/NewTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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],
]);
}

Expand Down
6 changes: 3 additions & 3 deletions tests/unit/rules/CanOnlyDepend/WithBuiltInNewTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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],
]);
}

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/rules/ShouldNotBeAbstract/AbstractClassTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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],
]);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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],
]);
}

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/rules/ShouldNotBeFinal/FinalClassTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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],
]);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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],
]);
}

Expand Down
16 changes: 8 additions & 8 deletions tests/unit/rules/ShouldNotDepend/DocParamTagTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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],
]);
}

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/rules/ShouldNotDepend/DocReturnTagTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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],
]);
}

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/rules/ShouldNotDepend/DocThrowsTagTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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],
]);
}

Expand Down
2 changes: 1 addition & 1 deletion tests/unit/rules/ShouldNotDepend/DocVarTagTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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],
]);
}

Expand Down

0 comments on commit 34b3a2b

Please sign in to comment.