Skip to content

Commit

Permalink
Merge pull request #614 from PHPCSStandards/feature/docs-various-fixes
Browse files Browse the repository at this point in the history
Docs: various minor fixes
  • Loading branch information
jrfnl authored Sep 18, 2024
2 parents 335318f + 35e259b commit 2809074
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ public static function determineLoadedClass($classesBeforeLoad, $classesAfterLoa
}

// Since PHP 7.4 get_declared_classes() does not guarantee any order, making
// it impossible to use order to determine which is the parent an which is the child.
// it impossible to use order to determine which is the parent and which is the child.
// Let's reduce the list of candidates by removing all the classes known to be "parents".
// That way, at the end, only the "main" class just included will remain.
$newClasses = array_reduce(
Expand Down
2 changes: 1 addition & 1 deletion src/Tokenizers/PHP.php
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,7 @@ protected function tokenize($string)
}

/*
Close an open "inside constant declaration" marker when no keyword convertion was needed.
Close an open "inside constant declaration" marker when no keyword conversion was needed.
*/

if ($insideConstDeclaration === true
Expand Down
2 changes: 1 addition & 1 deletion src/Util/Common.php
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ public static function isCamelCaps(
*/
public static function isUnderscoreName($string)
{
// If there are space in the name, it can't be valid.
// If there is whitespace in the name, it can't be valid.
if (strpos($string, ' ') !== false) {
return false;
}
Expand Down

0 comments on commit 2809074

Please sign in to comment.