Skip to content

Commit 6d6c254

Browse files
authored
Fix typos (#490)
1 parent 25cc50a commit 6d6c254

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

src/Analyzer/FullyQualifiedClassName.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,10 @@ public static function fromString(string $fqcn): self
7171

7272
public function isNotAValidPattern(string $pattern): bool
7373
{
74-
$validClassNameCharacted = '[a-zA-Z0-9_\x80-\xff]';
74+
$validClassNameCharacters = '[a-zA-Z0-9_\x80-\xff]';
7575
$or = '|';
7676
$backslash = '\\\\';
7777

78-
return 0 === preg_match('/^('.$validClassNameCharacted.$or.$backslash.$or.'\*'.$or.'\?)*$/', $pattern);
78+
return 0 === preg_match('/^('.$validClassNameCharacters.$or.$backslash.$or.'\*'.$or.'\?)*$/', $pattern);
7979
}
8080
}

tests/Integration/CheckEnumTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public function createDirStructure(): array
5656
5757
enum BillingEnum {
5858
case PENDING;
59-
case PAYED;
59+
case PAID;
6060
}
6161
',
6262
'GenderEnum.php' => '<?php

tests/Integration/ExtendsThrowableTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function createDirStructure(): array
4242
4343
enum BillingEnum {
4444
case PENDING;
45-
case PAYED;
45+
case PAID;
4646
}
4747
',
4848
'AnException.php' => '<?php

tests/Integration/ImplementsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function createDirStructure(): array
4646
4747
enum AEnum implements AnInterface {
4848
case PENDING;
49-
case PAYED;
49+
case PAID;
5050
5151
public function amethod() {}
5252
}

tests/Unit/CLI/TargetPhpVersionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function test_it_should_ignore_the_patch_number(): void
2424
self::assertEquals('8.3', $targetPhpVersion->get());
2525
}
2626

27-
public function test_it_should_ignore_extra_informations(): void
27+
public function test_it_should_ignore_extra_information(): void
2828
{
2929
$targetPhpVersion = TargetPhpVersion::create('7.4.10-14+ubuntu22.04.1+deb.sury.org+1');
3030

tests/Unit/Expressions/ForClasses/DependsOnlyOnTheseNamespacesTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ public function test_it_should_return_false_if_depends_on_namespace(): void
8383
self::assertEquals(0, $violations->count());
8484
}
8585

86-
public function test_it_should_return_true_if_depends_on_same_namespace_without_specifing_it(): void
86+
public function test_it_should_return_true_if_depends_on_same_namespace_without_specifying_it(): void
8787
{
8888
$dependOnClasses = new DependsOnlyOnTheseNamespaces();
8989

0 commit comments

Comments
 (0)