Commit 80fbd33d authored by jhodgdon's avatar jhodgdon
Browse files

Issue #2145077 by TR, longwave: Fix about a zillion spelling errors, mostly in comments

parent 3caa9d60
......@@ -2264,7 +2264,7 @@ function drupal_valid_test_ua($new_prefix = NULL) {
// The file properties add more entropy not easily accessible to others.
$key = drupal_get_hash_salt() . filectime(__FILE__) . fileinode(__FILE__);
$time_diff = REQUEST_TIME - $time;
// We cant use Crypt::hmacBase64() yet because this can be called in very
// We can't use Crypt::hmacBase64() yet because this can be called in very
// early bootstrap when autoloader has not been initialized yet.
$test_hmac = base64_encode(hash_hmac('sha256', $check_string, $key, TRUE));
$test_hmac = strtr($test_hmac, array('+' => '-', '/' => '_', '=' => ''));
......
......@@ -624,7 +624,7 @@ function valid_url($url, $absolute = FALSE) {
* given step.
*
* @return bool
* TRUE if no step mismatch has occured, or FALSE otherwise.
* TRUE if no step mismatch has occurred, or FALSE otherwise.
*
* @deprecated as of Drupal 8.0. Use
* \Drupal\Component\Utility\Number::validStep() directly instead
......
......@@ -1670,7 +1670,7 @@ function install_select_language_form($form, &$form_state, $files = array()) {
*
* @return string
* A themed status report, or an exception if there are requirement errors.
* Upon successfull download the page is reloaded and no output is returned.
* Upon successful download the page is reloaded and no output is returned.
*/
function install_download_translation(&$install_state) {
// Check whether all conditions are met to download. Download the translation
......@@ -1680,7 +1680,7 @@ function install_download_translation(&$install_state) {
return $output;
}
// The download was successfull, reload the page in the new lanagage.
// The download was successful, reload the page in the new lanagage.
install_goto(install_redirect_url($install_state));
}
......@@ -2205,7 +2205,7 @@ function install_finished(&$install_state) {
// Will also trigger indexing of profile-supplied content or feeds.
drupal_cron_run();
// Save a snapshot of the intially installed configuration.
// Save a snapshot of the initially installed configuration.
$active = drupal_container()->get('config.storage');
$snapshot = drupal_container()->get('config.storage.snapshot');
config_import_create_snapshot($active, $snapshot);
......
......@@ -23,7 +23,7 @@
class Plugin implements AnnotationInterface {
/**
* The plugin definiton read from the class annotation.
* The plugin definition read from the class annotation.
*
* @var array
*/
......
......@@ -247,11 +247,11 @@ private function readHeader() {
* this line ends the current item, it is saved with setItemFromArray() with
* data from $this->_current_item.
*
* An internal state machine is maintained in this reader using $this->_context
* as the reading state. PO items are inbetween COMMENT states (when items have
* at least one line or comment inbetween them or indicated by MSGSTR or
* MSGSTR_ARR followed immediately by an MSGID or MSGCTXT (when items closely
* follow each other).
* An internal state machine is maintained in this reader using
* $this->_context as the reading state. PO items are in between COMMENT
* states (when items have at least one line or comment in between them) or
* indicated by MSGSTR or MSGSTR_ARR followed immediately by an MSGID or
* MSGCTXT (when items closely follow each other).
*
* @return
* FALSE if an error was logged, NULL otherwise. The errors are considered
......
......@@ -9,7 +9,7 @@
/**
* Plugin interface for providing some metadata inspection.
*
* This interface provides some simple tools for code recieving a plugin to
* This interface provides some simple tools for code receiving a plugin to
* interact with the plugin system.
*/
interface PluginInspectionInterface {
......
......@@ -28,7 +28,7 @@ class Number {
* given step.
*
* @return bool
* TRUE if no step mismatch has occured, or FALSE otherwise.
* TRUE if no step mismatch has occurred, or FALSE otherwise.
*
* @see http://opensource.apple.com/source/WebCore/WebCore-1298/html/NumberInputType.cpp
*/
......
......@@ -91,14 +91,14 @@ class Unicode {
const STATUS_ERROR = -1;
/**
* Holds the multibyte capabilities of the current enviroment.
* Holds the multibyte capabilities of the current environment.
*
* @var int
*/
protected static $status = 0;
/**
* Get the current status of unicode/multibyte support on this enviroment.
* Get the current status of unicode/multibyte support on this environment.
*
* @return int
* The status of multibyte support. It can be one of:
......@@ -107,14 +107,14 @@ class Unicode {
* - \Drupal\Component\Utility\Unicode::STATUS_SINGLEBYTE
* Standard PHP (emulated) unicode support.
* - \Drupal\Component\Utility\Unicode::STATUS_ERROR
* An error occured. No unicode support.
* An error occurred. No unicode support.
*/
public static function getStatus() {
return static::$status;
}
/**
* Sets the value for multibyte support status for the current enviroment.
* Sets the value for multibyte support status for the current environment.
*
* The following status keys are supported:
* - \Drupal\Component\Utility\Unicode::STATUS_MULTIBYTE
......@@ -122,7 +122,7 @@ public static function getStatus() {
* - \Drupal\Component\Utility\Unicode::STATUS_SINGLEBYTE
* Standard PHP (emulated) unicode support.
* - \Drupal\Component\Utility\Unicode::STATUS_ERROR
* An error occured. No unicode support.
* An error occurred. No unicode support.
*
* @param int $status
* The new status of multibyte support.
......
......@@ -232,8 +232,8 @@ public static function externalIsLocal($url, $base_url) {
}
else {
// When comparing base paths, we need a trailing slash to make sure a
// partial URL match isn't occuring. Since base_path() always returns with
// a trailing slash, we don't need to add the trailing slash here.
// partial URL match isn't occurring. Since base_path() always returns
// with a trailing slash, we don't need to add the trailing slash here.
return ($url_parts['host'] == $base_host && stripos($url_parts['path'], $base_url) === 0);
}
}
......
......@@ -110,7 +110,7 @@ public function loadFile($file, $optimize = NULL, $reset_basepath = TRUE) {
$content = $this->processCss($contents, $_optimize);
}
// Restore the parent base path as the file and its childen are processed.
// Restore the parent base path as the file and its children are processed.
$basepath = $parent_base_path;
return $content;
}
......
......@@ -268,7 +268,7 @@ public function on500Html(FlattenException $exception, Request $request) {
}
/**
* Processes an AccessDenied exception that occured on a JSON request.
* Processes an AccessDenied exception that occurred on a JSON request.
*
* @param Symfony\Component\HttpKernel\Exception\FlattenException $exception
* The flattened exception.
......@@ -282,7 +282,7 @@ public function on403Json(FlattenException $exception, Request $request) {
}
/**
* Processes a NotFound exception that occured on a JSON request.
* Processes a NotFound exception that occurred on a JSON request.
*
* @param Symfony\Component\HttpKernel\Exception\FlattenException $exception
* The flattened exception.
......@@ -296,7 +296,7 @@ public function on404Json(FlattenException $exception, Request $request) {
}
/**
* Processes a MethodNotAllowed exception that occured on a JSON request.
* Processes a MethodNotAllowed exception that occurred on a JSON request.
*
* @param Symfony\Component\HttpKernel\Exception\FlattenException $exception
* The flattened exception.
......
......@@ -169,7 +169,7 @@ public function addField($field, $type, $langcode) {
else {
// ensureEntityTable() decides whether an entity property will be
// queried from the data table or the base table based on where it
// finds the property first. The data table is prefered, which is why
// finds the property first. The data table is preferred, which is why
// it gets added before the base table.
$entity_tables = array();
if (isset($entity_info['data_table'])) {
......
......@@ -52,7 +52,8 @@ protected function alterRoutes(RouteCollection $collection, $module) {
* The route build event.
*
* @return bool
* Returns TRUE if the variables were succesfully replaced, otherwise FALSE.
* Returns TRUE if the variables were successfully replaced, otherwise
* FALSE.
*/
public function onAlterRoutes(RouteBuildEvent $event) {
$collection = $event->getRouteCollection();
......
......@@ -15,7 +15,7 @@
* Instances of this class are used to store the configuration and extensions,
* and are used to load templates from the file system or other locations.
*
* @see core\vendor\twig\twig\lib\Twig\Enviornment.php
* @see core\vendor\twig\twig\lib\Twig\Environment.php
*/
class TwigEnvironment extends \Twig_Environment {
protected $cache_object = NULL;
......
......@@ -15,7 +15,7 @@ function scrollValue(position) {
return document.documentElement[position] || document.body[position];
}
// Select and initilize sticky table headers.
// Select and initialize sticky table headers.
function tableHeaderInitHandler(e) {
var $tables = $(e.data.context).find('table.sticky-enabled').once('tableheader');
for (var i = 0, il = $tables.length; i < il; i++) {
......
......@@ -37,7 +37,7 @@ public function __construct(BanIpManager $manager) {
}
/**
* Response with 403 if the visitor's IP adress is banned.
* Response with 403 if the visitor's IP address is banned.
*
* @param Symfony\Component\HttpKernel\Event\GetResponseEvent $event
* The Event to process.
......
......@@ -144,7 +144,7 @@ protected function testDeleteBlockDisplay() {
$block_storage_controller = $this->container->get('entity.manager')->getStorageController('block');
// Remove the block display, so both block entities from the first view
// should both dissapear.
// should both disappear.
$view = views_get_view('test_view_block');
$view->initDisplay();
$view->displayHandlers->remove('block_1');
......
......@@ -266,7 +266,7 @@ function content_translation_menu_alter(array &$items) {
}
while (!empty($entity_form_item['type']) && $entity_form_item['type'] == MENU_DEFAULT_LOCAL_TASK);
// Make the "Translate" tab follow the "Edit" one when possibile.
// Make the "Translate" tab follow the "Edit" one when possible.
if (isset($entity_form_item['weight'])) {
$items["$path/translations"]['weight'] = $entity_form_item['weight'] + 0.01;
}
......
......@@ -461,7 +461,7 @@ public static function daysInMonth($date = NULL) {
*
* @param mixed $date
* (optional) A date object, timestamp, or a date string.
* Defaults to NULL, whcih means to use the current date.
* Defaults to NULL, which means to use the current date.
*
* @return int
* The number of days in the year.
......@@ -506,7 +506,7 @@ public static function dayOfWeek($date = NULL) {
*
* @param mixed $date
* (optional) A date object, timestamp, or a date string.
* Defaults to NULL, whcih means use the current date.
* Defaults to NULL, which means use the current date.
* @param string $abbr
* (optional) Whether to return the abbreviated name for that day.
* Defaults to TRUE.
......
......@@ -24,7 +24,7 @@ class DbLogTest extends WebTestBase {
public static $modules = array('dblog', 'node', 'forum', 'help');
/**
* A user with some relevent administrative permissions.
* A user with some relevant administrative permissions.
*
* @var object
*/
......
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