Skip to content

Commit 89cd8e7

Browse files
committed
Typo
1 parent 5cb40fa commit 89cd8e7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

SlevomatCodingStandard/Sniffs/Functions/NamedArgumentSpacingSniff.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
class NamedArgumentSpacingSniff implements Sniff
1414
{
1515

16-
public const CODE_WHITESPACE_BEFORE_COLOR = 'WhitespaceBeforeColon';
16+
public const CODE_WHITESPACE_BEFORE_COLON = 'WhitespaceBeforeColon';
1717
public const CODE_NO_WHITESPACE_AFTER_COLON = 'NoWhitespaceAfterColon';
1818

1919
/**
@@ -43,7 +43,7 @@ public function process(File $phpcsFile, $pointer): void
4343
$fix = $phpcsFile->addFixableError(
4444
sprintf('There must be no whitespace between named argument "%s" and colon.', $parameterName),
4545
$colonPointer,
46-
self::CODE_WHITESPACE_BEFORE_COLOR
46+
self::CODE_WHITESPACE_BEFORE_COLON
4747
);
4848
if ($fix) {
4949
$phpcsFile->fixer->replaceToken($colonPointer - 1, '');

tests/Sniffs/Functions/NamedArgumentSpacingSniffTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function testErrors(): void
2222
self::assertSniffError(
2323
$report,
2424
3,
25-
NamedArgumentSpacingSniff::CODE_WHITESPACE_BEFORE_COLOR,
25+
NamedArgumentSpacingSniff::CODE_WHITESPACE_BEFORE_COLON,
2626
'There must be no whitespace between named argument "search" and colon.'
2727
);
2828
self::assertSniffError(

0 commit comments

Comments
 (0)