From f4255ef0613329f9b1d3178c5bebdd0371ab9484 Mon Sep 17 00:00:00 2001 From: "luz.paz" Date: Tue, 29 May 2018 14:57:24 -0400 Subject: [PATCH] Misc. typos Found via `codespell` --- core.php | 2 +- core/access_api.php | 4 ++-- core/classes/BugFilterQuery.class.php | 6 +++--- core/constant_inc.php | 2 +- core/custom_field_api.php | 2 +- core/file_api.php | 2 +- core/filter_api.php | 14 +++++++------- core/lang_api.php | 2 +- core/relationship_api.php | 2 +- css/ace.css | 2 +- javascript_translations.php | 2 +- 11 files changed, 20 insertions(+), 20 deletions(-) diff --git a/core.php b/core.php index 821e5287a0..cad804988f 100644 --- a/core.php +++ b/core.php @@ -82,7 +82,7 @@ die(); } -# Ensure that encoding is always UTF-8 independant from any PHP default or ini setting +# Ensure that encoding is always UTF-8 independent from any PHP default or ini setting mb_internal_encoding('UTF-8'); ob_start(); diff --git a/core/access_api.php b/core/access_api.php index ebb7c0910c..113437de6a 100644 --- a/core/access_api.php +++ b/core/access_api.php @@ -347,7 +347,7 @@ function access_has_project_level( $p_access_level, $p_project_id = null, $p_use * - string: for a threshold option which will be evaluated * for each project context * @param array $p_project_ids Array of project ids to check access against, default to null - * to use all user accesible projects + * to use all user accessible projects * @param integer|null $p_user_id Integer representing user id, defaults to null to use current user. * @param integer $p_limit Maximum number of results, default is 0 for all results * @return array The filtered array of project ids @@ -404,7 +404,7 @@ function access_project_array_filter( $p_access_level, array $p_project_ids = nu * - string: for a threshold option which will be evaluated * for each project context * @param array $p_project_ids Array of project ids to check access against, default to null - * to use all user accesible projects + * to use all user accessible projects * @param integer|null $p_user_id Integer representing user id, defaults to null to use current user. * @return boolean True if user has the specified access level for any of the projects * @access public diff --git a/core/classes/BugFilterQuery.class.php b/core/classes/BugFilterQuery.class.php index f7578cb70a..306e32eb2b 100644 --- a/core/classes/BugFilterQuery.class.php +++ b/core/classes/BugFilterQuery.class.php @@ -937,7 +937,7 @@ protected function build_prop_fixed_version() { } /** - * Build the query parts for the filter property "taget version" + * Build the query parts for the filter property "target version" * @return void */ protected function build_prop_target_version() { @@ -1185,11 +1185,11 @@ protected function build_prop_tags() { } else { if( empty( $t_projects_can_view_tags ) ) { # if can't view tags in any project, exit - log_event( LOG_FILTERING, 'tags query, no accesible projects ' ); + log_event( LOG_FILTERING, 'tags query, no accessible projects ' ); return; } else { $t_tag_projects_clause = ' AND ' . $this->sql_in( '{bug}.project_id', $t_projects_can_view_tags ); - log_event( LOG_FILTERING, 'tags query, accesible projects = @P' . implode( ', @P', $t_projects_can_view_tags ) ); + log_event( LOG_FILTERING, 'tags query, accessible projects = @P' . implode( ', @P', $t_projects_can_view_tags ) ); } } diff --git a/core/constant_inc.php b/core/constant_inc.php index b24a5b3555..70ea5a368c 100644 --- a/core/constant_inc.php +++ b/core/constant_inc.php @@ -664,7 +664,7 @@ # Byte Order Markers define( 'UTF8_BOM', "\xEF\xBB\xBF" ); -# Maximum number of bugs that are treated simutaneously in export procedures, +# Maximum number of bugs that are treated simultaneously in export procedures, # to keep memory usage under control. Do not exceed 1000 if using Oracle DB. define( 'EXPORT_BLOCK_SIZE', 500 ); diff --git a/core/custom_field_api.php b/core/custom_field_api.php index 1008d24662..e6c9a0785e 100644 --- a/core/custom_field_api.php +++ b/core/custom_field_api.php @@ -779,7 +779,7 @@ function custom_field_get_linked_ids( $p_project_id = ALL_PROJECTS ) { if( ALL_PROJECTS == $p_project_id ) { $t_user_id = auth_get_current_user_id(); - # Select all projects accesible by the user + # Select all projects accessible by the user $t_project_ids = user_get_all_accessible_projects( $t_user_id ); } elseif( !is_array( $p_project_id ) ) { $t_project_ids = array( $p_project_id ); diff --git a/core/file_api.php b/core/file_api.php index cc8ada2b65..7e868c20ef 100644 --- a/core/file_api.php +++ b/core/file_api.php @@ -919,7 +919,7 @@ function file_allow_bug_upload( $p_bug_id = null, $p_user_id = null, $p_project_ $p_user_id = auth_get_current_user_id(); } - # If uploads are disbled just return false + # If uploads are disabled just return false if( !file_is_uploading_enabled() ) { return false; } diff --git a/core/filter_api.php b/core/filter_api.php index adb04d6c8d..2289b81c22 100644 --- a/core/filter_api.php +++ b/core/filter_api.php @@ -558,7 +558,7 @@ function filter_ensure_fields( array $p_filter_arr ) { /** * A wrapper to compare filter version syntax - * Note: Currently, filter versions hve this syntax: "vN", * where N is a integer number. + * Note: Currently, filter versions have this syntax: "vN", * where N is an integer number. * @param string $p_version1 First version number * @param string $p_version2 Second version number * @param string $p_operator Comparison test, if provided. As expected by version_compare() @@ -3567,11 +3567,11 @@ function filter_is_named_filter( $p_filter_id ) { } /** - * Returns true if the filter is accesible by the user, which happens when the user + * Returns true if the filter is accessible by the user, which happens when the user * is the owner of the filter, or the filter is public. * @param integer $p_filter_id Filter id * @param integer $p_user_id User id - * @return boolean true if the filter is accesible by the user + * @return boolean true if the filter is accessible by the user */ function filter_is_accessible( $p_filter_id, $p_user_id = null ) { if( null === $p_user_id ) { @@ -3630,7 +3630,7 @@ function filter_print_view_type_toggle( $p_url, $p_view_type ) { * This array includes all individual projects/subprojects that are in the search scope. * If ALL_PROJECTS were included directly, or indirectly, and the parameter $p_return_all_projects * is set to true, the value ALL_PROJECTS will be returned. Otherwise the array will be expanded - * to all actual accesible projects + * to all actual accessible projects * @param array $p_filter Filter array * @param integer $p_project_id Project id to use in filtering, if applicable by filter type * @param integer $p_user_id User id to use as current user when filtering @@ -3729,7 +3729,7 @@ function filter_get_included_projects( array $p_filter, $p_project_id = null, $p /** * Returns a filter array structure for the given filter_id * A default value can be provided to be used when the filter_id doesn't exists - * or is not accesible + * or is not accessible * * You may pass in any array as a default (including null) but if * you pass in *no* default then an error will be triggered if the filter @@ -3745,7 +3745,7 @@ function filter_get( $p_filter_id, array $p_default = null ) { # This function checks for user access $t_filter_string = filter_db_get_filter_string( $p_filter_id ); - # If value is false, it either doesn't exists or is not accesible + # If value is false, it either doesn't exists or is not accessible if( !$t_filter_string ) { if( $t_trigger_error ) { error_parameters( $p_filter_id ); @@ -3826,7 +3826,7 @@ function filter_update_source_properties( array $p_filter ) { } if( isset( $p_filter['_source_query_id'] ) && $t_filter_id != $p_filter['_source_query_id'] ) { $t_source_query_id = $p_filter['_source_query_id']; - # check if filter id is a proper named filter, and is accesible + # check if filter id is a proper named filter, and is accessible if( filter_is_named_filter( $t_source_query_id ) && filter_is_accessible( $t_source_query_id ) ){ # replace filter with the referenced one $t_new_filter = filter_deserialize( filter_db_get_filter_string( $t_source_query_id ) ); diff --git a/core/lang_api.php b/core/lang_api.php index 2233b3a3e1..79dac1eca7 100644 --- a/core/lang_api.php +++ b/core/lang_api.php @@ -288,7 +288,7 @@ function lang_get( $p_string, $p_lang = null ) { # language files actually *contain* English strings if none has been # defined in the correct language # @todo thraxisp - not sure if this is still true. Strings from last language loaded - # may still be in memeory if a new language is loaded. + # may still be in memory if a new language is loaded. if( lang_exists( $p_string, $t_lang ) ) { return $g_lang_strings[$t_lang][$p_string]; diff --git a/core/relationship_api.php b/core/relationship_api.php index 96ce42d25d..4356bd738d 100644 --- a/core/relationship_api.php +++ b/core/relationship_api.php @@ -691,7 +691,7 @@ function relationship_get_id_from_api_name( $p_relationship_type_name ) { /** * return false if there are child bugs not resolved/closed - * N.B. we don't check if the parent bug is read-only. This is because the answer of this function is indepedent from + * N.B. we don't check if the parent bug is read-only. This is because the answer of this function is independent from * the state of the parent bug itself. * @param integer $p_bug_id A bug identifier. * @return boolean diff --git a/css/ace.css b/css/ace.css index 6636a8a838..f7bf7facdc 100644 --- a/css/ace.css +++ b/css/ace.css @@ -8730,7 +8730,7 @@ input[type=radio].ace.disabled + .lbl::before { input[type=radio].ace @{lbl}::before { border-radius:100%; font-size: 34px; - font-family: Helvetica, Arial, "Sans-Serif";//looks better but incosistent + font-family: Helvetica, Arial, "Sans-Serif";//looks better but inconsistent line-height: 13px; } */ diff --git a/javascript_translations.php b/javascript_translations.php index 47837169a3..0ba521f877 100644 --- a/javascript_translations.php +++ b/javascript_translations.php @@ -15,7 +15,7 @@ # along with MantisBT. If not, see . /** - * Handle langauge translations for Javascript + * Handle language translations for Javascript * * @package MantisBT * @copyright Copyright 2000 - 2002 Kenzaburo Ito - kenito@300baud.org