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 Sep 18, 2024
1 parent 335318f commit 35e259b
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 35e259b

Please sign in to comment.