Skip to content

Commit 3a9a4b2

Browse files
authored
Merge pull request #1137 from PHPCSStandards/feature/docs-various-fixes
Various minor fixes / typos
2 parents c43b854 + d8ace30 commit 3a9a4b2

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
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/Ruleset/ExplainTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ public function testExplainWithDeprecatedSniffs()
200200
$expected .= ' TestStandard.SetProperty.PropertyTypeHandling'.PHP_EOL;
201201
$expected .= ' TestStandard.ValidSniffs.RegisterEmptyArray'.PHP_EOL.PHP_EOL;
202202

203-
$expected .= '* Sniffs marked with an asterix are deprecated.'.PHP_EOL;
203+
$expected .= '* Sniffs marked with an asterisk are deprecated.'.PHP_EOL;
204204

205205
$this->expectOutputString($expected);
206206

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)