Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor committed Apr 24, 2024
1 parent 9875282 commit 1200009
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG-5.x.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion docs/components/sniffs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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] |

Expand Down
2 changes: 1 addition & 1 deletion docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion tests/fixtures/sniffs/introduced.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ class SplTempFileObject {}

print_r(ini_get_all("pcre", true));

$a = array('<foo>',"'bar'",'"baz"','&blong&', "\xc3\xa9");
$a = array('<foo>', "'bar'", '"baz"', '&blong&', "\xc3\xa9");
$json = json_encode($a, JSON_PRETTY_PRINT, 256);
6 changes: 3 additions & 3 deletions tests/fixtures/source13873.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ";
Expand Down Expand Up @@ -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)) {

Expand Down Expand Up @@ -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)) {

Expand Down
6 changes: 3 additions & 3 deletions tests/fixtures/source7813.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 1200009

Please sign in to comment.