diff --git a/core/includes/bootstrap.inc b/core/includes/bootstrap.inc index f414d53f5e702c67f4ce94cb020514572f8151e5..e13f54e08badc555211f13ead75a04b42326fbaa 100644 --- a/core/includes/bootstrap.inc +++ b/core/includes/bootstrap.inc @@ -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('+' => '-', '/' => '_', '=' => '')); diff --git a/core/includes/common.inc b/core/includes/common.inc index c657cd5a070b8c4bb78eda145bb205cfa6318df9..6727d4bcdf5bdb0d5278f6fc04ef64300d4d45e0 100644 --- a/core/includes/common.inc +++ b/core/includes/common.inc @@ -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 diff --git a/core/includes/install.core.inc b/core/includes/install.core.inc index f53b7883122586627e19d043a4e3f65fd84b4c8c..feda4dcdc8a6f28be3aa99cda97ed4dc70b35117 100644 --- a/core/includes/install.core.inc +++ b/core/includes/install.core.inc @@ -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); diff --git a/core/lib/Drupal/Component/Annotation/Plugin.php b/core/lib/Drupal/Component/Annotation/Plugin.php index 0af30105e65130689698106c7a1a263831d44612..b67092b0bd3c398345dee16c9c5ae3eec1278dfc 100644 --- a/core/lib/Drupal/Component/Annotation/Plugin.php +++ b/core/lib/Drupal/Component/Annotation/Plugin.php @@ -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 */ diff --git a/core/lib/Drupal/Component/Gettext/PoStreamReader.php b/core/lib/Drupal/Component/Gettext/PoStreamReader.php index cc80c1a354d4f1f83889fb0fc79494c1a8dd6f86..6b4192f49294a1e641730c34b90c26ecd09bdc71 100644 --- a/core/lib/Drupal/Component/Gettext/PoStreamReader.php +++ b/core/lib/Drupal/Component/Gettext/PoStreamReader.php @@ -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 diff --git a/core/lib/Drupal/Component/Plugin/PluginInspectionInterface.php b/core/lib/Drupal/Component/Plugin/PluginInspectionInterface.php index 31e5e468d71d0e46b0ac3401a47ab60bf6fc89e3..643077564f19318c6318b9204df66481c152ce52 100644 --- a/core/lib/Drupal/Component/Plugin/PluginInspectionInterface.php +++ b/core/lib/Drupal/Component/Plugin/PluginInspectionInterface.php @@ -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 { diff --git a/core/lib/Drupal/Component/Utility/Number.php b/core/lib/Drupal/Component/Utility/Number.php index 5df6cf4e77d08adf7df8877f8c4c370234e888d1..b4340dd0ce6159a0a037269c380ad9126a7ef62b 100644 --- a/core/lib/Drupal/Component/Utility/Number.php +++ b/core/lib/Drupal/Component/Utility/Number.php @@ -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 */ diff --git a/core/lib/Drupal/Component/Utility/Unicode.php b/core/lib/Drupal/Component/Utility/Unicode.php index 6bbddbbc5a97300d0c8d2f31ae0a6db7597f1f6d..c5e0d82e9ac029d7efe86f93b24eb144afcbd280 100644 --- a/core/lib/Drupal/Component/Utility/Unicode.php +++ b/core/lib/Drupal/Component/Utility/Unicode.php @@ -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. diff --git a/core/lib/Drupal/Component/Utility/Url.php b/core/lib/Drupal/Component/Utility/Url.php index cdc01c83f4db841ad5836ed00edbc2e11d77c13d..4fe96e228860ad6dc0ef0dfa2e22566738226e63 100644 --- a/core/lib/Drupal/Component/Utility/Url.php +++ b/core/lib/Drupal/Component/Utility/Url.php @@ -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); } } diff --git a/core/lib/Drupal/Core/Asset/CssOptimizer.php b/core/lib/Drupal/Core/Asset/CssOptimizer.php index a6a79e41d9934c39cfbd7a3ca11e0006527afbd7..5be1f0579f107886f9c5ef68a3a30597c06edf09 100644 --- a/core/lib/Drupal/Core/Asset/CssOptimizer.php +++ b/core/lib/Drupal/Core/Asset/CssOptimizer.php @@ -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; } diff --git a/core/lib/Drupal/Core/Controller/ExceptionController.php b/core/lib/Drupal/Core/Controller/ExceptionController.php index 66a6215dc7ba92d00ddd2cab352710f57ee7cddb..87521706b00103ff25c94b3cc51a118a34bbb88c 100644 --- a/core/lib/Drupal/Core/Controller/ExceptionController.php +++ b/core/lib/Drupal/Core/Controller/ExceptionController.php @@ -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. diff --git a/core/lib/Drupal/Core/Entity/Query/Sql/Tables.php b/core/lib/Drupal/Core/Entity/Query/Sql/Tables.php index 55ea0538608931ebc8f6becfa79997cb549a052d..8f11f9d76af7729a7118742228af4296fca985e9 100644 --- a/core/lib/Drupal/Core/Entity/Query/Sql/Tables.php +++ b/core/lib/Drupal/Core/Entity/Query/Sql/Tables.php @@ -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'])) { diff --git a/core/lib/Drupal/Core/EventSubscriber/SpecialAttributesRouteSubscriber.php b/core/lib/Drupal/Core/EventSubscriber/SpecialAttributesRouteSubscriber.php index 190cc37795036000f90f78f5419c6cd97a713c61..c9f3e7d295f4558b1a7d95e7648dd7f513d5c71b 100644 --- a/core/lib/Drupal/Core/EventSubscriber/SpecialAttributesRouteSubscriber.php +++ b/core/lib/Drupal/Core/EventSubscriber/SpecialAttributesRouteSubscriber.php @@ -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(); diff --git a/core/lib/Drupal/Core/Template/TwigEnvironment.php b/core/lib/Drupal/Core/Template/TwigEnvironment.php index 86f5dc6b7eabd67d92a43cb6aa7452ed8948be07..2ac1d9d8e4b5ed58854ec727ab784c4dd533660f 100644 --- a/core/lib/Drupal/Core/Template/TwigEnvironment.php +++ b/core/lib/Drupal/Core/Template/TwigEnvironment.php @@ -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; diff --git a/core/misc/tableheader.js b/core/misc/tableheader.js index f1aba963270541d9076f545717219f9ed5a70dc2..d04b624e25ca9aae4d8a531b16334fe3bd146658 100644 --- a/core/misc/tableheader.js +++ b/core/misc/tableheader.js @@ -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++) { diff --git a/core/modules/ban/lib/Drupal/ban/EventSubscriber/BanSubscriber.php b/core/modules/ban/lib/Drupal/ban/EventSubscriber/BanSubscriber.php index fb3aa2e7197342b2e92de358a38560ea5043db2b..6807cce828edf7aef80e6835ac54106dae180e24 100644 --- a/core/modules/ban/lib/Drupal/ban/EventSubscriber/BanSubscriber.php +++ b/core/modules/ban/lib/Drupal/ban/EventSubscriber/BanSubscriber.php @@ -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. diff --git a/core/modules/block/lib/Drupal/block/Tests/Views/DisplayBlockTest.php b/core/modules/block/lib/Drupal/block/Tests/Views/DisplayBlockTest.php index eda928589dd3bceb354260d7b8ebcae2f8df80ff..5d90a05692d7f76c155731c0ac2ac12bd431fcd6 100644 --- a/core/modules/block/lib/Drupal/block/Tests/Views/DisplayBlockTest.php +++ b/core/modules/block/lib/Drupal/block/Tests/Views/DisplayBlockTest.php @@ -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'); diff --git a/core/modules/content_translation/content_translation.module b/core/modules/content_translation/content_translation.module index 1454bd8239c8c969160322a201f373fa01f17715..33527de66f382d36861d3ef9f1eb338965f777ac 100644 --- a/core/modules/content_translation/content_translation.module +++ b/core/modules/content_translation/content_translation.module @@ -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; } diff --git a/core/modules/datetime/lib/Drupal/datetime/DateHelper.php b/core/modules/datetime/lib/Drupal/datetime/DateHelper.php index 3f8b0f84dace3679edf53831b95c983ae3127bd4..55404460eb475bacbf159e6bcdfcd28ed2d42f16 100644 --- a/core/modules/datetime/lib/Drupal/datetime/DateHelper.php +++ b/core/modules/datetime/lib/Drupal/datetime/DateHelper.php @@ -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. diff --git a/core/modules/dblog/lib/Drupal/dblog/Tests/DbLogTest.php b/core/modules/dblog/lib/Drupal/dblog/Tests/DbLogTest.php index c845b789fd8094791a8091aa21c7ffef72176ec0..24add00d4259f8d8c3791f856a8c3c73bd1f9729 100644 --- a/core/modules/dblog/lib/Drupal/dblog/Tests/DbLogTest.php +++ b/core/modules/dblog/lib/Drupal/dblog/Tests/DbLogTest.php @@ -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 */ diff --git a/core/modules/edit/js/models/FieldModel.js b/core/modules/edit/js/models/FieldModel.js index 159a47378f36ca07e7492247987bb2b30a749aaf..c68db71ebacc8f52a6df3f5b50b09f032b1d273a 100644 --- a/core/modules/edit/js/models/FieldModel.js +++ b/core/modules/edit/js/models/FieldModel.js @@ -156,9 +156,9 @@ Drupal.edit.FieldModel = Backbone.Model.extend({ // - Trigger: user. // - Guarantees: see 'candidate' and 'active'. // - Expected behavior: saving indicator, in-place editor is saving field - // data into TempStore. Upon succesful saving (without validation errors), - // the in-place editor transitions the field's state to 'saved', but to - // 'invalid' upon failed saving (with validation errors). + // data into TempStore. Upon successful saving (without validation + // errors), the in-place editor transitions the field's state to 'saved', + // but to 'invalid' upon failed saving (with validation errors). 'saving', // In-place editor has successfully saved the changed field. // - Trigger: in-place editor. diff --git a/core/modules/edit/js/views/EditorView.js b/core/modules/edit/js/views/EditorView.js index 408989b17dfa0f3e330880f7d4c680876d1af9e9..44b166ab4cfb005771b4573e089aa6833deb8962 100644 --- a/core/modules/edit/js/views/EditorView.js +++ b/core/modules/edit/js/views/EditorView.js @@ -74,7 +74,7 @@ Drupal.edit.EditorView = Backbone.View.extend({ * insert its own toolbar UI into Edit's tightly integrated toolbar. * - Boolean fullWidthToolbar: indicates whether Edit's tightly integrated * toolbar should consume the full width of the element, rather than being - * just long enough to accomodate a label. + * just long enough to accommodate a label. */ getEditUISettings: function () { return { padding: false, unifiedToolbar: false, fullWidthToolbar: false, popup: false }; diff --git a/core/modules/file/lib/Drupal/file/Tests/DownloadTest.php b/core/modules/file/lib/Drupal/file/Tests/DownloadTest.php index fe48c05dacb28304d2e1066440a3f051c96b292b..1870fe70f01cc2eb6773d69a899d4f02d5c76123 100644 --- a/core/modules/file/lib/Drupal/file/Tests/DownloadTest.php +++ b/core/modules/file/lib/Drupal/file/Tests/DownloadTest.php @@ -68,7 +68,7 @@ function testPrivateFileTransfer() { $this->assertEqual($headers['x-foo'], 'Bar', 'Found header set by file_test module on private download.'); $this->assertResponse(200, 'Correctly allowed access to a file when file_test provides headers.'); - // Test that the file transfered correctly. + // Test that the file transferred correctly. $this->assertEqual($contents, $this->content, 'Contents of the file are correct.'); // Deny access to all downloads via a -1 header. diff --git a/core/modules/image/lib/Drupal/image/Tests/ImageStylesPathAndUrlTest.php b/core/modules/image/lib/Drupal/image/Tests/ImageStylesPathAndUrlTest.php index 4ba1e6f1aefa27a8566adfbb182c227dc1c841c1..5b0c2d68749252260b522edae9af7e82d086dcd6 100644 --- a/core/modules/image/lib/Drupal/image/Tests/ImageStylesPathAndUrlTest.php +++ b/core/modules/image/lib/Drupal/image/Tests/ImageStylesPathAndUrlTest.php @@ -143,10 +143,10 @@ function doImageStyleUrlAndPathTests($scheme, $clean_url = TRUE, $extra_slash = } // Add some extra chars to the token. $this->drupalGet(str_replace(IMAGE_DERIVATIVE_TOKEN . '=', IMAGE_DERIVATIVE_TOKEN . '=Zo', $generate_url)); - $this->assertResponse(403, 'Image was inaccessible at the URL wih an invalid token.'); + $this->assertResponse(403, 'Image was inaccessible at the URL with an invalid token.'); // Change the parameter name so the token is missing. $this->drupalGet(str_replace(IMAGE_DERIVATIVE_TOKEN . '=', 'wrongparam=', $generate_url)); - $this->assertResponse(403, 'Image was inaccessible at the URL wih a missing token.'); + $this->assertResponse(403, 'Image was inaccessible at the URL with a missing token.'); // Check that the generated URL is the same when we pass in a relative path // rather than a URI. We need to temporarily switch the default scheme to @@ -205,7 +205,7 @@ function doImageStyleUrlAndPathTests($scheme, $clean_url = TRUE, $extra_slash = elseif ($clean_url) { // Add some extra chars to the token. $this->drupalGet(str_replace(IMAGE_DERIVATIVE_TOKEN . '=', IMAGE_DERIVATIVE_TOKEN . '=Zo', $generate_url)); - $this->assertResponse(200, 'Existing image was accessible at the URL wih an invalid token.'); + $this->assertResponse(200, 'Existing image was accessible at the URL with an invalid token.'); } // Allow insecure image derivatives to be created for the remainder of this diff --git a/core/modules/language/language.negotiation.inc b/core/modules/language/language.negotiation.inc index 7a8e99b4a44b5fd8738e30d5e42e5ebb0f88cd0b..f87284d76f27c1fd82e5cce5da29fb28a6c6e68d 100644 --- a/core/modules/language/language.negotiation.inc +++ b/core/modules/language/language.negotiation.inc @@ -134,9 +134,9 @@ function language_from_browser($languages) { foreach ($browser_langcodes as $langcode => $qvalue) { // For Chinese languages the generic tag is either zh-hans or zh-hant, so we // need to handle this separately, we can not split $langcode on the - // first occurence of '-' otherwise we get a non-existing language zh. + // first occurrence of '-' otherwise we get a non-existing language zh. // All other languages use a langcode without a '-', so we can safely split - // on the first occurence of it. + // on the first occurrence of it. $generic_tag = ''; if (strlen($langcode) > 7 && (substr($langcode, 0, 7) == 'zh-hant' || substr($langcode, 0, 7) == 'zh-hans')) { $generic_tag = substr($langcode, 0, 7); diff --git a/core/modules/language/lib/Drupal/language/Tests/LanguageBrowserDetectionUnitTest.php b/core/modules/language/lib/Drupal/language/Tests/LanguageBrowserDetectionUnitTest.php index 6f5b33bdd97a66c3d7657b7675394f6e5a2342c9..679d6f973eba9f2ac49ba64a8248605d62930baf 100644 --- a/core/modules/language/lib/Drupal/language/Tests/LanguageBrowserDetectionUnitTest.php +++ b/core/modules/language/lib/Drupal/language/Tests/LanguageBrowserDetectionUnitTest.php @@ -33,7 +33,7 @@ public static function getInfo() { function testLanguageFromBrowser() { // The order of the languages is only important if the browser language // codes are having the same qvalue, otherwise the one with the highest - // qvalue is prefered. The automatically generated generic tags are always + // qvalue is preferred. The automatically generated generic tags are always // having a lower qvalue. $languages = array( @@ -77,7 +77,7 @@ function testLanguageFromBrowser() { ); $test_cases = array( - // Equal qvalue for each language, choose the site prefered one. + // Equal qvalue for each language, choose the site preferred one. 'en,en-US,fr-CA,fr,es-MX' => 'en', 'en-US,en,fr-CA,fr,es-MX' => 'en', 'fr,en' => 'en', diff --git a/core/modules/locale/lib/Drupal/locale/Tests/LocaleImportFunctionalTest.php b/core/modules/locale/lib/Drupal/locale/Tests/LocaleImportFunctionalTest.php index 13b7bc2a8885a62700299b07dbf933028cb0cbe7..d523bd065e1e2d2d099bf7ebd35599a38ee7c7a0 100644 --- a/core/modules/locale/lib/Drupal/locale/Tests/LocaleImportFunctionalTest.php +++ b/core/modules/locale/lib/Drupal/locale/Tests/LocaleImportFunctionalTest.php @@ -151,7 +151,7 @@ function testStandalonePoFile() { // The database should now contain 6 customized strings (two imported // strings are not translated). $count = db_query('SELECT lid FROM {locales_target} WHERE customized = :custom', array(':custom' => 1))->rowCount(); - $this->assertEqual($count, 6, 'Customized translations succesfully imported.'); + $this->assertEqual($count, 6, 'Customized translations successfully imported.'); // Try importing a .po file with overriding strings, and ensure existing // customized strings are kept. diff --git a/core/modules/locale/locale.admin.js b/core/modules/locale/locale.admin.js index 5583cebb5196a606e453d6f6b0b2f23af7e41724..fee09a3eefd7735698a849a9f9be450b3cf88a6f 100644 --- a/core/modules/locale/locale.admin.js +++ b/core/modules/locale/locale.admin.js @@ -3,7 +3,7 @@ "use strict"; /** - * Markes changes of translations + * Marks changes of translations */ Drupal.behaviors.localeTranslateDirty = { attach: function () { diff --git a/core/modules/locale/locale.batch.inc b/core/modules/locale/locale.batch.inc index d789ea27b86ce875388161b23ea678b2c2338faf..5085a2bf5d67db0b4640903d17464edd75b4af1e 100644 --- a/core/modules/locale/locale.batch.inc +++ b/core/modules/locale/locale.batch.inc @@ -87,7 +87,7 @@ function locale_translation_batch_status_check($project, $langcode, $options = a * Batch finished callback: Set result message. * * @param boolean $success - * TRUE if batch succesfully completed. + * TRUE if batch successfully completed. * @param array $results * Batch results. */ @@ -185,7 +185,7 @@ function locale_translation_batch_fetch_import($project, $langcode, $options, &$ // The import is finished. if (isset($context['finished']) && $context['finished'] == 1) { - // The import is successfull. + // The import is successful. if (isset($context['results']['files'][$file->uri])) { $context['message'] = t('Imported translation for %project.', array('%project' => $source->project)); @@ -203,7 +203,7 @@ function locale_translation_batch_fetch_import($project, $langcode, $options, &$ * Batch finished callback: Set result message. * * @param boolean $success - * TRUE if batch succesfully completed. + * TRUE if batch successfully completed. * @param array * Batch results. */ diff --git a/core/modules/locale/locale.bulk.inc b/core/modules/locale/locale.bulk.inc index 078e4090da8ea05593488beda7026b89dae2f1f9..525624432988c5080f0fe8b07adc0384b1b3a40c 100644 --- a/core/modules/locale/locale.bulk.inc +++ b/core/modules/locale/locale.bulk.inc @@ -736,7 +736,7 @@ function locale_translate_file_attach_properties($file, $options = array()) { * Defaults to all languagues * * @return boolean - * TRUE if files are removed sucessfully. FALSE if one or more files could + * TRUE if files are removed successfully. FALSE if one or more files could * not be deleted. */ function locale_translate_delete_translation_files($projects = array(), $langcodes = array()) { diff --git a/core/modules/locale/tests/modules/locale_test/locale_test.module b/core/modules/locale/tests/modules/locale_test/locale_test.module index 166983aaef5ceec54626381c99c285ebb327957f..89616a5eee497b5f5b59bca89fb0093fed0cd4eb 100644 --- a/core/modules/locale/tests/modules/locale_test/locale_test.module +++ b/core/modules/locale/tests/modules/locale_test/locale_test.module @@ -15,7 +15,7 @@ function locale_test_system_info_alter(&$info, $file, $type) { // Only modify the system info if required. // By default the locale_test modules are hidden and have a project specified. - // To test the module detection proces by locale_project_list() the + // To test the module detection process by locale_project_list() the // test modules should mimic a custom module. I.e. be non-hidden. if (\Drupal::state()->get('locale.test_system_info_alter')) { if ($file->name == 'locale_test' || $file->name == 'locale_test_translate') { diff --git a/core/modules/node/lib/Drupal/node/Tests/NodeTypeInitialLanguageTest.php b/core/modules/node/lib/Drupal/node/Tests/NodeTypeInitialLanguageTest.php index dc655e7bdf40d8f52ffebadfd7e1754a1f870c46..ae17434aa272f0365bc08d0aa3fd5d7fa62bab27 100644 --- a/core/modules/node/lib/Drupal/node/Tests/NodeTypeInitialLanguageTest.php +++ b/core/modules/node/lib/Drupal/node/Tests/NodeTypeInitialLanguageTest.php @@ -86,7 +86,7 @@ function testNodeTypeInitialLanguageDefaults() { // Tests if the language field is hidden by default. $this->assertOptionSelected('edit-fields-langcode-type', 'hidden', 'Language is hidden by default on manage display tab.'); - // Changes the inital language settings. + // Changes the initial language settings. $edit = array( 'language_configuration[langcode]' => 'en', ); diff --git a/core/modules/options/lib/Drupal/options/Tests/OptionsWidgetsTest.php b/core/modules/options/lib/Drupal/options/Tests/OptionsWidgetsTest.php index 877148c11bb79756901abd472cdf346be8dc7d0e..1ecaba3667ac8db03267da43f46cf62991837850 100644 --- a/core/modules/options/lib/Drupal/options/Tests/OptionsWidgetsTest.php +++ b/core/modules/options/lib/Drupal/options/Tests/OptionsWidgetsTest.php @@ -417,7 +417,7 @@ function testSelectListMultiple() { // Test the 'None' option. - // Check that the 'none' option has no efect if actual options are selected + // Check that the 'none' option has no effect if actual options are selected // as well. $edit = array('card_2[]' => array('_none' => '_none', 0 => 0)); $this->drupalPostForm('entity_test/manage/' . $entity->id(), $edit, t('Save')); diff --git a/core/modules/rest/lib/Drupal/rest/Tests/AuthTest.php b/core/modules/rest/lib/Drupal/rest/Tests/AuthTest.php index 8d2d9606a5333ae04a095c5fbc0329327ccd0cd1..41d4d48af545e8ef5d99937425eae94bf19fcb92 100644 --- a/core/modules/rest/lib/Drupal/rest/Tests/AuthTest.php +++ b/core/modules/rest/lib/Drupal/rest/Tests/AuthTest.php @@ -72,7 +72,7 @@ public function testRead() { // Now read it with the Basic authentication which is enabled and should // work. $response = $this->basicAuthGet('entity/' . $entity_type . '/' . $entity->id(), $account->getUsername(), $account->pass_raw); - $this->assertResponse('200', 'HTTP response code is 200 for successfuly authorized requests.'); + $this->assertResponse('200', 'HTTP response code is 200 for successfully authorized requests.'); $this->curlClose(); } diff --git a/core/modules/simpletest/lib/Drupal/simpletest/TestBase.php b/core/modules/simpletest/lib/Drupal/simpletest/TestBase.php index 2108b677eaba5d8388491ebed32373a08b20f2b4..882542e97a67567ce2f0476f661b2c0dd0b2f3ce 100644 --- a/core/modules/simpletest/lib/Drupal/simpletest/TestBase.php +++ b/core/modules/simpletest/lib/Drupal/simpletest/TestBase.php @@ -1124,7 +1124,7 @@ protected function tearDown() { // Reset all static variables. // All destructors of statically cached objects have been invoked above; - // this second reset is guranteed to reset everything to nothing. + // this second reset is guaranteed to reset everything to nothing. drupal_static_reset(); // Restore original in-memory configuration. diff --git a/core/modules/system/language.api.php b/core/modules/system/language.api.php index de43f83bfb626df453cafe402ad375f619b8696f..baafb7ae7ab6b220c24058d472dcdafd6691cdeb 100644 --- a/core/modules/system/language.api.php +++ b/core/modules/system/language.api.php @@ -92,7 +92,7 @@ function hook_language_types_info_alter(array &$language_types) { * * @return * An associative array of language negotiation method definitions. The keys - * are method identifiers, and the values are associative arrays definining + * are method identifiers, and the values are associative arrays defining * each method, with the following elements: * - types: An array of allowed language types. If a language negotiation * method does not specify which language types it should be used with, it diff --git a/core/modules/system/lib/Drupal/system/Tests/Cache/GenericCacheBackendUnitTestBase.php b/core/modules/system/lib/Drupal/system/Tests/Cache/GenericCacheBackendUnitTestBase.php index ebeb0ca2645496fa4150bfb522cad6aca6c69e2a..e42410d50883457c1126c38d2414010e55fcf05f 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Cache/GenericCacheBackendUnitTestBase.php +++ b/core/modules/system/lib/Drupal/system/Tests/Cache/GenericCacheBackendUnitTestBase.php @@ -116,7 +116,7 @@ public function setUp() { public function tearDown() { // Destruct the registered backend, each test will get a fresh instance, - // properly emptying it here ensure that on persistant data backends they + // properly emptying it here ensure that on persistent data backends they // will come up empty the next test. foreach ($this->cachebackends as $bin => $cachebackend) { $this->cachebackends[$bin]->deleteAll(); diff --git a/core/modules/system/lib/Drupal/system/Tests/Database/MergeTest.php b/core/modules/system/lib/Drupal/system/Tests/Database/MergeTest.php index a62b45a1ab8625dd22d63c84983ee3c471f3256c..a4e8339a41f6fdb07b2cd73fd34eecb36010f195 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Database/MergeTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Database/MergeTest.php @@ -209,7 +209,7 @@ function testMergeUpdateWithoutUpdate() { function testInvalidMerge() { try { // This query will fail because there is no key field specified. - // Normally it would throw an exception but we are supressing it with + // Normally it would throw an exception but we are suppressing it with // the throw_exception option. $options['throw_exception'] = FALSE; db_merge('test_people', $options) diff --git a/core/modules/system/lib/Drupal/system/Tests/Database/SelectTest.php b/core/modules/system/lib/Drupal/system/Tests/Database/SelectTest.php index a7cb0a253a2c3b2058ac72a2b576d16912502671..d9da2d6b883770ccefb2f7b5257a7fca78c4c4bb 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Database/SelectTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Database/SelectTest.php @@ -452,7 +452,7 @@ function testSelectDuplicateAlias() { function testInvalidSelectCount() { try { // This query will fail because the table does not exist. - // Normally it would throw an exception but we are supressing + // Normally it would throw an exception but we are suppressing // it with the throw_exception option. $options['throw_exception'] = FALSE; db_select('some_table_that_doesnt_exist', 't', $options) diff --git a/core/modules/system/lib/Drupal/system/Tests/DrupalKernel/ContentNegotiationTest.php b/core/modules/system/lib/Drupal/system/Tests/DrupalKernel/ContentNegotiationTest.php index f13c16cf4cdf1f7ff35b832343e64dade8517d8e..13a845096bc923b98e2d633436e568fab5c16203 100644 --- a/core/modules/system/lib/Drupal/system/Tests/DrupalKernel/ContentNegotiationTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/DrupalKernel/ContentNegotiationTest.php @@ -10,7 +10,7 @@ use Drupal\simpletest\WebTestBase; /** - * Tests content negotation. + * Tests content negotiation. */ class ContentNegotiationTest extends WebTestBase { diff --git a/core/modules/system/lib/Drupal/system/Tests/Entity/ConfigEntityQueryTest.php b/core/modules/system/lib/Drupal/system/Tests/Entity/ConfigEntityQueryTest.php index 3926f291d1ae80f241c5081d1e788ae4570cc605..d0d8b366051b12da8074f09d8814ff084cfb5bfe 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Entity/ConfigEntityQueryTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Entity/ConfigEntityQueryTest.php @@ -24,7 +24,7 @@ class ConfigEntityQueryTest extends DrupalUnitTestBase { static $modules = array('config_test'); /** - * Stores the search results for alter comparision. + * Stores the search results for alter comparison. * * @var array */ diff --git a/core/modules/system/lib/Drupal/system/Tests/Entity/EntityQueryTest.php b/core/modules/system/lib/Drupal/system/Tests/Entity/EntityQueryTest.php index 72950e130be7415d10e2e3c6514f3fbb6fb19c91..e0463f6bda84631a79f4c01e8421a27da2224046 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Entity/EntityQueryTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Entity/EntityQueryTest.php @@ -311,7 +311,7 @@ function testSort() { ->sort("$greetings.format") ->sort('id'); // As we do not have any conditions, here are the possible colors and - // language codes, already in order, with the first occurence of the + // language codes, already in order, with the first occurrence of the // entity id marked with *: // 8 NULL pl * // 12 NULL pl * @@ -507,7 +507,7 @@ protected function assertBundleOrder($order) { /** * Test adding a tag and metadata to the Entity query object. * - * The tags and metadata should propogate to the SQL query object. + * The tags and metadata should propagate to the SQL query object. */ function testMetaData() { $query = \Drupal::entityQuery('entity_test_mulrev'); @@ -517,6 +517,6 @@ function testMetaData() { ->execute(); global $efq_test_metadata; - $this->assertEqual($efq_test_metadata, 'bar', 'Tag and metadata propogated to the SQL query object.'); + $this->assertEqual($efq_test_metadata, 'bar', 'Tag and metadata propagated to the SQL query object.'); } } diff --git a/core/modules/system/lib/Drupal/system/Tests/Plugin/Discovery/DiscoveryTestBase.php b/core/modules/system/lib/Drupal/system/Tests/Plugin/Discovery/DiscoveryTestBase.php index 0926065751e561cc123902b714b8189b960380a0..20a574a6fde8f5f31cba28701fb130f97489fdde 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Plugin/Discovery/DiscoveryTestBase.php +++ b/core/modules/system/lib/Drupal/system/Tests/Plugin/Discovery/DiscoveryTestBase.php @@ -44,7 +44,7 @@ class DiscoveryTestBase extends UnitTestBase { function testDiscoveryInterface() { // Ensure that getDefinitions() returns the expected definitions. // For the arrays to be identical (instead of only equal), they must be - // sorted equally, which seems unneccessary here. + // sorted equally, which seems unnecessary here. $this->assertEqual($this->discovery->getDefinitions(), $this->expectedDefinitions); // Ensure that getDefinition() returns the expected definition. diff --git a/core/modules/system/lib/Drupal/system/Tests/Routing/MatcherDumperTest.php b/core/modules/system/lib/Drupal/system/Tests/Routing/MatcherDumperTest.php index 895e45540d1dc07c98a126ed44908dda027928dd..2b7900b09dab962ebf8934cdb3087bc97c00994f 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Routing/MatcherDumperTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Routing/MatcherDumperTest.php @@ -46,7 +46,7 @@ function setUp() { } /** - * Confirms that the dumper can be instantiated successfuly. + * Confirms that the dumper can be instantiated successfully. */ function testCreate() { $connection = Database::getConnection(); diff --git a/core/modules/system/lib/Drupal/system/Tests/Theme/ThemeTest.php b/core/modules/system/lib/Drupal/system/Tests/Theme/ThemeTest.php index 069960c943d9ea152cfc857241156cc6dbff82c4..4a51db283db6646f77b54ebfd38fd43349ddf77c 100644 --- a/core/modules/system/lib/Drupal/system/Tests/Theme/ThemeTest.php +++ b/core/modules/system/lib/Drupal/system/Tests/Theme/ThemeTest.php @@ -39,7 +39,7 @@ function setUp() { * Test attribute merging. * * Render arrays that use a render element and templates (and hence call - * template_preprocess()) must ensure the attributes at different occassions + * template_preprocess()) must ensure the attributes at different occasions * are all merged correctly: * - $variables['attributes'] as passed in to theme() * - the render element's #attributes diff --git a/core/modules/system/system.js b/core/modules/system/system.js index 99f06337ad3c97e3d606d55da29851324acd2380..18f7e7a19f8572b32b12866810c1cfcc609984b6 100644 --- a/core/modules/system/system.js +++ b/core/modules/system/system.js @@ -20,7 +20,7 @@ Drupal.behaviors.copyFieldValue = { } } if (ids.length) { - // Listen to value:copy events on all dependant fields. + // Listen to value:copy events on all dependent fields. // We have to use body and not document because of the way jQuery events // bubble up the DOM tree. $('body').once('copy-field-values').on('value:copy', this.valueTargetCopyHandler); @@ -51,7 +51,7 @@ Drupal.behaviors.copyFieldValue = { /** * Handler for a Blur event on a source field. * - * This event handler will trigger a 'value:copy' event on all dependant fields. + * This event handler will trigger a 'value:copy' event on all dependent fields. */ valueSourceBlurHandler: function (e) { var value = $(e.target).val(); diff --git a/core/modules/system/tests/modules/batch_test/lib/Drupal/batch_test/Controller/BatchTestController.php b/core/modules/system/tests/modules/batch_test/lib/Drupal/batch_test/Controller/BatchTestController.php index e68365763a734eea3354f705310b07b7474a0ca6..266353113c5425ee8ef0d3c3791a9d5608746a00 100644 --- a/core/modules/system/tests/modules/batch_test/lib/Drupal/batch_test/Controller/BatchTestController.php +++ b/core/modules/system/tests/modules/batch_test/lib/Drupal/batch_test/Controller/BatchTestController.php @@ -13,7 +13,7 @@ class BatchTestController { /** - * Redirects successfuly. + * Redirects successfully. * * @return array * Render array containing success message. diff --git a/core/modules/taxonomy/taxonomy.views.inc b/core/modules/taxonomy/taxonomy.views.inc index 6e064903ac6bd31062965e71d9de8bae3734bc19..5074ee90cb379cff8fbdcb54df1208ae4b1d6ac3 100644 --- a/core/modules/taxonomy/taxonomy.views.inc +++ b/core/modules/taxonomy/taxonomy.views.inc @@ -358,7 +358,7 @@ function taxonomy_views_data() { function taxonomy_views_data_alter(&$data) { $data['node']['term_node_tid'] = array( 'title' => t('Taxonomy terms on node'), - 'help' => t('Relate nodes to taxonomy terms, specifiying which vocabulary or vocabularies to use. This relationship will cause duplicated records if there are multiple terms.'), + 'help' => t('Relate nodes to taxonomy terms, specifying which vocabulary or vocabularies to use. This relationship will cause duplicated records if there are multiple terms.'), 'relationship' => array( 'id' => 'node_term_data', 'label' => t('term'), diff --git a/core/modules/toolbar/js/toolbar.js b/core/modules/toolbar/js/toolbar.js index cd4be890c23662afdccb1d5af84ccc6e5cd06e32..955ef593cfd1dc6ebb2f93b4ec128e9ba0b7d9be 100644 --- a/core/modules/toolbar/js/toolbar.js +++ b/core/modules/toolbar/js/toolbar.js @@ -100,7 +100,7 @@ Drupal.behaviors.toolbar = { // Trigger an initial attempt to load menu subitems. This first attempt // is made after the media query handlers have had an opportunity to // process. The toolbar starts in the vertical orientation by default, - // unless the viewport is wide enough to accomodate a horizontal + // unless the viewport is wide enough to accommodate a horizontal // orientation. Thus we give the Toolbar a chance to determine if it // should be set to horizontal orientation before attempting to load menu // subtrees. diff --git a/core/modules/toolbar/toolbar.api.php b/core/modules/toolbar/toolbar.api.php index 412331f4caea0e02dd1c55afcb25d2fcb8a28272..11082e92e35e8eac86c310c1f1982bcf00f34f0f 100644 --- a/core/modules/toolbar/toolbar.api.php +++ b/core/modules/toolbar/toolbar.api.php @@ -13,7 +13,7 @@ /** * Add items to the toolbar menu. * - * The toolbar is a container for adminstrative and site-global interactive + * The toolbar is a container for administrative and site-global interactive * components. * * The toolbar provides a common styling for items denoted by the @@ -21,7 +21,7 @@ * a toolbar item with the appropriate markup to apply the styling. * * The toolbar provides a construct called a 'tray'. The tray is a container - * for content. The tray may be associated with a toggle in the adminstration + * for content. The tray may be associated with a toggle in the administration * bar. The toggle shows or hides the tray and is optimized for small and * large screens. To create this association, hook_toolbar() returns one or * more render elements of type 'toolbar_item', containing the toggle and tray @@ -31,7 +31,7 @@ * - 'tab': A renderable array. * - 'tray': Optional. A renderable array. * - '#weight': Optional. Integer weight used for sorting toolbar items in - * adminstration bar area. + * administration bar area. * * This hook is invoked in toolbar_pre_render(). * diff --git a/core/modules/tour/js/tour.js b/core/modules/tour/js/tour.js index 9a8b64842cd99421d55efdff9578d5d2947d5f65..0438cdd826da3467fcd2e24d25f921a9a9c5bd58 100644 --- a/core/modules/tour/js/tour.js +++ b/core/modules/tour/js/tour.js @@ -38,7 +38,7 @@ Drupal.behaviors.tour = { // Initialization: check whether a tour is available on the current page. .set('tour', $(context).find('ol#tour')); - // Start the tour imediately if toggled via query string. + // Start the tour immediately if toggled via query string. if (/tour=?/i.test(queryString)) { model.set('isActive', true); } diff --git a/core/modules/tour/lib/Drupal/tour/Tests/TourTestBase.php b/core/modules/tour/lib/Drupal/tour/Tests/TourTestBase.php index 05bb85826a668c8e4e0fbf2f58870594f5eaecc5..0beb7f0737327ee52f3114d472d5b8fd85498c06 100644 --- a/core/modules/tour/lib/Drupal/tour/Tests/TourTestBase.php +++ b/core/modules/tour/lib/Drupal/tour/Tests/TourTestBase.php @@ -26,7 +26,7 @@ class TourTestBase extends WebTestBase { * $this->assertTourTips(); * * // Advanced example. The following would be used for multipage or - * // targetting a specific subset of tips. + * // targeting a specific subset of tips. * $tips = array(); * $tips[] = array('data-id' => 'foo'); * $tips[] = array('data-id' => 'bar'); diff --git a/core/modules/update/lib/Drupal/update/UpdateFetcher.php b/core/modules/update/lib/Drupal/update/UpdateFetcher.php index 063988c37581adf5ef8f676febd8f4cc875b5596..68932100c6fcaf881ae3223b44db713f661520d5 100644 --- a/core/modules/update/lib/Drupal/update/UpdateFetcher.php +++ b/core/modules/update/lib/Drupal/update/UpdateFetcher.php @@ -98,7 +98,7 @@ public function buildFetchUrl(array $project, $site_key = '') { $url = $this->getFetchBaseUrl($project); $url .= '/' . $name . '/' . \Drupal::CORE_COMPATIBILITY; - // Only append usage infomation if we have a site key and the project is + // Only append usage information if we have a site key and the project is // enabled. We do not want to record usage statistics for disabled projects. if (!empty($site_key) && (strpos($project['project_type'], 'disabled') === FALSE)) { // Append the site key. diff --git a/core/modules/user/lib/Drupal/user/Entity/User.php b/core/modules/user/lib/Drupal/user/Entity/User.php index 3d1815d4371dce0804c3225f1d31ee57519851c7..ee76c7d2653f98b48ccd987921f5dd397847dd2b 100644 --- a/core/modules/user/lib/Drupal/user/Entity/User.php +++ b/core/modules/user/lib/Drupal/user/Entity/User.php @@ -496,7 +496,7 @@ public static function baseFieldDefinitions($entity_type) { 'label' => t('Signature format'), 'description' => t('The signature format of this user'), // @todo Convert the type to filter_format once - // https://drupal.org/node/1758622 is comitted + // https://drupal.org/node/1758622 is committed 'type' => 'string_field', ); $properties['theme'] = array( diff --git a/core/modules/user/lib/Drupal/user/Tests/UserLoginTest.php b/core/modules/user/lib/Drupal/user/Tests/UserLoginTest.php index 5b2e0153841d5c7d044cf983d00630d49d90f977..33ab74c7a6c01ffdad2cbb1a28b8c3d91dc93eaa 100644 --- a/core/modules/user/lib/Drupal/user/Tests/UserLoginTest.php +++ b/core/modules/user/lib/Drupal/user/Tests/UserLoginTest.php @@ -103,7 +103,7 @@ function testPerUserLoginFloodControl() { * Test that user password is re-hashed upon login after changing $count_log2. */ function testPasswordRehashOnLogin() { - // Determine default log2 for phpass hashing algoritm + // Determine default log2 for phpass hashing algorithm $default_count_log2 = 16; // Retrieve instance of password hashing algorithm diff --git a/core/modules/user/lib/Drupal/user/Tests/UserValidationTest.php b/core/modules/user/lib/Drupal/user/Tests/UserValidationTest.php index 99aaecb1cb97c5471424c61f43958a2f728768c2..642120f2d78b45b4750023c37800a34b82c08770 100644 --- a/core/modules/user/lib/Drupal/user/Tests/UserValidationTest.php +++ b/core/modules/user/lib/Drupal/user/Tests/UserValidationTest.php @@ -88,7 +88,7 @@ function testValidation() { // Create a second test user to provoke a name collision. $user2 = entity_create('user', array( 'name' => 'existing', - 'mail' => 'existing@exmaple.com', + 'mail' => 'existing@example.com', )); $user2->save(); $user->set('name', 'existing'); @@ -114,11 +114,11 @@ function testValidation() { $this->assertEqual($violations[0]->getMessage(), t('This value is not a valid email address.')); // Provoke a e-mail collision with an exsiting user. - $user->set('mail', 'existing@exmaple.com'); + $user->set('mail', 'existing@example.com'); $violations = $user->validate(); $this->assertEqual(count($violations), 1, 'Violation found when e-mail already exists.'); $this->assertEqual($violations[0]->getPropertyPath(), 'mail.0.value'); - $this->assertEqual($violations[0]->getMessage(), t('The e-mail address %mail is already taken.', array('%mail' => 'existing@exmaple.com'))); + $this->assertEqual($violations[0]->getMessage(), t('The e-mail address %mail is already taken.', array('%mail' => 'existing@example.com'))); $user->set('mail', NULL); $user->set('signature', $this->randomString(256)); diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/field/FieldPluginBase.php b/core/modules/views/lib/Drupal/views/Plugin/views/field/FieldPluginBase.php index 1f8264e5198374cc56c6979e513f728ae2d80749..e0259629860ab85d1b9791b04c352b9a0b42dadf 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/field/FieldPluginBase.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/field/FieldPluginBase.php @@ -269,7 +269,7 @@ public function elementWrapperType($none_supported = FALSE, $default_empty = FAL * * This function can be overridden by fields that want more or fewer * elements available, though this seems like it would be an incredibly - * rare occurence. + * rare occurrence. */ public function getElements() { static $elements = NULL; @@ -1642,7 +1642,7 @@ public function adminLabel($short = FALSE) { * * @param array $alter * The alter array of options to use. - * - max_length: Maximum lenght of the string, the rest gets truncated. + * - max_length: Maximum length of the string, the rest gets truncated. * - word_boundary: Trim only on a word boundary. * - ellipsis: Show an ellipsis (...) at the end of the trimmed string. * - html: Take sure that the html is correct. diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/filter/FilterPluginBase.php b/core/modules/views/lib/Drupal/views/Plugin/views/filter/FilterPluginBase.php index e00c390a0769b547b92186529a4ffd365fa416c2..a05b44763d13397cc70934dccfd1e3e38e668155 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/filter/FilterPluginBase.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/filter/FilterPluginBase.php @@ -1202,12 +1202,12 @@ public function exposedInfo() { * Transform the input from a grouped filter into a standard filter. * * When a filter is a group, find the set of operator and values - * that the choosed item represents, and inform views that a normal + * that the chosen item represents, and inform views that a normal * filter was submitted by telling the operator and the value selected. * * The param $selected_group_id is only passed when the filter uses the * checkboxes widget, and this function will be called for each item - * choosed in the checkboxes. + * chosen in the checkboxes. */ public function convertExposedInput(&$input, $selected_group_id = NULL) { if ($this->isAGroup()) { diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/query/Sql.php b/core/modules/views/lib/Drupal/views/Plugin/views/query/Sql.php index f7e37b5bd4a22b2d45b549bd5edeaa9fccd30e5d..820ec66820a55da40bccd5954acc3337c451a567 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/query/Sql.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/query/Sql.php @@ -841,7 +841,7 @@ public function addWhere($group, $field, $value = NULL, $operator = NULL) { /** * Add a complex WHERE clause to the query. * - * The caller is reponsible for ensuring that all fields are fully qualified + * The caller is responsible for ensuring that all fields are fully qualified * (TABLE.FIELD) and that the table already exists in the query. * Internally the dbtng method "where" is used. * diff --git a/core/modules/views/lib/Drupal/views/Plugin/views/style/StylePluginBase.php b/core/modules/views/lib/Drupal/views/Plugin/views/style/StylePluginBase.php index ffda543ea5460095593daf87f07dba689a4238fd..ac0f8987b2d1d664cbe0c8e25162bba8cd93ad55 100644 --- a/core/modules/views/lib/Drupal/views/Plugin/views/style/StylePluginBase.php +++ b/core/modules/views/lib/Drupal/views/Plugin/views/style/StylePluginBase.php @@ -248,7 +248,8 @@ public function buildOptionsForm(&$form, &$form_state) { $options += $field_labels; // If there are no fields, we can't group on them. if (count($options) > 1) { - // This is for backward compability, when there was just a single select form. + // This is for backward compatibility, when there was just a single + // select form. if (is_string($this->options['grouping'])) { $grouping = $this->options['grouping']; $this->options['grouping'] = array(); @@ -527,8 +528,8 @@ public function renderGroupingSets($sets, $level = 0) { * @endcode */ public function renderGrouping($records, $groupings = array(), $group_rendered = NULL) { - // This is for backward compability, when $groupings was a string containing - // the ID of a single field. + // This is for backward compatibility, when $groupings was a string + // containing the ID of a single field. if (is_string($groupings)) { $rendered = $group_rendered === NULL ? TRUE : $group_rendered; $groupings = array(array('field' => $groupings, 'rendered' => $rendered)); diff --git a/core/modules/views/lib/Drupal/views/Tests/Handler/AreaTextTest.php b/core/modules/views/lib/Drupal/views/Tests/Handler/AreaTextTest.php index 0d478029811e686b874a92164725691141936930..82127e80560aa2f09d3690b5eb8468962920010b 100644 --- a/core/modules/views/lib/Drupal/views/Tests/Handler/AreaTextTest.php +++ b/core/modules/views/lib/Drupal/views/Tests/Handler/AreaTextTest.php @@ -59,7 +59,7 @@ public function testAreaText() { $this->executeView($view); $view->display_handler->handlers['header']['area']->options['format'] = $this->randomString(); - $this->assertEqual(array('#markup' => ''), $view->display_handler->handlers['header']['area']->render(), 'Non existant format should return empty markup.'); + $this->assertEqual(array('#markup' => ''), $view->display_handler->handlers['header']['area']->render(), 'Nonexistent format should return empty markup.'); $view->display_handler->handlers['header']['area']->options['format'] = filter_default_format(); $this->assertEqual(array('#markup' => check_markup($string)), $view->display_handler->handlers['header']['area']->render(), 'Existant format should return something'); diff --git a/core/modules/views/lib/Drupal/views/Tests/Handler/FieldUnitTest.php b/core/modules/views/lib/Drupal/views/Tests/Handler/FieldUnitTest.php index eff89294d3dc191a2a101b9fbc072d33aa9e321a..6ad3b19a4d79cf68c72e147c1a086ed479063238 100644 --- a/core/modules/views/lib/Drupal/views/Tests/Handler/FieldUnitTest.php +++ b/core/modules/views/lib/Drupal/views/Tests/Handler/FieldUnitTest.php @@ -553,7 +553,7 @@ public function testTrimText() { 'Ñд аÑд аÑд аÑ', 'аÑд аÑд аÑд аÑ' ); - // Just test maxlength without word boundry. + // Just test maxlength without word boundary. $alter = array( 'max_length' => 10, ); diff --git a/core/modules/views/lib/Drupal/views/Tests/QueryGroupByTest.php b/core/modules/views/lib/Drupal/views/Tests/QueryGroupByTest.php index fcd9e08c32501ebbb70dcae4a7bd178aa82aece4..4ce4bac7e7aa88722e9d9ffa4c7d4a079c43ebfb 100644 --- a/core/modules/views/lib/Drupal/views/Tests/QueryGroupByTest.php +++ b/core/modules/views/lib/Drupal/views/Tests/QueryGroupByTest.php @@ -162,7 +162,7 @@ public function testGroupByMax() { */ public function testGroupByCountOnlyFilters() { // Check if GROUP BY and HAVING are included when a view - // Doesn't display SUM, COUNT, MAX... functions in SELECT statment + // Doesn't display SUM, COUNT, MAX... functions in SELECT statement for ($x = 0; $x < 10; $x++) { $this->storageController->create(array('name' => 'name1'))->save(); diff --git a/core/modules/views/lib/Drupal/views/Tests/ViewTestBase.php b/core/modules/views/lib/Drupal/views/Tests/ViewTestBase.php index 71e05249f1400b116dd68ca7ae44285354519737..e77757e01adbcc684b7b8c6b73ea2e7ee111c063 100644 --- a/core/modules/views/lib/Drupal/views/Tests/ViewTestBase.php +++ b/core/modules/views/lib/Drupal/views/Tests/ViewTestBase.php @@ -211,7 +211,7 @@ protected function orderResultSet($result_set, $column, $reverse = FALSE) { * message is provided, the message will indicate the button label. * * @return bool - * TRUE if the asserion was succesful, or FALSE on failure. + * TRUE if the asserion was successful, or FALSE on failure. */ protected function helperButtonHasLabel($id, $expected_label, $message = 'Label has the expected value: %label.') { return $this->assertFieldById($id, $expected_label, t($message, array('%label' => $expected_label))); diff --git a/core/modules/views/lib/Drupal/views/ViewExecutable.php b/core/modules/views/lib/Drupal/views/ViewExecutable.php index 0203ce84191b4ccc06f740348bc83b805b8f4c4e..4b0c0ab243b9068a07552108e89e714ac909d29e 100644 --- a/core/modules/views/lib/Drupal/views/ViewExecutable.php +++ b/core/modules/views/lib/Drupal/views/ViewExecutable.php @@ -1516,7 +1516,7 @@ public function executeHookMenu($display_id = NULL, &$callbacks = array()) { * this sets the display handler if it hasn't been. */ public function access($displays = NULL, $account = NULL) { - // Noone should have access to disabled views. + // No one should have access to disabled views. if (!$this->storage->status()) { return FALSE; } diff --git a/core/modules/views/tests/Drupal/views/Tests/ViewsDataTest.php b/core/modules/views/tests/Drupal/views/Tests/ViewsDataTest.php index 4826fd73203a04039b8d4a6598e879a9d329d7b2..b6e688013efa22d674278305bd904be02da16422 100644 --- a/core/modules/views/tests/Drupal/views/Tests/ViewsDataTest.php +++ b/core/modules/views/tests/Drupal/views/Tests/ViewsDataTest.php @@ -481,9 +481,9 @@ public function testCacheCallsWithWarmCacheAndInvalidTable() { // Initialize the views data cache and request a non-existing table. This // will result in the same cache requests as we explicitly write an empty - // cache entry for non-existing tables to avoid unecessary requests in those - // situations. We do have to load the cache entry for all tables to check if - // the table does exist or not. + // cache entry for non-existing tables to avoid unnecessary requests in + // those situations. We do have to load the cache entry for all tables to + // check if the table does exist or not. for ($i = 0; $i < 5; $i++) { $views_data = $this->viewsData->get($non_existing_table); $this->assertSame(array(), $views_data); @@ -513,9 +513,9 @@ public function testCacheCallsWithWarmCacheForInvalidTable() { // Initialize the views data cache and request a non-existing table. This // will result in the same cache requests as we explicitly write an empty - // cache entry for non-existing tables to avoid unecessary requests in those - // situations. We do have to load the cache entry for all tables to check if - // the table does exist or not. + // cache entry for non-existing tables to avoid unnecessary requests in + // those situations. We do have to load the cache entry for all tables to + // check if the table does exist or not. for ($i = 0; $i < 5; $i++) { $views_data = $this->viewsData->get($non_existing_table); $this->assertSame(array(), $views_data); diff --git a/core/modules/views/views.api.php b/core/modules/views/views.api.php index a1fa531c3a8aaa6383b738bb81257e473afe84a5..e78322ee766f2c722ffc8487880f7a9e5c4af1d3 100644 --- a/core/modules/views/views.api.php +++ b/core/modules/views/views.api.php @@ -251,7 +251,7 @@ function hook_views_data() { 'label' => t('Published'), // This setting is used by the boolean filter handler, as possible option. 'type' => 'yes-no', - // use boolean_field = 1 instead of boolean_field <> 0 in WHERE statment. + // use boolean_field = 1 instead of boolean_field <> 0 in WHERE statement. 'use_equal' => TRUE, ), 'sort' => array( diff --git a/core/modules/views/views.module b/core/modules/views/views.module index 8445804b932b9c6e6797a400cbadfe074cdf8484..64ed3fb97e10da441f773972f3f5e936958e1cd8 100644 --- a/core/modules/views/views.module +++ b/core/modules/views/views.module @@ -1217,7 +1217,7 @@ function views_query_views_alter(AlterableInterface $query) { } } - // Replaces substitions in filter criterias. + // Replaces substitions in filter criteria. _views_query_tag_alter_condition($query, $where, $substitutions); } diff --git a/core/tests/Drupal/Tests/Core/Access/CsrfAccessCheckTest.php b/core/tests/Drupal/Tests/Core/Access/CsrfAccessCheckTest.php index cbe3951f9038549961cd898367b5b051b822ec2f..0d7a4069ac12c2eea2488236bae1a011a5839e7f 100644 --- a/core/tests/Drupal/Tests/Core/Access/CsrfAccessCheckTest.php +++ b/core/tests/Drupal/Tests/Core/Access/CsrfAccessCheckTest.php @@ -108,7 +108,7 @@ public function testAccessTokenFail() { /** * Tests the access() method with no _controller_request attribute set. * - * This will default to the 'ANY' access conjuction. + * This will default to the 'ANY' access conjunction. */ public function testAccessTokenMissAny() { $this->csrfToken->expects($this->never()) @@ -125,7 +125,7 @@ public function testAccessTokenMissAny() { /** * Tests the access() method with no _controller_request attribute set. * - * This will use the 'ALL' access conjuction. + * This will use the 'ALL' access conjunction. */ public function testAccessTokenMissAll() { $this->csrfToken->expects($this->never()) diff --git a/core/tests/Drupal/Tests/Core/Entity/Enhancer/EntityRouteEnhancerTest.php b/core/tests/Drupal/Tests/Core/Entity/Enhancer/EntityRouteEnhancerTest.php index 17f454ee66829e114056646ad3b73e84ec39f190..a029fa5dbe20f2eb1cfa39cbfa962f0c6154aa3c 100644 --- a/core/tests/Drupal/Tests/Core/Entity/Enhancer/EntityRouteEnhancerTest.php +++ b/core/tests/Drupal/Tests/Core/Entity/Enhancer/EntityRouteEnhancerTest.php @@ -34,12 +34,12 @@ public static function getInfo() { * @see \Drupal\Core\Entity\Enhancer\EntityRouteEnhancer::enhancer() */ public function testEnhancer() { - $negotation = $this->getMock('Drupal\core\ContentNegotiation', array('getContentType')); - $negotation->expects($this->any()) + $negotiation = $this->getMock('Drupal\core\ContentNegotiation', array('getContentType')); + $negotiation->expects($this->any()) ->method('getContentType') ->will($this->returnValue('html')); - $route_enhancer = new EntityRouteEnhancer($negotation); + $route_enhancer = new EntityRouteEnhancer($negotiation); // Set a controller to ensure it is not overridden. $request = new Request(); diff --git a/core/themes/bartik/color/color.inc b/core/themes/bartik/color/color.inc index f70450c78e194afb92327850c49de92f60a7a772..f16403a57fdd5450e6aaa75687cf8e7e284c7710 100644 --- a/core/themes/bartik/color/color.inc +++ b/core/themes/bartik/color/color.inc @@ -2,7 +2,7 @@ /** * @file - * Lists avalable colors and color schemes for the Bartik theme. + * Lists available colors and color schemes for the Bartik theme. */ // Put the logo path into JavaScript for the live preview.