Fixed some typos in the code base
I used code spell checker and did all the libraries/classes/*.php files one by one. Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
parent
952f86fb69
commit
5abcae9255
@ -480,7 +480,7 @@ class Config
|
||||
* These can be confusing for user configuration layer as it
|
||||
* flatten array using / and thus don't see difference between
|
||||
* $cfg['Export/method'] and $cfg['Export']['method'], while rest
|
||||
* of thre code uses the setting only in latter form.
|
||||
* of the code uses the setting only in latter form.
|
||||
*
|
||||
* This could be removed once we consistently handle both values
|
||||
* in the functional code as well.
|
||||
|
||||
@ -1148,7 +1148,7 @@ class Core
|
||||
case 'i':
|
||||
case 'd':
|
||||
/* bool, integer or double */
|
||||
// skip value to sepearator
|
||||
// skip value to separator
|
||||
$i = strpos($data, ';', $i);
|
||||
if ($i === false) {
|
||||
return null;
|
||||
|
||||
@ -381,7 +381,7 @@ class CreateAddField
|
||||
/**
|
||||
* Returns the definition of a partition/subpartition
|
||||
*
|
||||
* @param array $partition array of partition/subpartition detiails
|
||||
* @param array $partition array of partition/subpartition details
|
||||
* @param bool $isSubPartition whether a subpartition
|
||||
*
|
||||
* @return string partition/subpartition definition
|
||||
|
||||
@ -1153,7 +1153,7 @@ class DatabaseInterface implements DbalInterface
|
||||
}
|
||||
|
||||
/**
|
||||
* This function checks and initialises the phpMyAdmin configuration
|
||||
* This function checks and initializes the phpMyAdmin configuration
|
||||
* storage state before it is used into session cache.
|
||||
*
|
||||
* @return void
|
||||
@ -1548,7 +1548,7 @@ class DatabaseInterface implements DbalInterface
|
||||
* @param string $which PROCEDURE | FUNCTION or null for both
|
||||
* @param string $name name of the routine (to fetch a specific routine)
|
||||
*
|
||||
* @return array information about ROCEDUREs or FUNCTIONs
|
||||
* @return array information about PROCEDUREs or FUNCTIONs
|
||||
*/
|
||||
public function getRoutines(
|
||||
string $db,
|
||||
@ -2438,7 +2438,7 @@ class DatabaseInterface implements DbalInterface
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether connection is Percona
|
||||
* Whether connection is PerconaDB
|
||||
*/
|
||||
public function isPercona(): bool
|
||||
{
|
||||
|
||||
@ -153,7 +153,7 @@ class Error extends Message
|
||||
}
|
||||
|
||||
/**
|
||||
* Process backtrace to avoid path disclossures, objects and so on
|
||||
* Process backtrace to avoid path disclosures, objects and so on
|
||||
*
|
||||
* @param array $backtrace backtrace
|
||||
*
|
||||
|
||||
@ -299,7 +299,7 @@ class Git
|
||||
}
|
||||
} else {
|
||||
// '.git/objects/info/packs' file can be missing
|
||||
// (atlease in mysGit)
|
||||
// (at least in mysGit)
|
||||
// File missing. May be we can look in the .git/object/pack
|
||||
// directory for all the .pack files and use that list of
|
||||
// files instead
|
||||
|
||||
@ -694,7 +694,7 @@ class Header
|
||||
* Returns the phpMyAdmin version to be appended to the url to avoid caching
|
||||
* between versions
|
||||
*
|
||||
* @return string urlenocded pma version as a parameter
|
||||
* @return string urlencoded pma version as a parameter
|
||||
*/
|
||||
public static function getVersionParameter(): string
|
||||
{
|
||||
|
||||
@ -42,7 +42,7 @@ class Partition extends SubPartition
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the partiotion description
|
||||
* Returns the partition description
|
||||
*
|
||||
* @return string partition description
|
||||
*/
|
||||
@ -112,7 +112,7 @@ class Partition extends SubPartition
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the tatal index length
|
||||
* Returns the total index length
|
||||
*
|
||||
* @return int index length
|
||||
*/
|
||||
|
||||
@ -1900,7 +1900,7 @@ class Relation
|
||||
* @param string $db name of master table db.
|
||||
* @param string $table name of master table.
|
||||
* @param string $column name of master table column.
|
||||
* @param array|null $foreigners_full foreiners array for the whole table.
|
||||
* @param array|null $foreigners_full foreigners array for the whole table.
|
||||
* @param array|null $child_references_full child references for the whole table.
|
||||
*
|
||||
* @return array telling about references if foreign key.
|
||||
|
||||
@ -193,7 +193,7 @@ class Session
|
||||
$httpCookieName = $config->getCookieName('phpMyAdmin');
|
||||
@session_name($httpCookieName);
|
||||
|
||||
// Restore correct sesion ID (it might have been reset by auto started session
|
||||
// Restore correct session ID (it might have been reset by auto started session
|
||||
if ($config->issetCookie('phpMyAdmin')) {
|
||||
session_id($config->getCookie('phpMyAdmin'));
|
||||
}
|
||||
|
||||
@ -1341,7 +1341,7 @@ class Table
|
||||
$sql_drop_query .= ' ' . $source;
|
||||
$dbi->query($sql_drop_query);
|
||||
|
||||
// Renable table in configuration storage
|
||||
// Rename table in configuration storage
|
||||
$relation->renameTable(
|
||||
$source_db,
|
||||
$target_db,
|
||||
@ -1650,7 +1650,7 @@ class Table
|
||||
$this->name = $new_name;
|
||||
$this->dbName = $new_db;
|
||||
|
||||
// Renable table in configuration storage
|
||||
// Rename table in configuration storage
|
||||
$this->relation->renameTable(
|
||||
$old_db,
|
||||
$new_db,
|
||||
|
||||
@ -126,7 +126,7 @@ class Tracker
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the tracking status of a table, is it active or deactive ?
|
||||
* Gets the tracking status of a table, is it active or disabled ?
|
||||
*
|
||||
* @param string $dbname name of database
|
||||
* @param string $tablename name of table
|
||||
|
||||
@ -513,7 +513,7 @@ class Tracking
|
||||
$ddlog_count,
|
||||
$drop_image_or_text
|
||||
) {
|
||||
// no need for the secondth returned parameter
|
||||
// no need for the second returned parameter
|
||||
[$html] = $this->getHtmlForDataStatements(
|
||||
$data,
|
||||
$filter_users,
|
||||
|
||||
@ -242,7 +242,7 @@ class TwoFactor
|
||||
/**
|
||||
* Changes two-factor authentication settings
|
||||
*
|
||||
* The object might stay in partialy changed setup
|
||||
* The object might stay in partially changed setup
|
||||
* if configuration fails.
|
||||
*
|
||||
* @param string $name Backend name
|
||||
|
||||
@ -214,7 +214,7 @@ class Url
|
||||
|
||||
$separator = self::getArgSeparator();
|
||||
|
||||
// avoid overwriting when creating navi panel links to servers
|
||||
// avoid overwriting when creating navigation panel links to servers
|
||||
if (isset($GLOBALS['server'])
|
||||
&& $GLOBALS['server'] != $GLOBALS['cfg']['ServerDefault']
|
||||
&& ! isset($params['server'])
|
||||
|
||||
@ -177,7 +177,7 @@ class Util
|
||||
* @param string $quoted_string string to remove quotes from
|
||||
* @param string $quote type of quote to remove
|
||||
*
|
||||
* @return string unqoted string
|
||||
* @return string unquoted string
|
||||
*/
|
||||
public static function unQuote(string $quoted_string, ?string $quote = null): string
|
||||
{
|
||||
@ -255,7 +255,7 @@ class Util
|
||||
|
||||
/**
|
||||
* Get a URL link to the official documentation page of either MySQL
|
||||
* or MariaDB depending on the databse server
|
||||
* or MariaDB depending on the database server
|
||||
* of the user.
|
||||
*
|
||||
* @param bool $isMariaDB if the database server is MariaDB
|
||||
@ -2302,7 +2302,7 @@ class Util
|
||||
/**
|
||||
* Returns server type for current connection
|
||||
*
|
||||
* Known types are: MariaDB, Percona and MySQL (default)
|
||||
* Known types are: MariaDB, PerconaDB and MySQL (default)
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
@ -2907,7 +2907,7 @@ class Util
|
||||
}
|
||||
|
||||
/**
|
||||
* Returs list of used PHP extensions.
|
||||
* Returns list of used PHP extensions.
|
||||
*
|
||||
* @return string[]
|
||||
*/
|
||||
@ -2930,7 +2930,7 @@ class Util
|
||||
}
|
||||
|
||||
/**
|
||||
* Converts given (request) paramter to string
|
||||
* Converts given (request) parameter to string
|
||||
*
|
||||
* @param mixed $value Value to convert
|
||||
*/
|
||||
@ -2979,7 +2979,7 @@ class Util
|
||||
}
|
||||
|
||||
/**
|
||||
* Wraper around PHP date function
|
||||
* Wrapper around PHP date function
|
||||
*
|
||||
* @param string $format Date format string
|
||||
*
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
/**
|
||||
* Responsible for retrieving version information and notifiying about latest version
|
||||
* Responsible for retrieving version information and notifying about latest version
|
||||
*/
|
||||
|
||||
declare(strict_types=1);
|
||||
@ -24,7 +24,7 @@ use function time;
|
||||
use function version_compare;
|
||||
|
||||
/**
|
||||
* Responsible for retrieving version information and notifiying about latest version
|
||||
* Responsible for retrieving version information and notifying about latest version
|
||||
*/
|
||||
class VersionInformation
|
||||
{
|
||||
|
||||
@ -161,7 +161,7 @@ class ZipExtension
|
||||
*
|
||||
* @param string $file path to zip file
|
||||
*
|
||||
* @return int the number of files in the zip archive or 0, either if there wern't any files or an error occured.
|
||||
* @return int the number of files in the zip archive or 0, either if there weren't any files or an error occurred.
|
||||
*/
|
||||
public function getNumberOfFiles($file)
|
||||
{
|
||||
@ -185,7 +185,7 @@ class ZipExtension
|
||||
* @param string $file path to zip file
|
||||
* @param string $entry file in the archive that should be extracted
|
||||
*
|
||||
* @return string|bool data on sucess, false otherwise
|
||||
* @return string|bool data on success, false otherwise
|
||||
*/
|
||||
public function extract($file, $entry)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user