diff --git a/autoload.php b/autoload.php index 5dd1387325..6221401e6b 100644 --- a/autoload.php +++ b/autoload.php @@ -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( diff --git a/src/Tokenizers/PHP.php b/src/Tokenizers/PHP.php index a773ddfa0e..b578279546 100644 --- a/src/Tokenizers/PHP.php +++ b/src/Tokenizers/PHP.php @@ -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 diff --git a/src/Util/Common.php b/src/Util/Common.php index 63a76ce234..ca00d23898 100644 --- a/src/Util/Common.php +++ b/src/Util/Common.php @@ -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; }