From 1200009aea2fb901720d3a5d8c2d3c5d13cc34d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sz=C3=A9pe?= Date: Wed, 24 Apr 2024 04:35:14 +0000 Subject: [PATCH] Fix typos --- CHANGELOG-5.x.md | 2 +- docs/components/sniffs/README.md | 2 +- docs/installation.md | 2 +- src/Application/Collection/ReferenceCollectionInterface.php | 2 +- tests/fixtures/sniffs/introduced.php | 2 +- tests/fixtures/source13873.php | 6 +++--- tests/fixtures/source7813.php | 6 +++--- 7 files changed, 11 insertions(+), 11 deletions(-) diff --git a/CHANGELOG-5.x.md b/CHANGELOG-5.x.md index 627a78a5..551a1653 100644 --- a/CHANGELOG-5.x.md +++ b/CHANGELOG-5.x.md @@ -70,7 +70,7 @@ using the [Keep a CHANGELOG](http://keepachangelog.com) principles. ### Added -- [GH-271](https://github.com/llaville/php-compat-info/issues/271) CI with Github Actions Workflow +- [GH-271](https://github.com/llaville/php-compat-info/issues/271) CI with GitHub Actions Workflow ### Removed diff --git a/docs/components/sniffs/README.md b/docs/components/sniffs/README.md index 9a404b35..7b08d186 100644 --- a/docs/components/sniffs/README.md +++ b/docs/components/sniffs/README.md @@ -93,7 +93,7 @@ Here is the list of features supported and their corresponding sniffs : | Sniff category | Sniff class name | PHP Feature | |-----------------|-----------------------|------------------------------------------------| | Classes | MagicMethodsSniff | [Magic Methods][MagicMethods56] | -| Constants | ConstSyntaxSniff | [Contant Expressions][ConstScalar] | +| Constants | ConstSyntaxSniff | [Constant Expressions][ConstScalar] | | Operators | PowOperatorSniff | [Exponentiation][PowOperator] | | UseDeclarations | UseConstFunctionSniff | [use function and use const][UseConstFunction] | diff --git a/docs/installation.md b/docs/installation.md index fbe340ab..0caf6c60 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -21,7 +21,7 @@ ## PHAR The preferred method of installation is to use the CompatInfo PHAR version which can be downloaded from the most recent -[Github Release][releases]. This method ensures you will not have any dependency conflict issue. +[GitHub Release][releases]. This method ensures you will not have any dependency conflict issue. ## Docker diff --git a/src/Application/Collection/ReferenceCollectionInterface.php b/src/Application/Collection/ReferenceCollectionInterface.php index b019e587..ece382de 100644 --- a/src/Application/Collection/ReferenceCollectionInterface.php +++ b/src/Application/Collection/ReferenceCollectionInterface.php @@ -17,7 +17,7 @@ interface ReferenceCollectionInterface extends Collection { /** - * Fetch the database to retrieve, when possible, element informations. + * Fetch the database to retrieve, when possible, element information. * * @param string $group May be either 'classes', 'methods', 'functions', * 'constants', 'traits', 'interfaces' diff --git a/tests/fixtures/sniffs/introduced.php b/tests/fixtures/sniffs/introduced.php index 8edf13e1..ef73c186 100644 --- a/tests/fixtures/sniffs/introduced.php +++ b/tests/fixtures/sniffs/introduced.php @@ -8,5 +8,5 @@ class SplTempFileObject {} print_r(ini_get_all("pcre", true)); -$a = array('',"'bar'",'"baz"','&blong&', "\xc3\xa9"); +$a = array('', "'bar'", '"baz"', '&blong&', "\xc3\xa9"); $json = json_encode($a, JSON_PRETTY_PRINT, 256); diff --git a/tests/fixtures/source13873.php b/tests/fixtures/source13873.php index 36fdb89d..15f5d201 100644 --- a/tests/fixtures/source13873.php +++ b/tests/fixtures/source13873.php @@ -99,7 +99,7 @@ function get_forum_data() }else { // Check #2: Try and select a default webtag from - // the databse + // the database $sql = "SELECT FORUMS.FID, FORUMS.WEBTAG, FORUMS.ACCESS_LEVEL, "; $sql.= "CONCAT(FORUMS.DATABASE_NAME, '.', FORUMS.WEBTAG, '_') AS PREFIX "; @@ -958,7 +958,7 @@ function forum_create($webtag, $forum_name, $owner_uid, $database_name, $access, if (!is_numeric($owner_uid)) $owner_uid = 0; if (!is_numeric($access)) $access = 0; - // Only users with acces to the forum tools can create / delete forums. + // Only users with access to the forum tools can create / delete forums. if (bh_session_check_perm(USER_PERM_FORUM_TOOLS, 0)) { @@ -2030,7 +2030,7 @@ function forum_delete_tables($webtag, $database_name) if (!preg_match("/^[A-Z0-9_]+$/", $webtag)) return false; if (!preg_match("/^[A-Z0-9_]+$/i", $database_name)) return false; - // Only users with acces to the forum tools can create / delete forums. + // Only users with access to the forum tools can create / delete forums. if (bh_session_check_perm(USER_PERM_FORUM_TOOLS, 0)) { diff --git a/tests/fixtures/source7813.php b/tests/fixtures/source7813.php index 538f0677..d88d2151 100644 --- a/tests/fixtures/source7813.php +++ b/tests/fixtures/source7813.php @@ -433,7 +433,7 @@ function determinePrefFile() * Checks to see if an update is available. * * Respects the user preferences when determining if an - * update is avaiable. Returns true if an update is available + * update is available. Returns true if an update is available * and the user may want to update the package. * * @access public @@ -540,7 +540,7 @@ function getPackageInfo() /** * Returns the preferences associated with the given package. * - * The preferences returned are an array with the folling values: + * The preferences returned are an array with the following values: * - don't ask again * - don't ask until next version * - only ask for state x @@ -560,7 +560,7 @@ function getPackagePreferences() } /** - * Saves the current prefernces to the RC file. + * Saves the current preferences to the RC file. * * @access public * @return boolean true on success, false on error