Skip to content

Commit 13aa360

Browse files
committed
Various minor fixes / typos
... picked up along the way.
1 parent 6739594 commit 13aa360

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

src/Ruleset.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ public function explain()
332332
}//end foreach
333333

334334
if (count($this->deprecatedSniffs) > 0) {
335-
echo PHP_EOL.'* Sniffs marked with an asterix are deprecated.'.PHP_EOL;
335+
echo PHP_EOL.'* Sniffs marked with an asterisk are deprecated.'.PHP_EOL;
336336
}
337337

338338
}//end explain()

src/Standards/Generic/Sniffs/ControlStructures/DisallowYodaConditionsSniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public function process(File $phpcsFile, $stackPtr)
9292
return;
9393
}
9494

95-
// If it is not an array check what is inside.
95+
// If it is not an array, check what is inside.
9696
$found = $phpcsFile->findPrevious(
9797
T_VARIABLE,
9898
($previousIndex - 1),

tests/Core/Files/File/FindStartOfStatementTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* Tests for the \PHP_CodeSniffer\Files\File:findStartOfStatement method.
3+
* Tests for the \PHP_CodeSniffer\Files\File::findStartOfStatement method.
44
*
55
* @author Greg Sherwood <[email protected]>
66
* @author Juliette Reinders Folmer <[email protected]>
@@ -15,7 +15,7 @@
1515
use PHP_CodeSniffer\Util\Tokens;
1616

1717
/**
18-
* Tests for the \PHP_CodeSniffer\Files\File:findStartOfStatement method.
18+
* Tests for the \PHP_CodeSniffer\Files\File::findStartOfStatement method.
1919
*
2020
* @covers \PHP_CodeSniffer\Files\File::findStartOfStatement
2121
*/

tests/Core/Tokenizers/Tokenizer/RecurseScopeMapCaseKeywordConditionsTest.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ switch (true) {
5858
case CONSTANT:
5959
/* testCaseWithConstantAndIdenticalIsNotEnumCase */
6060
case CONSTANT === 1:
61-
/* testCaseWithAssigmentToConstantIsNotEnumCase */
61+
/* testCaseWithAssignmentToConstantIsNotEnumCase */
6262
case CONSTANT = 1:
6363
/* testIsNotEnumCaseIsCaseInsensitive */
6464
cAsE CONSTANT:

tests/Core/Tokenizers/Tokenizer/RecurseScopeMapCaseKeywordConditionsTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ public static function dataNotEnumCases()
163163
'testCloserMarker' => '/* testCaseConstantCloserMarker */',
164164
],
165165
'switch case with constant, assignment' => [
166-
'testMarker' => '/* testCaseWithAssigmentToConstantIsNotEnumCase */',
166+
'testMarker' => '/* testCaseWithAssignmentToConstantIsNotEnumCase */',
167167
'expectedTokens' => [
168168
'scope_opener' => T_COLON,
169169
'scope_closer' => T_CLOSE_CURLY_BRACKET,

0 commit comments

Comments
 (0)