Skip to content

Commit

Permalink
Fix more typos
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor authored and kukulich committed Oct 8, 2023
1 parent 89cd8e7 commit fea1fd6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function process(File $phpcsFile, $identicalPointer): int

$tokens = $phpcsFile->getTokens();

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

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

if ($previousIdenticalPointer !== null) {
[$pointerBeforePreviousIdentical, $pointerAfterPreviousIdentical] = $this->getIndenticalData(
[$pointerBeforePreviousIdentical, $pointerAfterPreviousIdentical] = $this->getIdenticalData(
$phpcsFile,
$previousIdenticalPointer
);
Expand Down Expand Up @@ -477,7 +477,7 @@ private function getIdentificatorDifference(
/**
* @return array{0: int, 1: int}
*/
private function getIndenticalData(File $phpcsFile, int $identicalPointer): array
private function getIdenticalData(File $phpcsFile, int $identicalPointer): array
{
/** @var int $pointerBeforeIdentical */
$pointerBeforeIdentical = TokenHelper::findPreviousEffective($phpcsFile, $identicalPointer - 1);
Expand Down
2 changes: 1 addition & 1 deletion tests/Sniffs/Classes/data/classMemberSpacingNoErrors.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public function __construct(private $propertyPromotion)
{
}

public function withAnnonymous($parameter)
public function withAnonymous($parameter)
{
return function () use ($parameter) {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ public function testModifiedSettingsErrors(): void
self::assertAllFixedInFile($report);
}

public function testAtTheBeginnningOfFile(): void
public function testAtTheBeginningOfFile(): void
{
$report = self::checkFile(__DIR__ . '/data/jumpStatementsSpacingAtTheBeginningOfFile.php');

Expand Down

0 comments on commit fea1fd6

Please sign in to comment.