Commit 73c66d4d authored by jhodgdon's avatar jhodgdon

Issue #2329703 by maximpodorov: Fix spelling in varous files

parent 748ef5bb
......@@ -128,7 +128,7 @@
* \Drupal\Core\Ajax\CommandInterface. Available commands provide the ability
* to pop up alerts, manipulate text and markup in various ways, redirect
* to a new URL, and the generic \Drupal\Core\Ajax\InvokeCommand, which
* invokes an arbitrary jQuery commnd.
* invokes an arbitrary jQuery command.
*
* As noted above, status messages are prepended automatically if you use the
* 'wrapper' method and return HTML markup. This is not the case if you return
......
......@@ -958,7 +958,7 @@ function drupal_set_message($message = NULL, $type = 'status', $repeat = FALSE)
* the top-level keys as the message type. The messages returned are
* limited to the type specified in the $type parameter, if any. If there
* are no messages of the specified type, an empty array is returned. See
* drupal_set_message() for the array structure of indivdual messages.
* drupal_set_message() for the array structure of individual messages.
*
* @see drupal_set_message()
* @see theme_status_messages()
......@@ -1004,7 +1004,7 @@ function drupal_get_messages($type = NULL, $clear_queue = TRUE) {
* @param $phase
* A constant telling which phase to bootstrap to. Possible values:
* - DRUPAL_BOOTSTRAP_CONFIGURATION: Initializes configuration.
* - DRUPAL_BOOTSTRAP_KERNEL: Initalizes a kernel.
* - DRUPAL_BOOTSTRAP_KERNEL: Initializes a kernel.
*
* @return int
* The most recently completed phase.
......@@ -1487,7 +1487,7 @@ function drupal_classloader_register($name, $path) {
* static $foo = &drupal_static(__FUNCTION__);
* @endcode
* However, the above line of code does not work, because PHP only allows static
* variables to be initializied by literal values, and does not allow static
* variables to be initialized by literal values, and does not allow static
* variables to be assigned to references.
* - http://php.net/manual/language.variables.scope.php#language.variables.scope.static
* - http://php.net/manual/language.variables.scope.php#language.variables.scope.references
......
......@@ -972,7 +972,7 @@ function drupal_add_html_head_link($attributes, $header = FALSE) {
* The aggregate group number affects load order and the CSS cascade.
* Stylesheets in an aggregate with a lower group number will be output to
* the page before stylesheets in an aggregate with a higher group number,
* so CSS within higher aggregate groups can take precendence over CSS
* so CSS within higher aggregate groups can take precedence over CSS
* within lower aggregate groups.
* - 'every_page': For optimal front-end performance when aggregation is
* enabled, this should be set to TRUE if the stylesheet is present on every
......@@ -1018,7 +1018,7 @@ function drupal_add_html_head_link($attributes, $header = FALSE) {
* See http://drupal.org/node/1887922
* - 'media': The media type for the stylesheet, e.g., all, print, screen.
* Defaults to 'all'. It is extremely important to leave this set to 'all'
* or it will negatively impact front-end peformance. Instead add a @media
* or it will negatively impact front-end performance. Instead add a @media
* block to the included CSS file.
* - 'preprocess': If TRUE and CSS aggregation/compression is enabled, the
* styles will be aggregated and compressed. Defaults to TRUE.
......@@ -2912,7 +2912,7 @@ function drupal_render(&$elements, $is_recursive_call = FALSE) {
// Filter the outputted content and make any last changes before the
// content is sent to the browser. The changes are made on $content
// which allows the output'ed text to be filtered.
// which allows the outputted text to be filtered.
if (isset($elements['#post_render'])) {
foreach ($elements['#post_render'] as $callable) {
if (is_string($callable) && strpos($callable, '::') === FALSE) {
......
......@@ -153,7 +153,7 @@
* ->execute();
* @endcode
*
* @section sec_transaction Tranactions
* @section sec_transaction Transactions
* Drupal supports transactions, including a transparent fallback for
* databases that do not support transactions. To start a new transaction,
* call @code $txn = db_transaction(); @endcode The transaction will
......
......@@ -185,7 +185,7 @@ function _drupal_log_error($error, $fatal = FALSE) {
}
else {
// Display the message if the current error reporting level allows this type
// of message to be displayed, and unconditionnaly in update.php.
// of message to be displayed, and unconditionally in update.php.
if (error_displayable($error)) {
$class = 'error';
......
......@@ -652,7 +652,7 @@ function file_htaccess_lines($private = TRUE) {
* TRUE if the URI is allowed.
*/
function file_valid_uri($uri) {
// Assert that the URI has an allowed scheme. Barepaths are not allowed.
// Assert that the URI has an allowed scheme. Bare paths are not allowed.
$uri_scheme = file_uri_scheme($uri);
if (!file_stream_wrapper_valid_scheme($uri_scheme)) {
return FALSE;
......
......@@ -1196,7 +1196,7 @@ function install_select_language(&$install_state) {
}
// If we are performing a non-interactive installation. If only one language
// (English) is available, assume the user knows what he is doing. Otherwise
// thow an error.
// throw an error.
else {
if (count($files) == 1) {
$install_state['parameters']['langcode'] = current(array_keys($files));
......@@ -1210,7 +1210,7 @@ function install_select_language(&$install_state) {
}
/**
* Download a translation file for the selected langaguage.
* Download a translation file for the selected language.
*
* @param array $install_state
* An array of information about the current installation state.
......@@ -1227,7 +1227,7 @@ function install_download_translation(&$install_state) {
return $output;
}
// The download was successful, reload the page in the new lanagage.
// The download was successful, reload the page in the new language.
install_goto(install_redirect_url($install_state));
}
......
......@@ -363,7 +363,7 @@ function _drupal_rewrite_settings_is_simple($type, $value) {
* Helper for drupal_rewrite_settings().
*
* Checks whether this token represents a valid array index: a number or a
* stirng.
* string.
*
* @param int $type
* The token type
......
......@@ -315,7 +315,7 @@ function update_get_update_list() {
// Otherwise, get the list of updates defined by this module.
$updates = drupal_get_schema_versions($module);
if ($updates !== FALSE) {
// \Drupal::moduleHandler()->invoke() returns NULL for nonexisting hooks,
// \Drupal::moduleHandler()->invoke() returns NULL for non-existing hooks,
// so if no updates are removed, it will == 0.
$last_removed = \Drupal::moduleHandler()->invoke($module, 'update_last_removed');
if ($schema_version < $last_removed) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment