From 99ad80114637813b631db2bb3c3de190830c6af1 Mon Sep 17 00:00:00 2001 From: Johan Cwiklinski Date: Fri, 8 Nov 2024 11:26:46 +0100 Subject: [PATCH] Fix some typos (#18271) * Fix some typos * Apply suggestions from code review Co-authored-by: Curtis Conard * Not a typo * CS --------- Co-authored-by: Curtis Conard --- .phpstan-baseline.php | 24 ------------------- src/Glpi/Search/CriteriaFilter.php | 2 +- src/Glpi/Search/FilterableInterface.php | 2 +- src/Glpi/Search/Input/QueryBuilder.php | 5 ++-- src/Glpi/Search/Output/HTMLSearchOutput.php | 6 ++--- src/Glpi/Search/Provider/SQLProvider.php | 10 ++++---- src/Glpi/Search/SearchEngine.php | 8 +++---- src/Glpi/Search/SearchOption.php | 4 ++-- src/Glpi/Security/TOTPManager.php | 12 ++++------ .../System/Diagnostic/DatabaseKeysChecker.php | 6 ++--- .../DatabaseSchemaIntegrityChecker.php | 18 +++++++------- .../Requirement/InstallationNotOverriden.php | 2 +- src/Glpi/System/RequirementsManager.php | 4 ++-- src/Glpi/Toolbox/Filesystem.php | 2 +- src/Glpi/Toolbox/Sanitizer.php | 2 +- src/Glpi/Toolbox/VersionParser.php | 10 ++++---- src/Glpi/UI/ThemeManager.php | 2 +- 17 files changed, 46 insertions(+), 73 deletions(-) diff --git a/.phpstan-baseline.php b/.phpstan-baseline.php index 17538a50ba8..866169da71d 100644 --- a/.phpstan-baseline.php +++ b/.phpstan-baseline.php @@ -2587,18 +2587,6 @@ 'count' => 2, 'path' => __DIR__ . '/src/Glpi/Search/Input/QueryBuilder.php', ]; -$ignoreErrors[] = [ - // identifier: parameter.notFound - 'message' => '#^PHPDoc tag @param references unknown parameter\\: \\$field$#', - 'count' => 1, - 'path' => __DIR__ . '/src/Glpi/Search/Input/QueryBuilder.php', -]; -$ignoreErrors[] = [ - // identifier: parameter.notFound - 'message' => '#^PHPDoc tag @param references unknown parameter\\: \\$table$#', - 'count' => 1, - 'path' => __DIR__ . '/src/Glpi/Search/Input/QueryBuilder.php', -]; $ignoreErrors[] = [ // identifier: method.notFound 'message' => '#^Call to an undefined method PhpOffice\\\\PhpSpreadsheet\\\\Writer\\\\IWriter\\:\\:setOrientation\\(\\)\\.$#', @@ -2761,18 +2749,6 @@ 'count' => 1, 'path' => __DIR__ . '/src/Glpi/Search/SearchEngine.php', ]; -$ignoreErrors[] = [ - // identifier: parameter.notFound - 'message' => '#^PHPDoc tag @param references unknown parameter\\: \\$digits$#', - 'count' => 1, - 'path' => __DIR__ . '/src/Glpi/Security/TOTPManager.php', -]; -$ignoreErrors[] = [ - // identifier: parameter.notFound - 'message' => '#^PHPDoc tag @param references unknown parameter\\: \\$period$#', - 'count' => 1, - 'path' => __DIR__ . '/src/Glpi/Security/TOTPManager.php', -]; $ignoreErrors[] = [ // identifier: return.void 'message' => '#^Method Glpi\\\\Socket\\:\\:showListForItem\\(\\) with return type void returns false but should not return anything\\.$#', diff --git a/src/Glpi/Search/CriteriaFilter.php b/src/Glpi/Search/CriteriaFilter.php index efbc5a025ab..07d89b1fe07 100644 --- a/src/Glpi/Search/CriteriaFilter.php +++ b/src/Glpi/Search/CriteriaFilter.php @@ -66,7 +66,7 @@ public function getTabNameForItem(CommonGLPI $item, $withtemplate = 0) $nb = 0; if (($filter = self::getForItem($item))) { // important: array_walk_recursive iterates only over non-array values - // so we need to count only when we we found the 'field' key + // so we need to count only when we found the 'field' key array_walk_recursive($filter->fields['search_criteria'], function ($value, $key) use (&$nb) { if ($key === 'field') { $nb++; diff --git a/src/Glpi/Search/FilterableInterface.php b/src/Glpi/Search/FilterableInterface.php index 0abc03ff6ca..a781101313f 100644 --- a/src/Glpi/Search/FilterableInterface.php +++ b/src/Glpi/Search/FilterableInterface.php @@ -94,7 +94,7 @@ public function itemMatchFilter(CommonDBTM $item): bool; /** * Create or update filter for the current item * - * @param array $search_criteria Search criterias used as filter + * @param array $search_criteria Search criteria used as filter * * @return bool */ diff --git a/src/Glpi/Search/Input/QueryBuilder.php b/src/Glpi/Search/Input/QueryBuilder.php index 019b0e6e12d..9911f15e84c 100644 --- a/src/Glpi/Search/Input/QueryBuilder.php +++ b/src/Glpi/Search/Input/QueryBuilder.php @@ -598,7 +598,7 @@ public static function displaySortCriteria(array $request = []): void /** * Display a group of nested criteria. - * A group (parent) criteria can contains children criteria (who also cantains children, etc) + * A group (parent) criteria can contain children criteria (who also contain children, etc) * * @since 9.4 * @@ -940,8 +940,7 @@ private static function findCriteriaInSession($itemtype = '', $num = 0, $parents /** * Get the input value validation pattern for given datatype. * - * @param string $table - * @param string $field + * @param string $datatype * @param bool $with_delimiters * True to return a complete pattern, including delimiters. * False to return a pattern without delimiters, that can be used inside another regex or in a HTML input pattern. diff --git a/src/Glpi/Search/Output/HTMLSearchOutput.php b/src/Glpi/Search/Output/HTMLSearchOutput.php index 1f5d1c90d1b..c0dc7eee4bb 100644 --- a/src/Glpi/Search/Output/HTMLSearchOutput.php +++ b/src/Glpi/Search/Output/HTMLSearchOutput.php @@ -94,7 +94,7 @@ public function displayData(array $data, array $params = []) } } - // Contruct parameters + // Construct parameters $globallinkto = \Toolbox::append_params([ 'criteria' => $search['criteria'], 'metacriteria' => $search['metacriteria'], @@ -156,12 +156,12 @@ public function displayData(array $data, array $params = []) $used_soptions_names[] = _n('View', 'Views', 1); } - // check also if there any default filters + // check also if there is any default filters if ($defaultfilter = \DefaultFilter::getSearchCriteria($itemtype)) { array_unshift($used_soptions_names, $defaultfilter['name']); } - // remove latitute and longitude if as map is enabled + // remove latitude and longitude if as map is enabled $as_map = $data['search']['as_map'] ?? 0; if ($as_map == 1) { unset($used_soptions_names[array_search(__('Latitude'), $used_soptions_names)]); diff --git a/src/Glpi/Search/Provider/SQLProvider.php b/src/Glpi/Search/Provider/SQLProvider.php index 9b947c2aee1..d3fd14e0c5a 100644 --- a/src/Glpi/Search/Provider/SQLProvider.php +++ b/src/Glpi/Search/Provider/SQLProvider.php @@ -4595,7 +4595,7 @@ public static function constructData(array &$data, $onlycount = false) if ($onlycount) { Profiler::getInstance()->stop('SQLProvider::constructData'); - //we just want to coutn results; no need to continue process + //we just want to count results; no need to continue process return; } @@ -4875,7 +4875,7 @@ public static function constructData(array &$data, $onlycount = false) /** * Create SQL search condition * - * @param string $field Nname (should be ` protected) + * @param string $field Name (should be ` protected) * @param string $val Value to search * @param boolean $not Is a negative search ? (false by default) * @param string $link With previous criteria (default 'AND') @@ -4961,7 +4961,7 @@ public static function makeTextSearchValue($val) // Remove leading `^` $val = ltrim(preg_replace('/^\^/', '', $val)); } else { - // Add % wildcard before searched string if not begining by a `^` + // Add % wildcard before searched string if not beginning by a `^` $val = '%' . $val; } @@ -5038,7 +5038,7 @@ public static function giveItem( $oparams = $searchopt[$ID]['addobjectparams']; } - // Search option may not exists in subtype + // Search option may not exist in subtype // This is the case for "Inventory number" for a Software listed from ReservationItem search $subtype_so = SearchOption::getOptionsForItemtype($data["TYPE"]); if (!array_key_exists($ID, $subtype_so)) { @@ -5349,7 +5349,7 @@ public static function giveItem( ? $data[$ID][$k]['name'] : $data[$ID][$k]['tickets_id_2']; - // If link ID is int or integer string, force conversion to int. Coversion to int and then string to compare is needed to ensure it isn't a decimal + // If link ID is int or integer string, force conversion to int. Conversion to int and then string to compare is needed to ensure it isn't a decimal if (is_numeric($linkid) && ((string)(int)$linkid === (string)$linkid)) { $linkid = (int) $linkid; } diff --git a/src/Glpi/Search/SearchEngine.php b/src/Glpi/Search/SearchEngine.php index bbcc4361669..aff4a39f705 100644 --- a/src/Glpi/Search/SearchEngine.php +++ b/src/Glpi/Search/SearchEngine.php @@ -121,7 +121,7 @@ public static function getMetaItemtypeAvailable($itemtype): array $linked = []; foreach ($CFG_GLPI as $key => $values) { if ($key === 'link_types') { - // Links are associated to all items of a type, it does not make any sense to use them in meta search + // Links are associated to all items of a type, it does not make any sense to use them in metasearch continue; } if ($key === 'ticket_types' && $item instanceof \CommonITILObject) { @@ -273,7 +273,7 @@ public static function getMetaReferenceItemtype($itemtype) * @param string $itemtype Item type * @param array $params Array of parameters * may include sort, order, start, list_limit, deleted, criteria, metacriteria - * @param array $forcedisplay Array of columns to display (default empty = empty use display pref and search criterias) + * @param array $forcedisplay Array of columns to display (default empty = empty use display pref and search criteria) * * @return array prepare to be used for a search (include criteria and others needed information) **/ @@ -404,7 +404,7 @@ public static function prepareDataForSearch($itemtype, array $params, array $for } $data['meta_toview'] = []; if (!$forcetoview) { - // Add items to display depending of personal prefs + // Add items to display depending on personal prefs $displaypref = \DisplayPreference::getForTypeUser($itemtype, \Session::getLoginUserID(), \Session::getCurrentInterface()); if (count($displaypref)) { foreach ($displaypref as $val) { @@ -649,7 +649,7 @@ public static function getData(string $itemtype, array $params, array $forced_di /** * @param string $itemtype The itemtype being displayed * @param array $params The search parameters - * @param array $forced_display Array of columns to display (default empty = empty use display pref and search criterias) + * @param array $forced_display Array of columns to display (default empty = empty use display pref and search criteria) * @return void */ public static function showOutput(string $itemtype, array $params, array $forced_display = []): void diff --git a/src/Glpi/Search/SearchOption.php b/src/Glpi/Search/SearchOption.php index e91b519fb19..3ea12ee5276 100644 --- a/src/Glpi/Search/SearchOption.php +++ b/src/Glpi/Search/SearchOption.php @@ -615,7 +615,7 @@ public static function getOptionNumber($itemtype, $field, $meta_itemtype = null) * Clean search options depending on the user active profile * * @param class-string<\CommonDBTM> $itemtype Item type to manage - * @param integer $action Action which is used to manupulate searchoption + * @param integer $action Action which is used to manipulate searchoption * (default READ) * @param boolean $withplugins Get plugins options (true by default) * @@ -765,7 +765,7 @@ public static function getDefaultToView(string $itemtype, array $params): array * plugin name is provided. * * @param string $string_identifier - * @param string $plugin + * @param ?string $plugin * @return int */ public static function generateAProbablyUniqueId(string $string_identifier, ?string $plugin = null): int diff --git a/src/Glpi/Security/TOTPManager.php b/src/Glpi/Security/TOTPManager.php index 87cae5b66bf..9ad37d8b8f5 100644 --- a/src/Glpi/Security/TOTPManager.php +++ b/src/Glpi/Security/TOTPManager.php @@ -101,11 +101,9 @@ final class TOTPManager /** * Get an instance of the TwoFactorAuth class - * @param int $digits Number of digits in the TOTP code - * @param int $period Number of seconds the TOTP code is valid for. * @param string $algorithm Algorithm used to generate the TOTP code. * @return TwoFactorAuth - * @throws \RobThree\Auth\TwoFactorAuthException + * @throws TwoFactorAuthException */ private function getTwoFactorAuth(string $algorithm = 'sha1'): TwoFactorAuth { @@ -125,7 +123,7 @@ private function getTwoFactorAuth(string $algorithm = 'sha1'): TwoFactorAuth /** * Generate a new TOTP secret code * @return string The secret code - * @throws \RobThree\Auth\TwoFactorAuthException + * @throws TwoFactorAuthException */ public function createSecret(): string { @@ -235,7 +233,7 @@ public function is2FAEnabled(int $users_id): bool * @param int $users_id ID of the user * @return bool True if the code is valid, false otherwise * @throws \JsonException - * @throws \RobThree\Auth\TwoFactorAuthException + * @throws TwoFactorAuthException */ public function verifyCodeForUser(string $code, int $users_id): bool { @@ -251,7 +249,7 @@ public function verifyCodeForUser(string $code, int $users_id): bool * @param string $code The code to verify * @param string $secret The secret to use * @return string|false The algorithm matched if the code is valid, false otherwise - * @throws \RobThree\Auth\TwoFactorAuthException + * @throws TwoFactorAuthException */ public function verifyCodeForSecret(string $code, string $secret): string|false { @@ -481,7 +479,7 @@ public function showTOTPPrompt(int $users_id): void * Show a form to set up TOTP for the current user or manage the settings if it is set up already. * @param int $users_id ID of the user * @param bool $force_setup Force the setup form to be shown even if 2FA is already enabled - * @param bool $regenerate_backup_codes Regenerate backup codes immedately when showing the status form + * @param bool $regenerate_backup_codes Regenerate backup codes immediately when showing the status form * @return void * @throws \JsonException * @throws TwoFactorAuthException diff --git a/src/Glpi/System/Diagnostic/DatabaseKeysChecker.php b/src/Glpi/System/Diagnostic/DatabaseKeysChecker.php index f7ca2c2c60d..4568d67b3d6 100644 --- a/src/Glpi/System/Diagnostic/DatabaseKeysChecker.php +++ b/src/Glpi/System/Diagnostic/DatabaseKeysChecker.php @@ -168,7 +168,7 @@ public function getUselessKeys(string $table_name): array continue; // This is not another key. } if (count($checked_fields) >= count($other_fields)) { - continue; // Other key does not contains more that expected fields, it is not a larger key. + continue; // Other key does not contain more that expected fields, it is not a larger key. } foreach ($checked_fields as $i => $checked_field) { @@ -199,7 +199,7 @@ private function areFieldsCorrecltyIndexed(string $table_name, array $fields, st { $index = $this->getIndex($table_name); - // Check if primary key matches matches given fields. + // Check if primary key matches given fields. if (array_key_exists('PRIMARY', $index) && $index['PRIMARY'] === $fields) { return true; } @@ -217,7 +217,7 @@ private function areFieldsCorrecltyIndexed(string $table_name, array $fields, st // Check if a larger key exists and contains given fields. foreach ($index as $key_fields) { if (count($fields) >= count($key_fields)) { - continue; // Key does not contains more that expected fields, it is not a larger key. + continue; // Key does not contain more that expected fields, it is not a larger key. } foreach ($fields as $i => $field) { if (!array_key_exists($i, $key_fields) || $key_fields[$i] !== $field) { diff --git a/src/Glpi/System/Diagnostic/DatabaseSchemaIntegrityChecker.php b/src/Glpi/System/Diagnostic/DatabaseSchemaIntegrityChecker.php index 974e3097fc7..2cc119bf947 100644 --- a/src/Glpi/System/Diagnostic/DatabaseSchemaIntegrityChecker.php +++ b/src/Glpi/System/Diagnostic/DatabaseSchemaIntegrityChecker.php @@ -246,7 +246,7 @@ public function extractSchemaFromFile(string $schema_path): array * Check if there is differences between effective schema and schema contained in given file. * * @param string $schema_path The absolute path to the schema file - * @param bool $include_unknown_tables Indicates whether unknown existing tables should be include in results + * @param bool $include_unknown_tables Indicates whether unknown existing tables should be included in results * @param string $context Context used for unknown tables identification (could be 'core' or 'plugin:plugin_key') * * @return array List of tables that differs from the expected schema. @@ -326,7 +326,7 @@ public function checkCompleteSchema( * Check if there is differences between effective schema and expected schema for given version/context. * * @param string|null $schema_version Installed schema version - * @param bool $include_unknown_tables Indicates whether unknown existing tables should be include in results + * @param bool $include_unknown_tables Indicates whether unknown existing tables should be included in results * @param string $context Context used for unknown tables identification (could be 'core' or 'plugin:plugin_key') * * @return array List of tables that differs from the expected schema. @@ -499,10 +499,10 @@ function ($matches) { && $dbversion !== null && version_compare(VersionParser::getNormalizedVersion($dbversion), '10.0', '<') ) { - // Before GLPI 10.0.0, COLLATE property was not explicitely defined for glpi_notimportedemails, + // Before GLPI 10.0.0, COLLATE property was not explicitly defined for glpi_notimportedemails, // and charset was not the same as other tables. // If installed schema is < 10.0.0, we exclude CHARACTER SET and COLLATE properties from - // diff as we cannot easilly predict effective values (COLLATE will depend on server configuration) + // diff as we cannot easily predict effective values (COLLATE will depend on server configuration) // and, anyway, it will be fixed during GLPI 10.0.0 migration. $column_replacements['/( CHARACTER SET \w+)? COLLATE \w+/i'] = ''; } @@ -537,7 +537,7 @@ function ($matches) { // MariaDB in some recent version (at least 10.11.7) seems to mention it on some indexes, but we do not know why. '/(`\w+`)\(250\)/' => '$1', // Mysql and MariaDB does not always have the same default value for index type depending on the index - // for example, the create query might return "UNIQUE KEY `unicity` USING HASH (`users_id`)" one one side + // for example, the create query might return "UNIQUE KEY `unicity` USING HASH (`users_id`)" one side // and "UNIQUE KEY `unicity` (`users_id`)" on the other side, despite being the same index. '/(UNIQUE KEY|FULLTEXT KEY|KEY) (.*) USING (\w+)/i' => '$1 $2', ]; @@ -575,7 +575,7 @@ function (string $a, string $b) { unset($properties['ROW_FORMAT']); } if (!$this->strict && ($properties['ROW_FORMAT'] ?? '') === 'DYNAMIC') { - // MySQL 5.7+ and MariaDB 10.2+ does not ouput ROW_FORMAT when ROW_FORMAT has not been specified in creation query + // MySQL 5.7+ and MariaDB 10.2+ does not output ROW_FORMAT when ROW_FORMAT has not been specified in creation query // and so uses default value. // Drop it if value is 'DYNAMIC' as we assume this is the default value. unset($properties['ROW_FORMAT']); @@ -604,10 +604,10 @@ function (string $a, string $b) { && $dbversion !== null && version_compare(VersionParser::getNormalizedVersion($dbversion), '10.0', '<') ) { - // Before GLPI 10.0.0, COLLATE property was not explicitely defined for glpi_notimportedemails, + // Before GLPI 10.0.0, COLLATE property was not explicitly defined for glpi_notimportedemails, // and charset was not the same as other tables. // If installed schema is < 10.0.0, we exclude DEFAULT CHARSET and COLLATE properties from - // diff as we cannot easilly predict effective values (COLLATE will depend on server configuration) + // diff as we cannot easily predict effective values (COLLATE will depend on server configuration) // and, anyway, it will be fixed during GLPI 10.0.0 migration. unset($properties['DEFAULT CHARSET']); unset($properties['COLLATE']); @@ -793,7 +793,7 @@ final public function canCheckIntegrity(?string $schema_version = null, string $ $is_latest_version = $schema_version === GLPI_SCHEMA_VERSION; if (!$is_stable_version && !$is_latest_version) { - // Cannot check integrity if version is not stable, unless installed version is latest one. + // Cannot check integrity if version is not stable, unless installed version is the latest one. return false; } } diff --git a/src/Glpi/System/Requirement/InstallationNotOverriden.php b/src/Glpi/System/Requirement/InstallationNotOverriden.php index 90965752c7b..a82dd2e63ee 100644 --- a/src/Glpi/System/Requirement/InstallationNotOverriden.php +++ b/src/Glpi/System/Requirement/InstallationNotOverriden.php @@ -80,7 +80,7 @@ protected function check() if ($version_files_count == 0) { // Cannot do the check. - // Indicating that `version` directory is missing would be useless, as it would probably incitate administrator + // Indicating that `version` directory is missing would be useless, as it would probably encourage administrator // to restore it, and it would result in a "false positive" type validation. $this->out_of_context = true; return; diff --git a/src/Glpi/System/RequirementsManager.php b/src/Glpi/System/RequirementsManager.php index 3afd1a2a790..2659b7fa9a4 100644 --- a/src/Glpi/System/RequirementsManager.php +++ b/src/Glpi/System/RequirementsManager.php @@ -76,7 +76,7 @@ public function getCoreRequirementList(?\DBmysql $db = null): RequirementsList $requirements[] = new MemoryLimit(64 * 1024 * 1024); - // Mandatory PHP extensions that are defaultly enabled but can be disabled + // Mandatory PHP extensions that are enabled per default but can be disabled $requirements[] = new ExtensionGroup( __('PHP core extensions'), [ @@ -91,7 +91,7 @@ public function getCoreRequirementList(?\DBmysql $db = null): RequirementsList ] ); - // Mandatory PHP extensions that are NOT defaultly enabled + // Mandatory PHP extensions that are NOT enabled per default $requirements[] = new Extension( 'mysqli', false, diff --git a/src/Glpi/Toolbox/Filesystem.php b/src/Glpi/Toolbox/Filesystem.php index 69679684c54..55e136cbc31 100644 --- a/src/Glpi/Toolbox/Filesystem.php +++ b/src/Glpi/Toolbox/Filesystem.php @@ -50,7 +50,7 @@ public static function canWriteFile(string $path): bool return is_writable($path); } - // If the file does not exists, try to create it. + // If the file does not exist, try to create it. $file = @fopen($path, 'c'); if ($file === false) { return false; diff --git a/src/Glpi/Toolbox/Sanitizer.php b/src/Glpi/Toolbox/Sanitizer.php index bd65344b5d5..413a619b06f 100644 --- a/src/Glpi/Toolbox/Sanitizer.php +++ b/src/Glpi/Toolbox/Sanitizer.php @@ -234,7 +234,7 @@ public static function isDbEscaped(string $value): bool } /** - * Check wether the value correspond to a valid namespaced class (or a callable identifier related to a valid class). + * Check whether the value correspond to a valid namespaced class (or a callable identifier related to a valid class). * Note: also support the {namespace}${tab number} format used for tab identifications * * @param string $value diff --git a/src/Glpi/Toolbox/VersionParser.php b/src/Glpi/Toolbox/VersionParser.php index bc5e6cd5ea9..88989ccb2f5 100644 --- a/src/Glpi/Toolbox/VersionParser.php +++ b/src/Glpi/Toolbox/VersionParser.php @@ -57,10 +57,10 @@ public static function getNormalizedVersion(string $version, bool $keep_stabilit '', [ '/^', - '(?\d+)', // Major release numero, always present - '\.(?\d+)', // Minor release numero, always present - '(\.(?\d+))?', // Bugfix numero, not always present (e.g. GLPI 9.2) - '(\.(?\d+))?', // Redo tag operation numero, rarely present (e.g. GLPI 9.4.1.1) + '(?\d+)', // Major release number, always present + '\.(?\d+)', // Minor release number, always present + '(\.(?\d+))?', // Bugfix number, not always present (e.g. GLPI 9.2) + '(\.(?\d+))?', // Redo tag operation number, rarely present (e.g. GLPI 9.4.1.1) '(?-' . self::UNSTABLE_FLAG_PATTERN . ')?', // Stability flag, optional '$/' ] @@ -77,7 +77,7 @@ public static function getNormalizedVersion(string $version, bool $keep_stabilit } /** - * Check if given version is a stable release (i.e. does not contains a stability flag refering to unstable state). + * Check if given version is a stable release (i.e. does not contain a stability flag referring to unstable state). * * @param string $version * diff --git a/src/Glpi/UI/ThemeManager.php b/src/Glpi/UI/ThemeManager.php index 701d8b1abe9..1cbfe82a6ed 100644 --- a/src/Glpi/UI/ThemeManager.php +++ b/src/Glpi/UI/ThemeManager.php @@ -183,7 +183,7 @@ public function getAllThemes(): array /** * Get the Theme object for the current $_SESSION['glpipalette'] value. * - * If the "glpipalette" value is not set, the defautl theme is used. + * If the "glpipalette" value is not set, the default theme is used. * @return Theme */ public function getCurrentTheme(): Theme