Skip to content

Commit

Permalink
Docs: various minor fixes
Browse files Browse the repository at this point in the history
... picked up along the way.
  • Loading branch information
jrfnl committed Jan 23, 2025
1 parent 8b6a8d4 commit 2706b7a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public function process(File $phpcsFile, $stackPtr)
$constName = $tokens[$constPtr]['content'];
$prefix = '';

// Strip namespace from constant like /foo/bar/CONSTANT.
// Strip namespace from constant like \foo\bar\CONSTANT.
$splitPos = strrpos($constName, '\\');
if ($splitPos !== false) {
$prefix = substr($constName, 0, ($splitPos + 1));
Expand Down
2 changes: 1 addition & 1 deletion tests/Core/Ruleset/RuleInclusionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ public function testSettingInvalidPropertiesOnStandardsAndCategoriesSilentlyFail
*
* @see self::testSettingInvalidPropertiesOnStandardsAndCategoriesSilentlyFails()
*
* @return array<string, array>string, string>>
* @return array<string, array<string, string>>
*/
public static function dataSettingInvalidPropertiesOnStandardsAndCategoriesSilentlyFails()
{
Expand Down
4 changes: 2 additions & 2 deletions tests/Core/Ruleset/ShowSniffDeprecationsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ public function testDeprecatedSniffsListDoesNotShowWhenAllDeprecatedSniffsAreExc


/**
* Test deprecated sniffs are listed alphabetically in the deprecated sniffs warning.
* Test various aspects of the deprecated sniffs warning.
*
* This tests a number of different aspects:
* 1. That the summary line uses the correct grammar when there is are multiple deprecated sniffs.
Expand Down Expand Up @@ -322,7 +322,7 @@ public function testDeprecatedSniffsWarning()


/**
* Test deprecated sniffs are listed alphabetically in the deprecated sniffs warning.
* Test the report width is respected when displaying the deprecated sniffs warning.
*
* This tests the following aspects:
* 1. That the summary line uses the correct grammar when there is a single deprecated sniff.
Expand Down

0 comments on commit 2706b7a

Please sign in to comment.