Skip to content

Commit fea1fd6

Browse files
szepeviktorkukulich
authored andcommitted
Fix more typos
1 parent 89cd8e7 commit fea1fd6

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

SlevomatCodingStandard/Sniffs/ControlStructures/RequireNullSafeObjectOperatorSniff.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function process(File $phpcsFile, $identicalPointer): int
6969

7070
$tokens = $phpcsFile->getTokens();
7171

72-
[$pointerBeforeIdentical, $pointerAfterIdentical] = $this->getIndenticalData($phpcsFile, $identicalPointer);
72+
[$pointerBeforeIdentical, $pointerAfterIdentical] = $this->getIdenticalData($phpcsFile, $identicalPointer);
7373

7474
if ($tokens[$pointerBeforeIdentical]['code'] !== T_NULL && $tokens[$pointerAfterIdentical]['code'] !== T_NULL) {
7575
return $identicalPointer + 1;
@@ -155,7 +155,7 @@ private function checkTernaryOperator(
155155
);
156156

157157
if ($previousIdenticalPointer !== null) {
158-
[$pointerBeforePreviousIdentical, $pointerAfterPreviousIdentical] = $this->getIndenticalData(
158+
[$pointerBeforePreviousIdentical, $pointerAfterPreviousIdentical] = $this->getIdenticalData(
159159
$phpcsFile,
160160
$previousIdenticalPointer
161161
);
@@ -477,7 +477,7 @@ private function getIdentificatorDifference(
477477
/**
478478
* @return array{0: int, 1: int}
479479
*/
480-
private function getIndenticalData(File $phpcsFile, int $identicalPointer): array
480+
private function getIdenticalData(File $phpcsFile, int $identicalPointer): array
481481
{
482482
/** @var int $pointerBeforeIdentical */
483483
$pointerBeforeIdentical = TokenHelper::findPreviousEffective($phpcsFile, $identicalPointer - 1);

tests/Sniffs/Classes/data/classMemberSpacingNoErrors.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public function __construct(private $propertyPromotion)
117117
{
118118
}
119119

120-
public function withAnnonymous($parameter)
120+
public function withAnonymous($parameter)
121121
{
122122
return function () use ($parameter) {
123123

tests/Sniffs/ControlStructures/JumpStatementsSpacingSniffTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ public function testModifiedSettingsErrors(): void
292292
self::assertAllFixedInFile($report);
293293
}
294294

295-
public function testAtTheBeginnningOfFile(): void
295+
public function testAtTheBeginningOfFile(): void
296296
{
297297
$report = self::checkFile(__DIR__ . '/data/jumpStatementsSpacingAtTheBeginningOfFile.php');
298298

0 commit comments

Comments
 (0)