Skip to content

Commit d60022e

Browse files
committed
Documentation: various minor improvements
... collected along the way.
1 parent 85318b7 commit d60022e

File tree

6 files changed

+8
-6
lines changed

6 files changed

+8
-6
lines changed

src/Reporter.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ public function prepareFileReport(File $phpcsFile)
364364
];
365365

366366
if ($report['errors'] === 0 && $report['warnings'] === 0) {
367-
// Prefect score!
367+
// Perfect score!
368368
return $report;
369369
}
370370

src/Standards/Generic/Sniffs/WhiteSpace/LanguageConstructSpacingSniff.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function process(File $phpcsFile, $stackPtr)
8181
&& strtolower($content) !== 'yield from'
8282
) {
8383
if ($tokens[($stackPtr - 1)]['code'] === T_YIELD_FROM) {
84-
// A multi-line statements that has already been processed.
84+
// A multi-line statement that has already been processed.
8585
return;
8686
}
8787

src/Standards/Squiz/Tests/Scope/MemberVarScopeUnitTest.php

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ public function getErrorList()
5454
*/
5555
public function getWarningList()
5656
{
57+
// Warning from getMemberProperties() about parse error.
5758
return [71 => 1];
5859

5960
}//end getWarningList()

src/Standards/Zend/Tests/NamingConventions/ValidVariableNameUnitTest.php

+1
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ public function getWarningList()
9292
79 => 1,
9393
82 => 1,
9494
94 => 1,
95+
// Warning from getMemberProperties() about parse error.
9596
107 => 1,
9697
];
9798

tests/Core/Util/Common/StripColorsTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* Tests for the \PHP_CodeSniffer\Util\Sniffs\Common::stripColors() method.
3+
* Tests for the \PHP_CodeSniffer\Util\Common::stripColors() method.
44
*
55
* @author Juliette Reinders Folmer <[email protected]>
66
* @copyright 2024 Juliette Reinders Folmer. All rights reserved.
@@ -13,7 +13,7 @@
1313
use PHPUnit\Framework\TestCase;
1414

1515
/**
16-
* Tests for the \PHP_CodeSniffer\Util\Sniffs\Common::stripColors() method.
16+
* Tests for the \PHP_CodeSniffer\Util\Common::stripColors() method.
1717
*
1818
* @covers \PHP_CodeSniffer\Util\Common::stripColors
1919
*/

tests/Core/Util/Common/SuggestTypeTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* Tests for the \PHP_CodeSniffer\Util\Sniffs\Common::suggestType() method.
3+
* Tests for the \PHP_CodeSniffer\Util\Common::suggestType() method.
44
*
55
* @author Juliette Reinders Folmer <[email protected]>
66
* @copyright 2019 Juliette Reinders Folmer. All rights reserved.
@@ -13,7 +13,7 @@
1313
use PHPUnit\Framework\TestCase;
1414

1515
/**
16-
* Tests for the \PHP_CodeSniffer\Util\Sniffs\Common::suggestType() method.
16+
* Tests for the \PHP_CodeSniffer\Util\Common::suggestType() method.
1717
*
1818
* @covers \PHP_CodeSniffer\Util\Common::suggestType
1919
*/

0 commit comments

Comments
 (0)