Skip to content

Commit d228eb4

Browse files
authored
Merge pull request #670 from PHPCSStandards/feature/various-small-tweaks
CS/Docs: various small tweaks
2 parents be5dfdc + fcf7fdd commit d228eb4

File tree

4 files changed

+2
-5
lines changed

4 files changed

+2
-5
lines changed

src/Reports/Code.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function generateFileReport($report, File $phpcsFile, $showSources=false,
4040
return false;
4141
}
4242

43-
// How many lines to show about and below the error line.
43+
// How many lines to show above and below the error line.
4444
$surroundingLines = 2;
4545

4646
$file = $report['filename'];

src/Standards/Generic/Tests/WhiteSpace/HereNowdocIdentifierSpacingUnitTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
use PHP_CodeSniffer\Tests\Standards\AbstractSniffUnitTest;
1313

1414
/**
15-
* Unit test class for the LanguageConstructSpacing sniff.
15+
* Unit test class for the HereNowdocIdentifierSpacing sniff.
1616
*
1717
* @covers \PHP_CodeSniffer\Standards\Generic\Sniffs\WhiteSpace\HereNowdocIdentifierSpacingSniff
1818
*/

tests/Core/Tokenizers/PHP/BackfillFnTokenTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,8 +405,6 @@ public function testNamespaceOperatorInTypes()
405405
*/
406406
public function testKeywordReturnTypes($testMarker)
407407
{
408-
$tokens = $this->phpcsFile->getTokens();
409-
410408
$token = $this->getTargetToken($testMarker, T_FN);
411409
$this->backfillHelper($token);
412410
$this->scopePositionTestHelper($token, 11, 14);

tests/Core/Tokenizers/Tokenizer/CreateParenthesisNestingMapDNFTypesTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,6 @@ public function testDNFTypeParentheses($testMarker)
218218
$this->assertArrayHasKey('parenthesis_closer', $closer, 'Parenthesis closer is not set');
219219
$this->assertSame($closePtr, $closer['parenthesis_closer'], 'Parenthesis closer is not the expected token');
220220

221-
$intersectionCount = 0;
222221
for ($i = ($openPtr + 1); $i < $closePtr; $i++) {
223222
$this->assertArrayHasKey('nested_parenthesis', $tokens[$i], "Nested parenthesis key not set on token $i ({$tokens[$i]['type']})");
224223
$this->assertArrayHasKey($openPtr, $tokens[$i]['nested_parenthesis'], 'Nested parenthesis is missing target parentheses set');

0 commit comments

Comments
 (0)