Skip to content

Commit

Permalink
Misc. typos
Browse files Browse the repository at this point in the history
Found via `codespell`
  • Loading branch information
luzpaz authored and vboctor committed May 31, 2018
1 parent 73b661b commit f4255ef
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion core.php
Expand Up @@ -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();
Expand Down
4 changes: 2 additions & 2 deletions core/access_api.php
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions core/classes/BugFilterQuery.class.php
Expand Up @@ -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() {
Expand Down Expand Up @@ -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 ) );
}
}

Expand Down
2 changes: 1 addition & 1 deletion core/constant_inc.php
Expand Up @@ -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 );

Expand Down
2 changes: 1 addition & 1 deletion core/custom_field_api.php
Expand Up @@ -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 );
Expand Down
2 changes: 1 addition & 1 deletion core/file_api.php
Expand Up @@ -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;
}
Expand Down
14 changes: 7 additions & 7 deletions core/filter_api.php
Expand Up @@ -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()
Expand Down Expand Up @@ -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 ) {
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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 );
Expand Down Expand Up @@ -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 ) );
Expand Down
2 changes: 1 addition & 1 deletion core/lang_api.php
Expand Up @@ -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];
Expand Down
2 changes: 1 addition & 1 deletion core/relationship_api.php
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion css/ace.css
Expand Up @@ -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;
}
*/
Expand Down
2 changes: 1 addition & 1 deletion javascript_translations.php
Expand Up @@ -15,7 +15,7 @@
# along with MantisBT. If not, see <http://www.gnu.org/licenses/>.

/**
* Handle langauge translations for Javascript
* Handle language translations for Javascript
*
* @package MantisBT
* @copyright Copyright 2000 - 2002 Kenzaburo Ito - kenito@300baud.org
Expand Down

0 comments on commit f4255ef

Please sign in to comment.