Skip to content

Commit d7efcc0

Browse files
committed
Merge branch 'master' into 4.x
2 parents 62bea13 + 3a9a4b2 commit d7efcc0

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

src/Ruleset.php

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

338338
if (count($this->deprecatedSniffs) > 0) {
339-
echo PHP_EOL.'* Sniffs marked with an asterix are deprecated.'.PHP_EOL;
339+
echo PHP_EOL.'* Sniffs marked with an asterisk are deprecated.'.PHP_EOL;
340340
}
341341

342342
}//end explain()

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public function process(File $phpcsFile, $stackPtr)
104104
return;
105105
}
106106

107-
// If it is not an array check what is inside.
107+
// If it is not an array, check what is inside.
108108
$found = $phpcsFile->findPrevious(
109109
T_VARIABLE,
110110
($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/Files/File/GetMethodParametersParseError3Test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ final class GetMethodParametersParseError3Test extends AbstractMethodTestCase
2020

2121

2222
/**
23-
* Test receiving an empty array when encountering a specific parse error.
23+
* Test receiving an exception when encountering a specific parse error.
2424
*
2525
* @return void
2626
*/

tests/Core/Ruleset/ExplainTest.php

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

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

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

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)