Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 <[email protected]>
* @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 <[email protected]>
* @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