Skip to content

Commit

Permalink
Documentation: various minor improvements
Browse files Browse the repository at this point in the history
... collected along the way.
  • Loading branch information
jrfnl committed Jul 20, 2024
1 parent 85318b7 commit d60022e
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Reporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ public function prepareFileReport(File $phpcsFile)
];

if ($report['errors'] === 0 && $report['warnings'] === 0) {
// Prefect score!
// Perfect score!
return $report;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public function process(File $phpcsFile, $stackPtr)
&& strtolower($content) !== 'yield from'
) {
if ($tokens[($stackPtr - 1)]['code'] === T_YIELD_FROM) {
// A multi-line statements that has already been processed.
// A multi-line statement that has already been processed.
return;
}

Expand Down
1 change: 1 addition & 0 deletions src/Standards/Squiz/Tests/Scope/MemberVarScopeUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ public function getErrorList()
*/
public function getWarningList()
{
// Warning from getMemberProperties() about parse error.
return [71 => 1];

}//end getWarningList()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ public function getWarningList()
79 => 1,
82 => 1,
94 => 1,
// Warning from getMemberProperties() about parse error.
107 => 1,
];

Expand Down
4 changes: 2 additions & 2 deletions tests/Core/Util/Common/StripColorsTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Tests for the \PHP_CodeSniffer\Util\Sniffs\Common::stripColors() method.
* Tests for the \PHP_CodeSniffer\Util\Common::stripColors() method.
*
* @author Juliette Reinders Folmer <phpcs_nospam@adviesenzo.nl>
* @copyright 2024 Juliette Reinders Folmer. All rights reserved.
Expand All @@ -13,7 +13,7 @@
use PHPUnit\Framework\TestCase;

/**
* Tests for the \PHP_CodeSniffer\Util\Sniffs\Common::stripColors() method.
* Tests for the \PHP_CodeSniffer\Util\Common::stripColors() method.
*
* @covers \PHP_CodeSniffer\Util\Common::stripColors
*/
Expand Down
4 changes: 2 additions & 2 deletions tests/Core/Util/Common/SuggestTypeTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Tests for the \PHP_CodeSniffer\Util\Sniffs\Common::suggestType() method.
* Tests for the \PHP_CodeSniffer\Util\Common::suggestType() method.
*
* @author Juliette Reinders Folmer <phpcs_nospam@adviesenzo.nl>
* @copyright 2019 Juliette Reinders Folmer. All rights reserved.
Expand All @@ -13,7 +13,7 @@
use PHPUnit\Framework\TestCase;

/**
* Tests for the \PHP_CodeSniffer\Util\Sniffs\Common::suggestType() method.
* Tests for the \PHP_CodeSniffer\Util\Common::suggestType() method.
*
* @covers \PHP_CodeSniffer\Util\Common::suggestType
*/
Expand Down

0 comments on commit d60022e

Please sign in to comment.