diff --git a/core/modules/aggregator/src/Plugin/views/field/Xss.php b/core/modules/aggregator/src/Plugin/views/field/Xss.php index ccd44d0..bdbc7e6 100644 --- a/core/modules/aggregator/src/Plugin/views/field/Xss.php +++ b/core/modules/aggregator/src/Plugin/views/field/Xss.php @@ -10,7 +10,7 @@ use Drupal\views\Plugin\views\field\Xss as XssBase; /** - * Filters htmls tags from item. + * Filters HTML tags from item. * * @ingroup views_field_handlers * diff --git a/core/modules/aggregator/tests/src/Unit/Plugin/AggregatorPluginSettingsBaseTest.php b/core/modules/aggregator/tests/src/Unit/Plugin/AggregatorPluginSettingsBaseTest.php index ed5e0b8..d4fb033 100644 --- a/core/modules/aggregator/tests/src/Unit/Plugin/AggregatorPluginSettingsBaseTest.php +++ b/core/modules/aggregator/tests/src/Unit/Plugin/AggregatorPluginSettingsBaseTest.php @@ -73,7 +73,7 @@ protected function setUp() { * plugins that extend AggregatorPluginSettingsBase. */ public function testSettingsForm() { - // Emulate a form state of a sumbitted form. + // Emulate a form state of a submitted form. $form_state = (new FormState())->setValues([ 'dummy_length' => '', 'aggregator_allowed_html_tags' => '', diff --git a/core/modules/block/src/Tests/BlockLanguageTest.php b/core/modules/block/src/Tests/BlockLanguageTest.php index 380c65c..2b94bee 100644 --- a/core/modules/block/src/Tests/BlockLanguageTest.php +++ b/core/modules/block/src/Tests/BlockLanguageTest.php @@ -11,7 +11,7 @@ use Drupal\block\Entity\Block; /** - * Tests if a block can be configure to be only visibile on a particular + * Tests if a block can be configure to be only visible on a particular * language. * * @group block diff --git a/core/modules/block_content/src/Tests/BlockContentSaveTest.php b/core/modules/block_content/src/Tests/BlockContentSaveTest.php index f2a845b..74e296f 100644 --- a/core/modules/block_content/src/Tests/BlockContentSaveTest.php +++ b/core/modules/block_content/src/Tests/BlockContentSaveTest.php @@ -60,7 +60,7 @@ public function testImport() { } /** - * Tests determing changes in hook_block_presave(). + * Tests determining changes in hook_block_presave(). * * Verifies the static block load cache is cleared upon save. */ @@ -79,7 +79,7 @@ public function testDeterminingChanges() { // The hook implementations block_content_test_block_content_presave() and // block_content_test_block_content_update() determine changes and change the - // title as well as programatically set the 'changed' timestamp. + // title as well as programmatically set the 'changed' timestamp. $this->assertEqual($block->label(), 'updated_presave_update', 'Changes have been determined.'); $this->assertEqual($block->getChangedTime(), 979534800, 'Saving a custom block uses "changed" timestamp set in presave hook.'); diff --git a/core/modules/comment/src/Tests/CommentNonNodeTest.php b/core/modules/comment/src/Tests/CommentNonNodeTest.php index 15eb7b7..c547fd2 100644 --- a/core/modules/comment/src/Tests/CommentNonNodeTest.php +++ b/core/modules/comment/src/Tests/CommentNonNodeTest.php @@ -194,7 +194,7 @@ function commentContactInfoAvailable() { * Comment to perform operation on. * @param string $operation * Operation to perform. - * @param boolean $aproval + * @param boolean $approval * Operation is found on approval page. */ function performCommentOperation($comment, $operation, $approval = FALSE) { diff --git a/core/modules/comment/src/Tests/CommentTestBase.php b/core/modules/comment/src/Tests/CommentTestBase.php index 9b9f507..a70905c 100644 --- a/core/modules/comment/src/Tests/CommentTestBase.php +++ b/core/modules/comment/src/Tests/CommentTestBase.php @@ -333,7 +333,7 @@ function commentContactInfoAvailable() { * Comment to perform operation on. * @param string $operation * Operation to perform. - * @param boolean $aproval + * @param boolean $approval * Operation is found on approval page. */ function performCommentOperation(CommentInterface $comment, $operation, $approval = FALSE) { diff --git a/core/modules/comment/src/Tests/CommentThreadingTest.php b/core/modules/comment/src/Tests/CommentThreadingTest.php index 476e3c9..a14e500 100644 --- a/core/modules/comment/src/Tests/CommentThreadingTest.php +++ b/core/modules/comment/src/Tests/CommentThreadingTest.php @@ -115,7 +115,7 @@ function testCommentThreading() { /** * Asserts that the link to the specified parent comment is present. * - * @parm int $cid + * @param int $cid * The comment ID to check. * @param int $pid * The expected parent comment ID. @@ -142,7 +142,7 @@ protected function assertParentLink($cid, $pid) { /** * Asserts that the specified comment does not have a link to a parent. * - * @parm int $cid + * @param int $cid * The comment ID to check. */ protected function assertNoParentLink($cid) { diff --git a/core/modules/comment/tests/modules/comment_empty_title_test/comment_empty_title_test.module b/core/modules/comment/tests/modules/comment_empty_title_test/comment_empty_title_test.module index 015fe05..d9a0503 100644 --- a/core/modules/comment/tests/modules/comment_empty_title_test/comment_empty_title_test.module +++ b/core/modules/comment/tests/modules/comment_empty_title_test/comment_empty_title_test.module @@ -2,7 +2,7 @@ /** * @file - * Dummy module emptying comment titles to test for approriate and accessible + * Dummy module emptying comment titles to test for appropriate and accessible * markup in edge case scenarios where comments have empty titles. */ diff --git a/core/modules/config/src/Tests/ConfigEntityTest.php b/core/modules/config/src/Tests/ConfigEntityTest.php index 0a896a0..b004e1f 100644 --- a/core/modules/config/src/Tests/ConfigEntityTest.php +++ b/core/modules/config/src/Tests/ConfigEntityTest.php @@ -172,7 +172,7 @@ function testCRUD() { $this->fail($e->getMessage()); } - // Test with an ID exeeding the maximum allowed length. + // Test with an ID exceeding the maximum allowed length. $id_length_config_test = entity_create('config_test', array( 'id' => $this->randomMachineName(static::MAX_ID_LENGTH + 1), )); diff --git a/core/modules/config/src/Tests/ConfigExportImportUITest.php b/core/modules/config/src/Tests/ConfigExportImportUITest.php index 13ddd20..e1cbfba 100644 --- a/core/modules/config/src/Tests/ConfigExportImportUITest.php +++ b/core/modules/config/src/Tests/ConfigExportImportUITest.php @@ -175,7 +175,7 @@ public function testExportImportCollections() { $this->assertEqual($data, array('foo' => 'baz'), 'The config_test.another_update in collection.test2 exists in the snapshot storage.'); $this->assertFalse($test2_snapshot->read('config_test.another_create'), 'The config_test.another_create in collection.test2 does not exist in the snapshot storage.'); - // Create the tar contains the expected contect for the collections. + // Create the tar contains the expected content for the collections. $tar = new ArchiveTar($filename, 'gz'); $content_list = $tar->listContent(); // Convert the list of files into something easy to search. diff --git a/core/modules/config/src/Tests/ConfigImportUITest.php b/core/modules/config/src/Tests/ConfigImportUITest.php index 959b2f1..ae79d29 100644 --- a/core/modules/config/src/Tests/ConfigImportUITest.php +++ b/core/modules/config/src/Tests/ConfigImportUITest.php @@ -300,7 +300,7 @@ function testImportDiff() { } /** - * Tests that mutliple validation errors are listed on the page. + * Tests that multiple validation errors are listed on the page. */ public function testImportValidation() { // Set state value so that diff --git a/core/modules/config/src/Tests/ConfigInstallTest.php b/core/modules/config/src/Tests/ConfigInstallTest.php index e284638..f7bfe32 100644 --- a/core/modules/config/src/Tests/ConfigInstallTest.php +++ b/core/modules/config/src/Tests/ConfigInstallTest.php @@ -156,7 +156,7 @@ public function testCollectionInstallationCollectionConfigEntity() { $this->assertEqual($collections, $active_storage->getAllCollectionNames()); $collection_storage = $active_storage->createCollection('entity'); - // The config_test.dynamic.dotted.default configuraton object saved in the + // The config_test.dynamic.dotted.default configuration object saved in the // active store should be a configuration entity complete with UUID. Because // the entity collection does not support configuration entities the // configuration object stored there with the same name should only contain diff --git a/core/modules/config/src/Tests/ConfigLanguageOverrideWebTest.php b/core/modules/config/src/Tests/ConfigLanguageOverrideWebTest.php index be24fb9..8f4f047 100644 --- a/core/modules/config/src/Tests/ConfigLanguageOverrideWebTest.php +++ b/core/modules/config/src/Tests/ConfigLanguageOverrideWebTest.php @@ -31,7 +31,7 @@ function testSiteNameTranslation() { $adminUser = $this->drupalCreateUser(array('administer site configuration', 'administer languages')); $this->drupalLogin($adminUser); - // Add a custom lanugage. + // Add a custom language. $langcode = 'xx'; $name = $this->randomMachineName(16); $edit = array( diff --git a/core/modules/config/src/Tests/ConfigOverrideTest.php b/core/modules/config/src/Tests/ConfigOverrideTest.php index 70bbee7..4e232b9 100644 --- a/core/modules/config/src/Tests/ConfigOverrideTest.php +++ b/core/modules/config/src/Tests/ConfigOverrideTest.php @@ -103,7 +103,7 @@ function testConfOverride() { $this->assertFalse(isset($data['baz'])); $this->assertIdentical($data['404'], $expected_new_data['404']); - // Verifiy the overrides are still working. + // Verify the overrides are still working. $config = \Drupal::config('config_test.system'); $this->assertIdentical($config->get('foo'), $overrides['config_test.system']['foo']); $this->assertIdentical($config->get('baz'), $overrides['config_test.system']['baz']); diff --git a/core/modules/contact/src/MessageInterface.php b/core/modules/contact/src/MessageInterface.php index 224564e..2d21f9b 100644 --- a/core/modules/contact/src/MessageInterface.php +++ b/core/modules/contact/src/MessageInterface.php @@ -114,7 +114,7 @@ public function isPersonal(); * Returns the user this message is being sent to. * * @return \Drupal\user\UserInterface - * The user entity of the recipent, NULL if this is not a personal message. + * The user entity of the recipient, NULL if this is not a personal message. */ public function getPersonalRecipient(); diff --git a/core/modules/content_translation/content_translation.module b/core/modules/content_translation/content_translation.module index 1119ab8..4dfcdb6 100644 --- a/core/modules/content_translation/content_translation.module +++ b/core/modules/content_translation/content_translation.module @@ -394,7 +394,7 @@ function content_translation_form_alter(array &$form, FormStateInterface $form_s /** * Implements hook_language_fallback_candidates_OPERATION_alter(). * - * Performs language fallback for unaccessible translations. + * Performs language fallback for inaccessible translations. */ function content_translation_language_fallback_candidates_entity_view_alter(&$candidates, $context) { /** @var \Drupal\Core\Entity\ContentEntityInterface $entity */ diff --git a/core/modules/content_translation/src/Tests/ContentTranslationSettingsTest.php b/core/modules/content_translation/src/Tests/ContentTranslationSettingsTest.php index 6fc1b03..c1dcac1 100644 --- a/core/modules/content_translation/src/Tests/ContentTranslationSettingsTest.php +++ b/core/modules/content_translation/src/Tests/ContentTranslationSettingsTest.php @@ -201,11 +201,11 @@ function testAccountLanguageSettingsUI() { * Asserts that translatability has the expected value for the given bundle. * * @param string $entity_type - * The entity type for which to check translatibility. + * The entity type for which to check translatability. * @param string $bundle - * The bundle for which to check translatibility. + * The bundle for which to check translatability. * @param boolean $enabled - * TRUE if translatibility should be enabled, FALSE otherwise. + * TRUE if translatability should be enabled, FALSE otherwise. * @param array $edit * An array of values to submit to the content translation settings page. * diff --git a/core/modules/content_translation/src/Tests/ContentTranslationSyncUnitTest.php b/core/modules/content_translation/src/Tests/ContentTranslationSyncUnitTest.php index b05b446..291ac2a 100644 --- a/core/modules/content_translation/src/Tests/ContentTranslationSyncUnitTest.php +++ b/core/modules/content_translation/src/Tests/ContentTranslationSyncUnitTest.php @@ -25,14 +25,14 @@ class ContentTranslationSyncUnitTest extends DrupalUnitTestBase { protected $synchronizer; /** - * The colums to be synchronized. + * The columns to be synchronized. * * @var array */ protected $synchronized; /** - * All the field colums. + * All the field columns. * * @var array */ diff --git a/core/modules/content_translation/src/Tests/ContentTranslationWorkflowsTest.php b/core/modules/content_translation/src/Tests/ContentTranslationWorkflowsTest.php index ccb3f80..1f39ece 100644 --- a/core/modules/content_translation/src/Tests/ContentTranslationWorkflowsTest.php +++ b/core/modules/content_translation/src/Tests/ContentTranslationWorkflowsTest.php @@ -83,7 +83,7 @@ function testWorkflows() { $expected_status = array('edit' => 200, 'overview' => 200, 'add_translation' => 200, 'edit_translation' => 200); $this->assertWorkflows($this->administrator, $expected_status); - // Check that translation permissions governate the associated operations. + // Check that translation permissions govern the associated operations. $ops = array('create' => t('Add'), 'update' => t('Edit'), 'delete' => t('Delete')); $translations_path = $this->entity->getSystemPath('drupal:content-translation-overview'); foreach ($ops as $current_op => $label) { diff --git a/core/modules/dblog/src/Tests/DbLogTest.php b/core/modules/dblog/src/Tests/DbLogTest.php index 4dc37e4..7d8ae7a 100644 --- a/core/modules/dblog/src/Tests/DbLogTest.php +++ b/core/modules/dblog/src/Tests/DbLogTest.php @@ -13,7 +13,7 @@ /** * Generate events and verify dblog entries; verify user access to log reports - * based on persmissions. + * based on permissions. * * @group dblog */ diff --git a/core/modules/editor/src/EditorXssFilter/Standard.php b/core/modules/editor/src/EditorXssFilter/Standard.php index 8419780..ab7172a 100644 --- a/core/modules/editor/src/EditorXssFilter/Standard.php +++ b/core/modules/editor/src/EditorXssFilter/Standard.php @@ -41,7 +41,7 @@ public static function filterXss($html, FilterFormatInterface $format, FilterFor // embedded, hence ensuring the same origin policy always applies. $dangerous_tags = array('script', 'style', 'link', 'embed', 'object'); - // Simply blacklisting these five dangerious tags would bring safety, but + // Simply blacklisting these five dangerous tags would bring safety, but // also user frustration: what if a text format is configured to allow // , for example? Then we would strip that tag, even though it is // allowed, thereby causing data loss! diff --git a/core/modules/editor/src/Tests/EditorFileUsageTest.php b/core/modules/editor/src/Tests/EditorFileUsageTest.php index fb62a09..ad9571c 100644 --- a/core/modules/editor/src/Tests/EditorFileUsageTest.php +++ b/core/modules/editor/src/Tests/EditorFileUsageTest.php @@ -99,7 +99,7 @@ public function testEditorEntityHooks() { $this->assertIdentical(array('editor' => array('node' => array(1 => '2'))), $file_usage->listUsage($image), 'The image has 2 usages.'); // Test hook_entity_update(): increment, by modifying the last revision: - // readd the data- attribute to the body field. + // read the data- attribute to the body field. $node->get('body')->first()->get('value')->setValue($original_value); $node->save(); $this->assertIdentical(array('editor' => array('node' => array(1 => '3'))), $file_usage->listUsage($image), 'The image has 3 usages.'); diff --git a/core/modules/editor/tests/src/Unit/EditorXssFilter/StandardTest.php b/core/modules/editor/tests/src/Unit/EditorXssFilter/StandardTest.php index bd7bf0c..9a70a72 100644 --- a/core/modules/editor/tests/src/Unit/EditorXssFilter/StandardTest.php +++ b/core/modules/editor/tests/src/Unit/EditorXssFilter/StandardTest.php @@ -193,7 +193,7 @@ public function providerTestFilterXss() { // Escaping JavaScript escapes. // @see https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet#Escaping_JavaScript_escapes - // This one is irrelevent for Drupal; we *never* output any JavaScript code + // This one is irrelevant for Drupal; we *never* output any JavaScript code // that depends on the URL's query string. // End title tag. @@ -212,7 +212,7 @@ public function providerTestFilterXss() { // @see https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet#IMG_Dynsrc $data[] = array('', ''); - // IMG lowrsc. + // IMG lowsrc. // @see https://www.owasp.org/index.php/XSS_Filter_Evasion_Cheat_Sheet#IMG_lowsrc $data[] = array('', ''); diff --git a/core/modules/entity_reference/src/Plugin/Field/FieldFormatter/EntityReferenceFormatterBase.php b/core/modules/entity_reference/src/Plugin/Field/FieldFormatter/EntityReferenceFormatterBase.php index e0b6e0e..326b5de 100644 --- a/core/modules/entity_reference/src/Plugin/Field/FieldFormatter/EntityReferenceFormatterBase.php +++ b/core/modules/entity_reference/src/Plugin/Field/FieldFormatter/EntityReferenceFormatterBase.php @@ -17,7 +17,7 @@ /** * {@inheritdoc} * - * Mark the accessible IDs a user can see. We do not unset unaccessible + * Mark the accessible IDs a user can see. We do not unset inaccessible * values, as other may want to act on those values, even if they can * not be accessed. */ diff --git a/core/modules/entity_reference/src/Tests/EntityReferenceFormatterTest.php b/core/modules/entity_reference/src/Tests/EntityReferenceFormatterTest.php index b2aab00..6dfb2b0 100644 --- a/core/modules/entity_reference/src/Tests/EntityReferenceFormatterTest.php +++ b/core/modules/entity_reference/src/Tests/EntityReferenceFormatterTest.php @@ -92,7 +92,7 @@ protected function setUp() { } /** - * Assert unaccessible items don't change the data of the fields. + * Assert inaccessible items don't change the data of the fields. */ public function testAccess() { $field_name = $this->fieldName; diff --git a/core/modules/field/src/Tests/FormTest.php b/core/modules/field/src/Tests/FormTest.php index 88ef41f..72ac3d6 100644 --- a/core/modules/field/src/Tests/FormTest.php +++ b/core/modules/field/src/Tests/FormTest.php @@ -257,7 +257,7 @@ function testFieldFormUnlimited() { $this->assertFieldByName("{$field_name}[0][value]", '', 'Widget 1 is displayed'); $this->assertFieldByName("{$field_name}[1][value]", '', 'New widget is displayed'); $this->assertNoField("{$field_name}[2][value]", 'No extraneous widget is displayed'); - // TODO : check that non-field inpurs are preserved ('title')... + // TODO : check that non-field inputs are preserved ('title')... // Yet another time so that we can play with more values -> 3 widgets. $this->drupalPostForm(NULL, array(), t('Add another item')); diff --git a/core/modules/field/src/Tests/Views/HandlerFieldFieldTest.php b/core/modules/field/src/Tests/Views/HandlerFieldFieldTest.php index 54cf3de..0e8339a 100644 --- a/core/modules/field/src/Tests/Views/HandlerFieldFieldTest.php +++ b/core/modules/field/src/Tests/Views/HandlerFieldFieldTest.php @@ -230,7 +230,7 @@ public function _testMultipleFieldRender() { } $view->destroy(); - // Test delta limit + custom seperator. + // Test delta limit + custom separator. $this->prepareView($view); $view->displayHandlers->get('default')->options['fields'][$field_name]['delta_first_last'] = FALSE; $view->displayHandlers->get('default')->options['fields'][$field_name]['delta_limit'] = 3; diff --git a/core/modules/field_ui/src/Tests/EntityDisplayTest.php b/core/modules/field_ui/src/Tests/EntityDisplayTest.php index e55f5fa..c5ddeb7 100644 --- a/core/modules/field_ui/src/Tests/EntityDisplayTest.php +++ b/core/modules/field_ui/src/Tests/EntityDisplayTest.php @@ -82,7 +82,7 @@ public function testEntityDisplayCRUD() { $display = entity_load('entity_view_display', $display->id()); $this->assertNULL($display->getComponent('component_3')); - // Check that CreateCopy() creates a new component that can be correclty + // Check that CreateCopy() creates a new component that can be correctly // saved. EntityViewMode::create(array('id' => $display->targetEntityType . '.other_view_mode', 'targetEntityType' => $display->targetEntityType))->save(); $new_display = $display->createCopy('other_view_mode'); diff --git a/core/modules/file/src/FileViewsData.php b/core/modules/file/src/FileViewsData.php index 5a977a2..2942979 100644 --- a/core/modules/file/src/FileViewsData.php +++ b/core/modules/file/src/FileViewsData.php @@ -77,35 +77,35 @@ public function getViewsData() { 'field' => 'fid', 'left_field' => 'fid', ), - // Link ourself to the {node} table + // Link ourselves to the {node} table // so we can provide node->file relationships. 'node' => array( 'field' => 'id', 'left_field' => 'nid', 'extra' => array(array('field' => 'type', 'value' => 'node')), ), - // Link ourself to the {users} table + // Link ourselves to the {users} table // so we can provide user->file relationships. 'users' => array( 'field' => 'id', 'left_field' => 'uid', 'extra' => array(array('field' => 'type', 'value' => 'user')), ), - // Link ourself to the {comment} table + // Link ourselves to the {comment} table // so we can provide comment->file relationships. 'comment' => array( 'field' => 'id', 'left_field' => 'cid', 'extra' => array(array('field' => 'type', 'value' => 'comment')), ), - // Link ourself to the {taxonomy_term_data} table + // Link ourselves to the {taxonomy_term_data} table // so we can provide taxonomy_term->file relationships. 'taxonomy_term_data' => array( 'field' => 'id', 'left_field' => 'tid', 'extra' => array(array('field' => 'type', 'value' => 'taxonomy_term')), ), - // Link ourself to the {taxonomy_vocabulary} table + // Link ourselves to the {taxonomy_vocabulary} table // so we can provide taxonomy_vocabulary->file relationships. 'taxonomy_vocabulary' => array( 'field' => 'id', diff --git a/core/modules/filter/filter.module b/core/modules/filter/filter.module index 1ea258b..4be04cb 100644 --- a/core/modules/filter/filter.module +++ b/core/modules/filter/filter.module @@ -539,7 +539,7 @@ function _filter_url($text, $filter) { // 2. Used in IIS sessions like /S(dfd346)/ $valid_url_balanced_parens = '\('. $valid_url_path_characters . '+\)'; - // Valid end-of-path chracters (so /foo. does not gobble the period). + // Valid end-of-path characters (so /foo. does not gobble the period). // 1. Allow =&# for empty URL parameters and other URL-join artifacts $valid_url_ending_characters = '[\p{L}\p{M}\p{N}:_+~#=/]|(?:' . $valid_url_balanced_parens . ')'; @@ -703,7 +703,7 @@ function _filter_url_escape_comments($match, $escape = NULL) { return; } - // Replace all HTML coments with a '' placeholder. + // Replace all HTML comments with a '' placeholder. if ($mode) { $content = $match[1]; $hash = hash('sha256', $content); diff --git a/core/modules/filter/src/Plugin/Filter/FilterAutoP.php b/core/modules/filter/src/Plugin/Filter/FilterAutoP.php index 0627527..2e67130 100644 --- a/core/modules/filter/src/Plugin/Filter/FilterAutoP.php +++ b/core/modules/filter/src/Plugin/Filter/FilterAutoP.php @@ -11,7 +11,7 @@ use Drupal\filter\Plugin\FilterBase; /** - * Provides a filter to conver line breaks to HTML. + * Provides a filter to convert line breaks to HTML. * * @Filter( * id = "filter_autop", diff --git a/core/modules/filter/tests/filter_test/src/Plugin/Filter/FilterTestRestrictTagsAndAttributes.php b/core/modules/filter/tests/filter_test/src/Plugin/Filter/FilterTestRestrictTagsAndAttributes.php index c11160d..8e51207 100644 --- a/core/modules/filter/tests/filter_test/src/Plugin/Filter/FilterTestRestrictTagsAndAttributes.php +++ b/core/modules/filter/tests/filter_test/src/Plugin/Filter/FilterTestRestrictTagsAndAttributes.php @@ -12,7 +12,7 @@ use Drupal\Component\Utility\Xss; /** - * Provides a test filter to restirct HTML tags and attributes. + * Provides a test filter to restrict HTML tags and attributes. * * @Filter( * id = "filter_test_restrict_tags_and_attributes", diff --git a/core/modules/forum/src/Tests/ForumTest.php b/core/modules/forum/src/Tests/ForumTest.php index ebda138..13c1689 100644 --- a/core/modules/forum/src/Tests/ForumTest.php +++ b/core/modules/forum/src/Tests/ForumTest.php @@ -526,7 +526,7 @@ function createForumTopic($forum, $container = FALSE) { * @param $admin * Boolean to indicate whether the user can 'access administration pages'. * @param $response - * The exptected HTTP response code. + * The expected HTTP response code. */ private function verifyForums(EntityInterface $node, $admin, $response = 200) { $response2 = ($admin) ? 200 : 403; diff --git a/core/modules/history/src/Tests/HistoryTest.php b/core/modules/history/src/Tests/HistoryTest.php index 6bce6e1..2d833f3 100644 --- a/core/modules/history/src/Tests/HistoryTest.php +++ b/core/modules/history/src/Tests/HistoryTest.php @@ -27,7 +27,7 @@ class HistoryTest extends WebTestBase { /** * The main user for testing. * - * @var objec + * @var object */ protected $user; diff --git a/core/modules/language/language.api.php b/core/modules/language/language.api.php index b074113..9636f4c 100644 --- a/core/modules/language/language.api.php +++ b/core/modules/language/language.api.php @@ -20,7 +20,7 @@ * may contain the following elements: * - name: The human-readable language type identifier. * - description: A description of the language type. - * - locked: A boolean indicating if the user can choose wether to configure + * - locked: A boolean indicating if the user can choose whether to configure * the language type or not using the UI. * - fixed: A fixed array of language negotiation method identifiers to use to * initialize this language. If locked is set to TRUE and fixed is set, it diff --git a/core/modules/language/src/LanguageNegotiationMethodInterface.php b/core/modules/language/src/LanguageNegotiationMethodInterface.php index 2d44f32..5946d62 100644 --- a/core/modules/language/src/LanguageNegotiationMethodInterface.php +++ b/core/modules/language/src/LanguageNegotiationMethodInterface.php @@ -50,7 +50,7 @@ public function setCurrentUser(AccountInterface $current_user); * initialized yet. * * @return string - * A valid language code or FALSE if the negotitation was unsuccessful. + * A valid language code or FALSE if the negotiation was unsuccessful. */ public function getLangcode(Request $request = NULL); diff --git a/core/modules/language/src/LanguageNegotiatorInterface.php b/core/modules/language/src/LanguageNegotiatorInterface.php index c5991c2..4162e6f 100644 --- a/core/modules/language/src/LanguageNegotiatorInterface.php +++ b/core/modules/language/src/LanguageNegotiatorInterface.php @@ -59,7 +59,7 @@ * - URL: Determine the language from the URL (path prefix or domain). * - Session: Determine the language from a request/session parameter. * - User: Follow the user's language preference. - * - User admin language: Identifie admin language from the user preferences. + * - User admin language: Identify admin language from the user preferences. * - Browser: Determine the language from the browser's language settings. * - Selected language: Use the default site language. * Language negotiation methods are simple plugin classes that implement a diff --git a/core/modules/language/tests/src/Unit/LanguageNegotiationUrlTest.php b/core/modules/language/tests/src/Unit/LanguageNegotiationUrlTest.php index 7f2684b..f6cc417 100644 --- a/core/modules/language/tests/src/Unit/LanguageNegotiationUrlTest.php +++ b/core/modules/language/tests/src/Unit/LanguageNegotiationUrlTest.php @@ -89,7 +89,7 @@ public function testDomain($http_host, $domains, $expected_langcode) { * Provides data for the domain test. * * @return array - * An array of data for checking domain negotation. + * An array of data for checking domain negotiation. */ public function providerTestDomain() { diff --git a/core/modules/link/src/Tests/LinkFieldTest.php b/core/modules/link/src/Tests/LinkFieldTest.php index c596c53..a52582f 100644 --- a/core/modules/link/src/Tests/LinkFieldTest.php +++ b/core/modules/link/src/Tests/LinkFieldTest.php @@ -110,7 +110,7 @@ function testURLValidation() { // Define some invalid URLs. $invalid_external_entries = array( - // Missing protcol + // Missing protocol 'not-an-url', // Invalid protocol 'invalid://not-a-valid-protocol', diff --git a/core/modules/locale/locale.bulk.inc b/core/modules/locale/locale.bulk.inc index c9bf165..ba885f4 100644 --- a/core/modules/locale/locale.bulk.inc +++ b/core/modules/locale/locale.bulk.inc @@ -281,7 +281,7 @@ function locale_translate_batch_import_save($context) { } /** - * Refreshs translations after importing strings. + * Refreshes translations after importing strings. * * @param array $context * Contains a list of strings updated and information about the progress. @@ -443,7 +443,7 @@ function locale_translate_file_attach_properties($file, $options = array()) { // Extract project, version and language code from the file name. Supported: // {project}-{version}.{langcode}.po, {prefix}.{langcode}.po or {langcode}.po preg_match('! - ( # project OR project and version OR emtpy (group 1) + ( # project OR project and version OR empty (group 1) ([a-z_]+) # project name (group 2) \. # . | # OR diff --git a/core/modules/locale/locale.translation.inc b/core/modules/locale/locale.translation.inc index 2208b1d..f44fc29 100644 --- a/core/modules/locale/locale.translation.inc +++ b/core/modules/locale/locale.translation.inc @@ -207,7 +207,7 @@ function locale_translation_source_check_file($source) { * - "type": Most recent translation source found. LOCALE_TRANSLATION_REMOTE * and LOCALE_TRANSLATION_LOCAL indicate available new translations, * LOCALE_TRANSLATION_CURRENT indicate that the current translation is them - * most recent. "type" sorresponds with a key of the "files" array. + * most recent. "type" corresponds with a key of the "files" array. * - "timestamp": The creation time of the "type" translation (file). * - "last_checked": The time when the "type" translation was last checked. * The "files" array can hold file objects of type: diff --git a/core/modules/locale/src/StringDatabaseStorage.php b/core/modules/locale/src/StringDatabaseStorage.php index ea4f12e..b85b871 100644 --- a/core/modules/locale/src/StringDatabaseStorage.php +++ b/core/modules/locale/src/StringDatabaseStorage.php @@ -454,7 +454,7 @@ protected function dbStringSelect(array $conditions, array $options = array()) { } /** - * Createds a database record for a string object. + * Creates a database record for a string object. * * @param \Drupal\locale\StringInterface $string * The string object. @@ -464,7 +464,7 @@ protected function dbStringSelect(array $conditions, array $options = array()) { * If it succeeded returns the last insert ID of the query, if one exists. * * @throws \Drupal\locale\StringStorageException - * If the string is not suitable for this storage, an exception ithrown. + * If the string is not suitable for this storage, an exception is thrown. */ protected function dbStringInsert($string) { if ($string->isSource()) { diff --git a/core/modules/locale/src/StringStorageInterface.php b/core/modules/locale/src/StringStorageInterface.php index 3d075bf..c8a84bb 100644 --- a/core/modules/locale/src/StringStorageInterface.php +++ b/core/modules/locale/src/StringStorageInterface.php @@ -56,8 +56,8 @@ public function getTranslations(array $conditions = array(), array $options = ar * * @param array $conditions * (optional) Array with conditions to filter the locations that may be any - * of the follwing elements: - * - 'sid', The tring identifier. + * of the following elements: + * - 'sid', The string identifier. * - 'type', The location type. * - 'name', The location name. * diff --git a/core/modules/locale/src/Tests/LocaleUpdateCronTest.php b/core/modules/locale/src/Tests/LocaleUpdateCronTest.php index 10f0042..3025bfb 100644 --- a/core/modules/locale/src/Tests/LocaleUpdateCronTest.php +++ b/core/modules/locale/src/Tests/LocaleUpdateCronTest.php @@ -65,7 +65,7 @@ public function testUpdateCron() { ); $this->drupalPostForm('admin/config/regional/translate/settings', $edit, t('Save configuration')); - // Execute locale cron taks to add tasks to the queue. + // Execute locale cron tasks to add tasks to the queue. locale_cron(); // Check whether no tasks are added to the queue. @@ -80,7 +80,7 @@ public function testUpdateCron() { ); $this->drupalPostForm('admin/config/regional/translate/settings', $edit, t('Save configuration')); - // Execute locale cron taks to add tasks to the queue. + // Execute locale cron tasks to add tasks to the queue. locale_cron(); // Check whether tasks are added to the queue. diff --git a/core/modules/menu_link_content/src/Plugin/Menu/MenuLinkContent.php b/core/modules/menu_link_content/src/Plugin/Menu/MenuLinkContent.php index ea47019..49d5815 100644 --- a/core/modules/menu_link_content/src/Plugin/Menu/MenuLinkContent.php +++ b/core/modules/menu_link_content/src/Plugin/Menu/MenuLinkContent.php @@ -124,7 +124,7 @@ protected function getEntity() { if (!empty($this->pluginDefinition['metadata']['entity_id'])) { $entity_id = $this->pluginDefinition['metadata']['entity_id']; // Make sure the current ID is in the list, since each plugin empties - // the list after calling loadMultple(). Note that the list may include + // the list after calling loadMultiple(). Note that the list may include // multiple IDs added earlier in each plugin's constructor. static::$entityIdsToLoad[$entity_id] = $entity_id; $entities = $storage->loadMultiple(array_values(static::$entityIdsToLoad)); diff --git a/core/modules/menu_link_content/src/Tests/LinksTest.php b/core/modules/menu_link_content/src/Tests/LinksTest.php index 3cc8a95..4904bc1 100644 --- a/core/modules/menu_link_content/src/Tests/LinksTest.php +++ b/core/modules/menu_link_content/src/Tests/LinksTest.php @@ -161,7 +161,7 @@ function testMenuLinkReparenting($module = 'menu_test') { $this->assertMenuLinkParents($links, $expected_hierarchy); // Start over, and move child-1 under child-2, and check that all the - // childs of child-1 have been moved too. + // children of child-1 have been moved too. $links = $this->createLinkHierarchy($module); /* @var \Drupal\Core\Menu\MenuLinkInterface $menu_link_plugin */ $this->menuLinkManager->updateDefinition($links['child-1'], array('parent' => $links['child-2'])); diff --git a/core/modules/menu_ui/src/Tests/MenuWebTestBase.php b/core/modules/menu_ui/src/Tests/MenuWebTestBase.php index 38fb799..7599023 100644 --- a/core/modules/menu_ui/src/Tests/MenuWebTestBase.php +++ b/core/modules/menu_ui/src/Tests/MenuWebTestBase.php @@ -22,7 +22,7 @@ public static $modules = array('menu_ui', 'menu_link_content'); /** - * Fetchs the menu item from the database and compares it to expected item. + * Fetches the menu item from the database and compares it to expected item. * * @param int $menu_plugin_id * Menu item id. diff --git a/core/modules/migrate/src/Source.php b/core/modules/migrate/src/Source.php index be4368b..cd36ca7 100644 --- a/core/modules/migrate/src/Source.php +++ b/core/modules/migrate/src/Source.php @@ -21,7 +21,7 @@ class Source implements \Iterator, \Countable { /** - * The current row from the quey + * The current row from the query * * @var \Drupal\Migrate\Row */ diff --git a/core/modules/migrate_drupal/tests/src/Unit/source/d6/Drupal6SqlBaseTest.php b/core/modules/migrate_drupal/tests/src/Unit/source/d6/Drupal6SqlBaseTest.php index 4deb601..707d2ef 100644 --- a/core/modules/migrate_drupal/tests/src/Unit/source/d6/Drupal6SqlBaseTest.php +++ b/core/modules/migrate_drupal/tests/src/Unit/source/d6/Drupal6SqlBaseTest.php @@ -166,7 +166,7 @@ public function query() { * Tweaks Drupal6SqlBase to set a new database connection for tests. * * @param \Drupal\Core\Database\Connection - * The new conection to use. + * The new connection to use. * * @see \Drupal\Tests\migrate\Unit\MigrateSqlTestCase */ diff --git a/core/modules/node/node.api.php b/core/modules/node/node.api.php index d42f748..41e5d07 100644 --- a/core/modules/node/node.api.php +++ b/core/modules/node/node.api.php @@ -65,7 +65,7 @@ * called. * * @param \Drupal\Core\Session\AccountInterface $account - * The acccount object whose grants are requested. + * The account object whose grants are requested. * @param string $op * The node operation to be performed, such as 'view', 'update', or 'delete'. * diff --git a/core/modules/node/src/Tests/NodeRevisionPermissionsTest.php b/core/modules/node/src/Tests/NodeRevisionPermissionsTest.php index cd65dba..07607f0 100644 --- a/core/modules/node/src/Tests/NodeRevisionPermissionsTest.php +++ b/core/modules/node/src/Tests/NodeRevisionPermissionsTest.php @@ -133,7 +133,7 @@ function testNodeRevisionAccessPerType() { 'account' => $accounts, ); - // Test that the accounts have access to the correspoding page revision permissions. + // Test that the accounts have access to the corresponding page revision permissions. $revision = $this->node_revisions['page'][1]; $permutations = $this->generatePermutations($parameters); diff --git a/core/modules/node/src/Tests/NodeTypeInitialLanguageTest.php b/core/modules/node/src/Tests/NodeTypeInitialLanguageTest.php index 81bf814..b9805fa 100644 --- a/core/modules/node/src/Tests/NodeTypeInitialLanguageTest.php +++ b/core/modules/node/src/Tests/NodeTypeInitialLanguageTest.php @@ -2,7 +2,7 @@ /** * @file - * Definition of Drupal\node\Tests\NodeTypeInitalLanguageTest. + * Definition of Drupal\node\Tests\NodeTypeInitialLanguageTest. */ namespace Drupal\node\Tests; diff --git a/core/modules/node/src/Tests/NodeTypeTest.php b/core/modules/node/src/Tests/NodeTypeTest.php index 3125928..8dc6fec 100644 --- a/core/modules/node/src/Tests/NodeTypeTest.php +++ b/core/modules/node/src/Tests/NodeTypeTest.php @@ -45,7 +45,7 @@ function testNodeTypeGetFunctions() { * Tests creating a content type programmatically and via a form. */ function testNodeTypeCreation() { - // Create a content type programmaticaly. + // Create a content type programmatically. $type = $this->drupalCreateContentType(); $type_exists = (bool) entity_load('node_type', $type->type); diff --git a/core/modules/options/src/Tests/OptionsFieldTest.php b/core/modules/options/src/Tests/OptionsFieldTest.php index a6f0b97..bfcb1b2 100644 --- a/core/modules/options/src/Tests/OptionsFieldTest.php +++ b/core/modules/options/src/Tests/OptionsFieldTest.php @@ -64,7 +64,7 @@ function testUpdateAllowedValues() { $this->fieldStorage->settings['allowed_values'] = array(10 => 'Update', 20 => 'Twenty'); $this->fieldStorage->save(); // The entity holds an outdated field object with the old allowed values - // setting, so we need to reintialize the entity object. + // setting, so we need to reinitialize the entity object. $entity = entity_create('entity_test'); $form = \Drupal::service('entity.form_builder')->getForm($entity); $this->assertTrue(empty($form[$this->fieldName]['widget'][1]), 'Option 1 does not exist'); diff --git a/core/modules/path/src/Tests/PathAliasTest.php b/core/modules/path/src/Tests/PathAliasTest.php index 134f9d7..61bb16f 100644 --- a/core/modules/path/src/Tests/PathAliasTest.php +++ b/core/modules/path/src/Tests/PathAliasTest.php @@ -124,7 +124,7 @@ function testAdminAlias() { $edit['source'] = 'node/' . $node1->id(); $alias = $this->randomMachineName(128); $edit['alias'] = $alias; - // The alias is shortened to 50 characters counting the elipsis. + // The alias is shortened to 50 characters counting the ellipsis. $truncated_alias = substr($alias, 0, 47); $this->drupalPostForm('admin/config/search/path/add', $edit, t('Save')); $this->assertNoText($alias, 'The untruncated alias was not found.'); diff --git a/core/modules/rest/src/Plugin/views/display/RestExport.php b/core/modules/rest/src/Plugin/views/display/RestExport.php index d4f3d34..1759cd9 100644 --- a/core/modules/rest/src/Plugin/views/display/RestExport.php +++ b/core/modules/rest/src/Plugin/views/display/RestExport.php @@ -255,7 +255,7 @@ public function collectRoutes(RouteCollection $collection) { // REST exports should only respond to get methods. $requirements = array('_method' => 'GET'); - // Format as a string using pipes as a delimeter. + // Format as a string using pipes as a delimiter. $requirements['_format'] = implode('|', $style_plugin->getFormats()); // Add the new requirements to the route. diff --git a/core/modules/rest/src/RequestHandler.php b/core/modules/rest/src/RequestHandler.php index c31600d..5c16c66 100644 --- a/core/modules/rest/src/RequestHandler.php +++ b/core/modules/rest/src/RequestHandler.php @@ -44,7 +44,7 @@ public function handle(RouteMatchInterface $route_match, Request $request) { ->get('plugin.manager.rest') ->getInstance(array('id' => $plugin)); - // Deserialze incoming data if available. + // Deserialize incoming data if available. $serializer = $this->container->get('serializer'); $received = $request->getContent(); $unserialized = NULL; diff --git a/core/modules/search/search.api.php b/core/modules/search/search.api.php index 8deb15c..f727c59 100644 --- a/core/modules/search/search.api.php +++ b/core/modules/search/search.api.php @@ -20,7 +20,7 @@ * - Adding spaces between words of Chinese or Japanese text. * - Stemming words down to their root words to allow matches between, for * instance, walk, walked, walking, and walks in searching. - * - Expanding abbreviations and acronymns that occur in text. + * - Expanding abbreviations and acronyms that occur in text. * * @param $text * The text to preprocess. This is a single piece of plain text extracted diff --git a/core/modules/search/search.module b/core/modules/search/search.module index eef49c5..e4ff9b0 100644 --- a/core/modules/search/search.module +++ b/core/modules/search/search.module @@ -264,7 +264,7 @@ function search_simplify($text, $langcode = NULL) { $text = preg_replace('/([' . PREG_CLASS_NUMBERS . ']+)[' . PREG_CLASS_PUNCTUATION . ']+(?=[' . PREG_CLASS_NUMBERS . '])/u', '\1', $text); // Multiple dot and dash groups are word boundaries and replaced with space. - // No need to use the unicode modifer here because 0-127 ASCII characters + // No need to use the unicode modifier here because 0-127 ASCII characters // can't match higher UTF-8 characters as the leftmost bit of those are 1. $text = preg_replace('/[.-]{2,}/', ' ', $text); @@ -751,7 +751,7 @@ function _search_find_match_with_simplify($key, $text, $boundary, $langcode = NU $simplified_key = trim(search_simplify($key, $langcode)); $simplified_text = trim(search_simplify($text, $langcode)); if ($simplified_key == '' || $simplified_text == '' || strpos($simplified_text, $simplified_key) === FALSE) { - // The simplfied keyword and text do not match at all, or are empty. + // The simplified keyword and text do not match at all, or are empty. return NULL; } diff --git a/core/modules/search/src/Tests/SearchPreprocessLangcodeTest.php b/core/modules/search/src/Tests/SearchPreprocessLangcodeTest.php index 0093e6a..ce99627 100644 --- a/core/modules/search/src/Tests/SearchPreprocessLangcodeTest.php +++ b/core/modules/search/src/Tests/SearchPreprocessLangcodeTest.php @@ -7,7 +7,7 @@ namespace Drupal\search\Tests; /** - * Tests that the search prepocessing uses the correct language code. + * Tests that the search preprocessing uses the correct language code. * * @group search */ diff --git a/core/modules/search/src/Tests/SearchSimplifyTest.php b/core/modules/search/src/Tests/SearchSimplifyTest.php index a850750..2248848 100644 --- a/core/modules/search/src/Tests/SearchSimplifyTest.php +++ b/core/modules/search/src/Tests/SearchSimplifyTest.php @@ -20,7 +20,7 @@ function testSearchSimplifyUnicode() { // This test uses a file that was constructed so that the even lines are // boundary characters, and the odd lines are valid word characters. (It // was generated as a sequence of all the Unicode characters, and then the - // boundary chararacters (punctuation, spaces, etc.) were split off into + // boundary characters (punctuation, spaces, etc.) were split off into // their own lines). So the even-numbered lines should simplify to nothing, // and the odd-numbered lines we need to split into shorter chunks and // verify that simplification doesn't lose any characters. diff --git a/core/modules/serialization/src/Tests/SerializationTest.php b/core/modules/serialization/src/Tests/SerializationTest.php index 772999c..f52cb19 100644 --- a/core/modules/serialization/src/Tests/SerializationTest.php +++ b/core/modules/serialization/src/Tests/SerializationTest.php @@ -11,7 +11,7 @@ use Symfony\Component\Serializer\Exception\UnexpectedValueException; /** - * Funtional tests for serialization system. + * Functional tests for serialization system. * * @group serialization */ diff --git a/core/modules/simpletest/src/Tests/SimpleTestBrowserTest.php b/core/modules/simpletest/src/Tests/SimpleTestBrowserTest.php index 69712c3..a9551da 100644 --- a/core/modules/simpletest/src/Tests/SimpleTestBrowserTest.php +++ b/core/modules/simpletest/src/Tests/SimpleTestBrowserTest.php @@ -117,7 +117,7 @@ public function testUserAgentValidation() { } /** - * Tests that PHPUnit and KernalTestBase tests work through the UI. + * Tests that PHPUnit and KernelTestBase tests work through the UI. */ public function testTestingThroughUI() { // We can not test WebTestBase tests here since they require a valid .htkey @@ -126,7 +126,7 @@ public function testTestingThroughUI() { $this->drupalGet('admin/config/development/testing'); $edit = array( - // A KernalTestBase test. + // A KernelTestBase test. 'tests[Drupal\field\Tests\String\StringFormatterTest]' => TRUE, ); $this->drupalPostForm(NULL, $edit, t('Run tests')); diff --git a/core/modules/simpletest/src/Tests/SimpleTestTest.php b/core/modules/simpletest/src/Tests/SimpleTestTest.php index d2949a6..6bb098b 100644 --- a/core/modules/simpletest/src/Tests/SimpleTestTest.php +++ b/core/modules/simpletest/src/Tests/SimpleTestTest.php @@ -260,7 +260,7 @@ function getTestIdFromResults() { * @param string $type Assertion type. * @param string $status Assertion status. * @param string $file File where the assertion originated. - * @param string $functuion Function where the assertion originated. + * @param string $function Function where the assertion originated. * * @return Assertion result. */ diff --git a/core/modules/simpletest/src/WebTestBase.php b/core/modules/simpletest/src/WebTestBase.php index 5a6bba8..b0b3608 100644 --- a/core/modules/simpletest/src/WebTestBase.php +++ b/core/modules/simpletest/src/WebTestBase.php @@ -286,7 +286,7 @@ protected function drupalCreateContentType(array $values = array()) { * * Entities postpone the composition of their renderable arrays to #pre_render * functions in order to maximize cache efficacy. This means that the full - * rendable array for an entity is constructed in drupal_render(). Some tests + * renderable array for an entity is constructed in drupal_render(). Some tests * require the complete renderable array for an entity outside of the * drupal_render process in order to verify the presence of specific values. * This method isolates the steps in the render process that produce an @@ -849,7 +849,7 @@ protected function setUp() { $this->kernel = DrupalKernel::createFromRequest($request, $class_loader, 'prod', TRUE); $this->kernel->prepareLegacyRequest($request); // Force the container to be built from scratch instead of loaded from the - // disk. This forces us to not accidently load the parent site. + // disk. This forces us to not accidentally load the parent site. $container = $this->kernel->rebuildContainer(); $config = $container->get('config.factory'); diff --git a/core/modules/syslog/src/Logger/SysLog.php b/core/modules/syslog/src/Logger/SysLog.php index 8dbb618..80e4afd 100644 --- a/core/modules/syslog/src/Logger/SysLog.php +++ b/core/modules/syslog/src/Logger/SysLog.php @@ -19,7 +19,7 @@ class SysLog implements LoggerInterface { use LoggerTrait; /** - * A configuration object containin syslog settings. + * A configuration object containing syslog settings. * * @var \Drupal\Core\Config\Config */ diff --git a/core/modules/system/core.api.php b/core/modules/system/core.api.php index ddd4974..8b61d05 100644 --- a/core/modules/system/core.api.php +++ b/core/modules/system/core.api.php @@ -98,7 +98,7 @@ * REST requests can be authenticated. The Drupal Core Basic Auth module * provides authentication using the HTTP Basic protocol; contributed module * OAuth (https://www.drupal.org/project/oauth) implements the OAuth - * authenticaion protocol. You can also use cookie-based authentication, which + * authentication protocol. You can also use cookie-based authentication, which * would require users to be logged into the Drupal site while using the * application on the third-party site that is using the REST service. * @@ -294,7 +294,7 @@ * section, if your module allows users to create zero or more items (where * "items" are things like content type definitions, view definitions, and the * like), then you need to define a configuration entity type to store your - * configuration. Creating an entity type, loading entites, and querying them + * configuration. Creating an entity type, loading entities, and querying them * are outlined in the @link entity_api Entity API topic. @endlink Here are a * few additional steps and notes specific to configuration entities: * - For examples, look for classes that implement @@ -940,7 +940,7 @@ * @section running Running tests * You can run both Simpletest and PHPUnit tests by enabling the core Testing * module (core/modules/simpletest). Once that module is enabled, tests can be - * run usin the core/scripts/run-tests.sh script, using + * run using the core/scripts/run-tests.sh script, using * @link https://drupal.org/project/drush Drush @endlink, or from the Testing * module user interface. * @@ -1107,7 +1107,7 @@ * subdirectory. Most Drupal Core plugins use this method of discovery. * - Hook: Plugin modules need to implement a hook to tell the manager about * their plugins. - * - YAML: Plugins are listd in YAML files. Drupal Core uses this method for + * - YAML: Plugins are listed in YAML files. Drupal Core uses this method for * discovering local tasks and local actions. This is mainly useful if all * plugins use the same class, so it is kind of like a global derivative. * - Static: Plugin classes are registered within the plugin manager class @@ -1320,7 +1320,7 @@ * - Copy the function to your module's .module file. * - Change the name of the function, substituting your module's short name * (name of the module's directory, and .info.yml file without the extension) - * for the "hook" part of the sample function name. For instance, to implemnt + * for the "hook" part of the sample function name. For instance, to implement * hook_batch_alter(), you would rename it to my_module_batch_alter(). * - Edit the documentation for the function (normally, your implementation * should just have one line saying "Implements hook_batch_alter()."). diff --git a/core/modules/system/entity.api.php b/core/modules/system/entity.api.php index 18d9828..e23f90f 100644 --- a/core/modules/system/entity.api.php +++ b/core/modules/system/entity.api.php @@ -429,7 +429,7 @@ * $query_service = $container->get('entity.query'); * $query = $query_service->get('your_entity_type'); * @endcode - * If you need aggregation, there is an aggregate query avaialable, which + * If you need aggregation, there is an aggregate query available, which * implements \Drupal\Core\Entity\Query\QueryAggregateInterface: * @code * $query \Drupal::entityQueryAggregate('your_entity_type'); diff --git a/core/modules/system/src/Tests/Ajax/FrameworkTest.php b/core/modules/system/src/Tests/Ajax/FrameworkTest.php index 0928c2a..195787b 100644 --- a/core/modules/system/src/Tests/Ajax/FrameworkTest.php +++ b/core/modules/system/src/Tests/Ajax/FrameworkTest.php @@ -79,7 +79,7 @@ public function testOrder() { // Load any page with at least one CSS file, at least one JavaScript file // and at least one #ajax-powered element. The latter is an assumption of // drupalPostAjaxForm(), the two former are assumptions of - // AjaxReponse::ajaxRender(). + // AjaxResponse::ajaxRender(). // @todo refactor AJAX Framework + tests to make less assumptions. $this->drupalGet('ajax_forms_test_lazy_load_form'); diff --git a/core/modules/system/src/Tests/Cache/GenericCacheBackendUnitTestBase.php b/core/modules/system/src/Tests/Cache/GenericCacheBackendUnitTestBase.php index 23ddbdc..205b18d 100644 --- a/core/modules/system/src/Tests/Cache/GenericCacheBackendUnitTestBase.php +++ b/core/modules/system/src/Tests/Cache/GenericCacheBackendUnitTestBase.php @@ -16,7 +16,7 @@ * * Full generic unit test suite for any cache backend. In order to use it for a * cache backend implementation, extend this class and override the - * createBackendInstace() method to return an object. + * createBackendInstance() method to return an object. * * @see DatabaseBackendUnitTestCase * For a full working implementation. @@ -490,12 +490,12 @@ function testDeleteTags() { $this->assertTrue($this->getCacheBackend($bin)->get('test'), 'Cache item was set in bin.'); } - // Delete tag in mulitple bins. + // Delete tag in multiple bins. foreach ($bins as $bin) { $this->getCacheBackend($bin)->deleteTags(array('test_tag' => array(2))); } - // Test that cache entry has been deleted in multple bins. + // Test that cache entry has been deleted in multiple bins. foreach ($bins as $bin) { $this->assertFalse($this->getCacheBackend($bin)->get('test', TRUE), 'Tag deletion affected item in bin.'); } @@ -602,12 +602,12 @@ function testInvalidateTags() { $this->assertTrue($this->getCacheBackend($bin)->get('test'), 'Cache item was set in bin.'); } - // Invalidate tag in mulitple bins. + // Invalidate tag in multiple bins. foreach ($bins as $bin) { $this->getCacheBackend($bin)->invalidateTags(array('test_tag' => array(2))); } - // Test that cache entry has been invalidated in multple bins. + // Test that cache entry has been invalidated in multiple bins. foreach ($bins as $bin) { $this->assertFalse($this->getCacheBackend($bin)->get('test'), 'Tag invalidation affected item in bin.'); } diff --git a/core/modules/system/src/Tests/Common/MergeAttachmentsTest.php b/core/modules/system/src/Tests/Common/MergeAttachmentsTest.php index 7eebe32..a186ee2 100644 --- a/core/modules/system/src/Tests/Common/MergeAttachmentsTest.php +++ b/core/modules/system/src/Tests/Common/MergeAttachmentsTest.php @@ -17,7 +17,7 @@ class MergeAttachmentsTest extends DrupalUnitTestBase { /** - * Tests justs library asset merging. + * Tests just library asset merging. */ function testLibraryMerging() { $a['#attached'] = array( @@ -65,7 +65,7 @@ function testLibraryMerging() { } /** - * Tests justs CSS asset merging. + * Tests just CSS asset merging. */ function testCssMerging() { $a['#attached'] = array( @@ -112,7 +112,7 @@ function testCssMerging() { } /** - * Tests justs JavaScript asset merging. + * Tests just JavaScript asset merging. */ function testJsMerging() { $a['#attached'] = array( @@ -159,7 +159,7 @@ function testJsMerging() { } /** - * Tests justs JavaScript and JavaScript setting asset merging. + * Tests just JavaScript and JavaScript setting asset merging. */ function testJsSettingMerging() { $a['#attached'] = array( diff --git a/core/modules/system/src/Tests/Common/SimpleTestErrorCollectorTest.php b/core/modules/system/src/Tests/Common/SimpleTestErrorCollectorTest.php index ae419ff..bcc651c 100644 --- a/core/modules/system/src/Tests/Common/SimpleTestErrorCollectorTest.php +++ b/core/modules/system/src/Tests/Common/SimpleTestErrorCollectorTest.php @@ -26,7 +26,7 @@ class SimpleTestErrorCollectorTest extends WebTestBase { /** * Errors triggered during the test. * - * Errors are intercepted by the overriden implementation + * Errors are intercepted by the overridden implementation * of Drupal\simpletest\WebTestBase::error() below. * * @var Array diff --git a/core/modules/system/src/Tests/Common/TableSortExtenderUnitTest.php b/core/modules/system/src/Tests/Common/TableSortExtenderUnitTest.php index aa39b75..cd56716 100644 --- a/core/modules/system/src/Tests/Common/TableSortExtenderUnitTest.php +++ b/core/modules/system/src/Tests/Common/TableSortExtenderUnitTest.php @@ -26,7 +26,7 @@ function testTableSortInit() { // Test simple table headers. $headers = array('foo', 'bar', 'baz'); - // Reset $requesr->query to prevent parameters from Simpletest and Batch API + // Reset $request->query to prevent parameters from Simpletest and Batch API // ending up in $ts['query']. $expected_ts = array( 'name' => 'foo', diff --git a/core/modules/system/src/Tests/Condition/ConditionFormTest.php b/core/modules/system/src/Tests/Condition/ConditionFormTest.php index 2ccb51d..a33d83f 100644 --- a/core/modules/system/src/Tests/Condition/ConditionFormTest.php +++ b/core/modules/system/src/Tests/Condition/ConditionFormTest.php @@ -10,7 +10,7 @@ use Drupal\simpletest\WebTestBase; /** - * Tests that condtion plugins basic form handling is working. + * Tests that condition plugins basic form handling is working. * * Checks condition forms and submission and gives a very cursory check to make * sure the configuration that was submitted actually causes the condition to diff --git a/core/modules/system/src/Tests/Database/SelectPagerDefaultTest.php b/core/modules/system/src/Tests/Database/SelectPagerDefaultTest.php index 6c358f0..dd76968 100644 --- a/core/modules/system/src/Tests/Database/SelectPagerDefaultTest.php +++ b/core/modules/system/src/Tests/Database/SelectPagerDefaultTest.php @@ -127,7 +127,7 @@ function testHavingPagerQuery() { } /** - * Confirms that every pager gets a valid, non-overlaping element ID. + * Confirms that every pager gets a valid, non-overlapping element ID. */ function testElementNumbers() { diff --git a/core/modules/system/src/Tests/Database/SelectTest.php b/core/modules/system/src/Tests/Database/SelectTest.php index 26dd109..b67d106 100644 --- a/core/modules/system/src/Tests/Database/SelectTest.php +++ b/core/modules/system/src/Tests/Database/SelectTest.php @@ -220,7 +220,7 @@ function testIsNotNullCondition() { /** * Tests that we can UNION multiple Select queries together. * - * This is semantically equal to UNION DISTINCT, so we don't explicity test + * This is semantically equal to UNION DISTINCT, so we don't explicitly test * that. */ function testUnion() { diff --git a/core/modules/system/src/Tests/Entity/EntityAccessControlHandlerTest.php b/core/modules/system/src/Tests/Entity/EntityAccessControlHandlerTest.php index 76e87f4..20b69f0 100644 --- a/core/modules/system/src/Tests/Entity/EntityAccessControlHandlerTest.php +++ b/core/modules/system/src/Tests/Entity/EntityAccessControlHandlerTest.php @@ -2,7 +2,7 @@ /** * @file - * Contains \Drupal\system\Tests\Entity\EntityAccessHControlandlerTest. + * Contains \Drupal\system\Tests\Entity\EntityAccessHControlHandlerTest. */ namespace Drupal\system\Tests\Entity; diff --git a/core/modules/system/src/Tests/Entity/EntityQueryAggregateTest.php b/core/modules/system/src/Tests/Entity/EntityQueryAggregateTest.php index 08665b9..bcc3693 100644 --- a/core/modules/system/src/Tests/Entity/EntityQueryAggregateTest.php +++ b/core/modules/system/src/Tests/Entity/EntityQueryAggregateTest.php @@ -526,7 +526,7 @@ public function testAggregation() { array('field_test_1' => 1, 'field_test_2_count' => 2), )); - // Groupy and aggregate by fieldapi field, and sort by the aggregated field. + // Groupby and aggregate by fieldapi field, and sort by the aggregated field. $this->queryResult = $this->factory->getAggregate('entity_test') ->groupBy('field_test_1') ->sortAggregate('field_test_2', 'COUNT', 'DESC') diff --git a/core/modules/system/src/Tests/Entity/EntityTranslationTest.php b/core/modules/system/src/Tests/Entity/EntityTranslationTest.php index e6b67d5..751e595 100644 --- a/core/modules/system/src/Tests/Entity/EntityTranslationTest.php +++ b/core/modules/system/src/Tests/Entity/EntityTranslationTest.php @@ -329,7 +329,7 @@ function testEntityTranslationAPI() { $entity->name->value = $name; $this->assertEqual($translation->name->value, $name_translated, 'The translated name is retained after setting the original value.'); - // Save the translation and check that the expecte hooks are fired. + // Save the translation and check that the expected hooks are fired. $translation->save(); $hooks = $this->getHooksInfo(); $this->assertEqual($hooks['entity_translation_insert'], $langcode, 'The generic entity translation insertion hook has fired.'); @@ -471,7 +471,7 @@ function testLanguageFallback() { $entity->addTranslation($langcode, $values[$langcode]); $entity->save(); - // Check that retrieveing the current translation works as expected. + // Check that retrieving the current translation works as expected. $entity = $this->reloadEntity($entity); $translation = $this->entityManager->getTranslationFromContext($entity, $langcode2); $this->assertEqual($translation->language()->id, $default_langcode, 'The current translation language matches the expected one.'); diff --git a/core/modules/system/src/Tests/File/ScanDirectoryTest.php b/core/modules/system/src/Tests/File/ScanDirectoryTest.php index f0792d8..8e631d3 100644 --- a/core/modules/system/src/Tests/File/ScanDirectoryTest.php +++ b/core/modules/system/src/Tests/File/ScanDirectoryTest.php @@ -35,7 +35,7 @@ protected function setUp() { * Check the format of the returned values. */ function testReturn() { - // Grab a listing of all the JavaSscript files and check that they're + // Grab a listing of all the JavaScript files and check that they're // passed to the callback. $all_files = file_scan_directory($this->path, '/^javascript-/'); ksort($all_files); @@ -68,7 +68,7 @@ function testOptionCallback() { file_test_file_scan_callback_reset(); $this->assertEqual(0, count($results), 'No files were passed to the callback.'); - // Grab a listing of all the JavaSscript files and check that they're + // Grab a listing of all the JavaScript files and check that they're // passed to the callback. $all_files = file_scan_directory($this->path, '/^javascript-/', array('callback' => 'file_test_file_scan_callback')); $this->assertEqual(2, count($all_files), 'Found two, expected javascript files.'); @@ -81,11 +81,11 @@ function testOptionCallback() { * Check that the no-mask parameter is honored. */ function testOptionNoMask() { - // Grab a listing of all the JavaSscript files. + // Grab a listing of all the JavaScript files. $all_files = file_scan_directory($this->path, '/^javascript-/'); $this->assertEqual(2, count($all_files), 'Found two, expected javascript files.'); - // Now use the nomast parameter to filter out the .script file. + // Now use the nomask parameter to filter out the .script file. $filtered_files = file_scan_directory($this->path, '/^javascript-/', array('nomask' => '/.script$/')); $this->assertEqual(1, count($filtered_files), 'Filtered correctly.'); } @@ -120,7 +120,7 @@ function testOptionKey() { } /** - * Check that the recurse option decends into subdirectories. + * Check that the recurse option descends into subdirectories. */ function testOptionRecurse() { $files = file_scan_directory(drupal_get_path('module', 'simpletest'), '/^javascript-/', array('recurse' => FALSE)); diff --git a/core/modules/system/src/Tests/Form/ConfirmFormTest.php b/core/modules/system/src/Tests/Form/ConfirmFormTest.php index fcb4e61..d93a546 100644 --- a/core/modules/system/src/Tests/Form/ConfirmFormTest.php +++ b/core/modules/system/src/Tests/Form/ConfirmFormTest.php @@ -31,7 +31,7 @@ function testConfirmForm() { $this->assertText(t('ConfirmFormTestForm::getDescription().'), 'The description was used.'); $this->assertFieldByXPath('//input[@id="edit-submit"]', t('ConfirmFormTestForm::getConfirmText().'), 'The confirm text was used.'); - // Test canelling the form. + // Test cancelling the form. $this->clickLink(t('ConfirmFormTestForm::getCancelText().')); $this->assertUrl('form-test/autocomplete', array(), "The form's cancel link was followed."); diff --git a/core/modules/system/src/Tests/Form/ElementsLabelsTest.php b/core/modules/system/src/Tests/Form/ElementsLabelsTest.php index dbf13d2..db5dbee 100644 --- a/core/modules/system/src/Tests/Form/ElementsLabelsTest.php +++ b/core/modules/system/src/Tests/Form/ElementsLabelsTest.php @@ -24,7 +24,7 @@ class ElementsLabelsTest extends WebTestBase { public static $modules = array('form_test'); /** - * Test form elements, labels, title attibutes and required marks output + * Test form elements, labels, title attributes and required marks output * correctly and have the correct label option class if needed. */ function testFormLabels() { diff --git a/core/modules/system/src/Tests/KeyValueStore/DatabaseStorageExpirableTest.php b/core/modules/system/src/Tests/KeyValueStore/DatabaseStorageExpirableTest.php index 1f4bef7..592abcf 100644 --- a/core/modules/system/src/Tests/KeyValueStore/DatabaseStorageExpirableTest.php +++ b/core/modules/system/src/Tests/KeyValueStore/DatabaseStorageExpirableTest.php @@ -152,7 +152,7 @@ public function testExpiration() { $stores[0]->setWithExpireIfNotExists('yesterday', "you'd forgiven me", -1 * $day); $stores[0]->setWithExpire('still', "'til we say we're sorry", 2 * $day); - // Ensure only non-expired items are retrived. + // Ensure only non-expired items are retrieved. $all = $stores[0]->getAll(); $this->assertIdentical(count($all), 2); foreach (array('troubles', 'still') as $key) { diff --git a/core/modules/system/src/Tests/ParamConverter/UpcastingTest.php b/core/modules/system/src/Tests/ParamConverter/UpcastingTest.php index 0809777..e85c71a 100644 --- a/core/modules/system/src/Tests/ParamConverter/UpcastingTest.php +++ b/core/modules/system/src/Tests/ParamConverter/UpcastingTest.php @@ -21,7 +21,7 @@ class UpcastingTest extends WebTestBase { /** * Confirms that all parameters are converted as expected. * - * All of these requests end up being proccessed by a controller with this + * All of these requests end up being processed by a controller with this * the signature: f($user, $node, $foo) returning either values or labels * like "user: Dries, node: First post, foo: bar" * diff --git a/core/modules/system/src/Tests/System/ErrorHandlerTest.php b/core/modules/system/src/Tests/System/ErrorHandlerTest.php index 69f1760..230b7d8 100644 --- a/core/modules/system/src/Tests/System/ErrorHandlerTest.php +++ b/core/modules/system/src/Tests/System/ErrorHandlerTest.php @@ -112,7 +112,7 @@ function testExceptionHandler() { $this->drupalGet('error-test/trigger-pdo-exception'); $this->assertTrue(strpos($this->drupalGetHeader(':status'), '500 Service unavailable (with message)'), 'Received expected HTTP status line.'); - // We cannot use assertErrorMessage() since the extact error reported + // We cannot use assertErrorMessage() since the exact error reported // varies from database to database. Check that the SQL string is displayed. $this->assertText($error_pdo_exception['%type'], format_string('Found %type in error page.', $error_pdo_exception)); $this->assertText($error_pdo_exception['!message'], format_string('Found !message in error page.', $error_pdo_exception)); diff --git a/core/modules/system/src/Tests/Theme/EnginePhpTemplateTest.php b/core/modules/system/src/Tests/Theme/EnginePhpTemplateTest.php index 8cbde63..efccb8c 100644 --- a/core/modules/system/src/Tests/Theme/EnginePhpTemplateTest.php +++ b/core/modules/system/src/Tests/Theme/EnginePhpTemplateTest.php @@ -29,7 +29,7 @@ protected function setUp() { } /** - * Ensures a theme's template is overrideable based on the 'template' filename. + * Ensures a theme's template is overridable based on the 'template' filename. */ function testTemplateOverride() { \Drupal::config('system.theme') diff --git a/core/modules/system/src/Tests/Theme/ThemeTest.php b/core/modules/system/src/Tests/Theme/ThemeTest.php index bee40f1..8cb0f39 100644 --- a/core/modules/system/src/Tests/Theme/ThemeTest.php +++ b/core/modules/system/src/Tests/Theme/ThemeTest.php @@ -176,7 +176,7 @@ function testCSSOverride() { } /** - * Ensures a themes template is overrideable based on the 'template' filename. + * Ensures a themes template is overridable based on the 'template' filename. */ function testTemplateOverride() { \Drupal::config('system.theme') diff --git a/core/modules/system/src/Tests/Transliteration/TransliterationTest.php b/core/modules/system/src/Tests/Transliteration/TransliterationTest.php index 5c9add1..2178ebb 100644 --- a/core/modules/system/src/Tests/Transliteration/TransliterationTest.php +++ b/core/modules/system/src/Tests/Transliteration/TransliterationTest.php @@ -31,7 +31,7 @@ public function testPHPTransliteration() { // Make some strings with two, three, and four-byte characters for testing. // Note that the 3-byte character is overridden by the 'kg' language. $two_byte = 'Ä Ö Ü Å Ø äöüåøhello'; - // This is a Cyrrillic character that looks something like a u. See + // This is a Cyrillic character that looks something like a u. See // http://www.unicode.org/charts/PDF/U0400.pdf $three_byte = html_entity_decode('ц', ENT_NOQUOTES, 'UTF-8'); // This is a Canadian Aboriginal character like a triangle. See diff --git a/core/modules/system/system.admin.inc b/core/modules/system/system.admin.inc index 57edc26..42e126c 100644 --- a/core/modules/system/system.admin.inc +++ b/core/modules/system/system.admin.inc @@ -230,7 +230,7 @@ function theme_system_modules_details($variables) { $row[] = array('class' => array('checkbox'), 'data' => drupal_render($module['enable'])); - // Add the module label and expand/collapse functionalty. + // Add the module label and expand/collapse functionality. $col2 = ''; $row[] = array('class' => array('module'), 'data' => SafeMarkup::set($col2)); diff --git a/core/modules/system/system.api.php b/core/modules/system/system.api.php index 3c3020f..c7bba08 100644 --- a/core/modules/system/system.api.php +++ b/core/modules/system/system.api.php @@ -102,7 +102,7 @@ function hook_data_type_info_alter(&$data_types) { * Alter cron queue information before cron runs. * * Called by \Drupal\Core\Cron to allow modules to alter cron queue settings - * before any jobs are processesed. + * before any jobs are processed. * * @param array $queues * An array of cron queue information. diff --git a/core/modules/system/tests/modules/form_test/src/Form/FormTestPatternForm.php b/core/modules/system/tests/modules/form_test/src/Form/FormTestPatternForm.php index 8a022b4..22d283e 100644 --- a/core/modules/system/tests/modules/form_test/src/Form/FormTestPatternForm.php +++ b/core/modules/system/tests/modules/form_test/src/Form/FormTestPatternForm.php @@ -11,7 +11,7 @@ use Drupal\Core\Form\FormStateInterface; /** - * Builds a simple form using the FAPI #pattern proterty. + * Builds a simple form using the FAPI #pattern property. */ class FormTestPatternForm extends FormBase { diff --git a/core/modules/system/tests/modules/theme_test/src/ThemeTestController.php b/core/modules/system/tests/modules/theme_test/src/ThemeTestController.php index caf9533..bf4a0a9 100644 --- a/core/modules/system/tests/modules/theme_test/src/ThemeTestController.php +++ b/core/modules/system/tests/modules/theme_test/src/ThemeTestController.php @@ -50,7 +50,7 @@ public function testInfoStylesheets() { } /** - * Tests template overridding based on filename. + * Tests template overriding based on filename. * * @return array * A render array containing a theme override. diff --git a/core/modules/system/tests/modules/url_alter_test/url_alter_test.install b/core/modules/system/tests/modules/url_alter_test/url_alter_test.install index eb4864f..5a2054e 100644 --- a/core/modules/system/tests/modules/url_alter_test/url_alter_test.install +++ b/core/modules/system/tests/modules/url_alter_test/url_alter_test.install @@ -1,7 +1,7 @@ drupalPostForm('admin/structure/taxonomy/manage/' . $this->vocabulary->get('vid' ) . '/overview', $edit, t('Save')); - // All terms back at the root level, no identation should be present. + // All terms back at the root level, no indentation should be present. $this->assertNoPattern('|
 
|'); // Check explicitly that term 2 has no parents. diff --git a/core/modules/telephone/src/Tests/TelephoneFieldTest.php b/core/modules/telephone/src/Tests/TelephoneFieldTest.php index d95f951..835887b 100644 --- a/core/modules/telephone/src/Tests/TelephoneFieldTest.php +++ b/core/modules/telephone/src/Tests/TelephoneFieldTest.php @@ -45,7 +45,7 @@ protected function setUp() { */ function testTelephoneField() { - // Add the telepone field to the article content type. + // Add the telephone field to the article content type. entity_create('field_storage_config', array( 'name' => 'field_telephone', 'entity_type' => 'node', @@ -79,7 +79,7 @@ function testTelephoneField() { $this->assertFieldByName("field_telephone[0][value]", '', 'Widget found.'); $this->assertRaw('placeholder="123-456-7890"'); - // Test basic entery of telephone field. + // Test basic entry of telephone field. $edit = array( 'title[0][value]' => $this->randomMachineName(), 'field_telephone[0][value]' => "123456789", diff --git a/core/modules/toolbar/toolbar.api.php b/core/modules/toolbar/toolbar.api.php index ab9b75a..2e1588e 100644 --- a/core/modules/toolbar/toolbar.api.php +++ b/core/modules/toolbar/toolbar.api.php @@ -114,7 +114,7 @@ function hook_toolbar() { '#weight' => 150, ); - // The tray can be used to render arbritrary content. + // The tray can be used to render arbitrary content. // // A renderable array passed to the 'tray' property will be rendered outside // the administration bar but within the containing toolbar element. diff --git a/core/modules/update/update.manager.inc b/core/modules/update/update.manager.inc index 1faf7fd..2157821 100644 --- a/core/modules/update/update.manager.inc +++ b/core/modules/update/update.manager.inc @@ -26,7 +26,7 @@ * batch operation is responsible for downloading a single file, extracting the * archive, and verifying the contents. If there are any errors, the user is * redirected back to the first page with the error messages. If all downloads - * were extacted and verified, the user is instead redirected to + * were extracted and verified, the user is instead redirected to * admin/update/ready, a landing page which reminds them to backup their * database and asks if they want to put the site offline during the update. * Once the user presses the "Install updates" button, they are redirected to diff --git a/core/modules/user/src/Plugin/views/field/Link.php b/core/modules/user/src/Plugin/views/field/Link.php index 40ff364..56c30f2 100644 --- a/core/modules/user/src/Plugin/views/field/Link.php +++ b/core/modules/user/src/Plugin/views/field/Link.php @@ -84,7 +84,7 @@ public function render(ResultRow $values) { * The current row of the views result. * * @return string - * The acutal rendered text (without the link) of this field. + * The actual rendered text (without the link) of this field. */ protected function renderLink(EntityInterface $entity, ResultRow $values) { $text = !empty($this->options['text']) ? $this->options['text'] : t('View'); diff --git a/core/modules/user/src/Plugin/views/field/Name.php b/core/modules/user/src/Plugin/views/field/Name.php index 5396bc6..9b79d71 100644 --- a/core/modules/user/src/Plugin/views/field/Name.php +++ b/core/modules/user/src/Plugin/views/field/Name.php @@ -85,7 +85,7 @@ protected function renderLink($data, ResultRow $values) { $account->name = $this->getValue($values); if (!empty($this->options['link_to_user']) || !empty($this->options['overwrite_anonymous'])) { if (!empty($this->options['overwrite_anonymous']) && !$account->id()) { - // This is an anonymous user, and we're overriting the text. + // This is an anonymous user, and we're overwriting the text. return String::checkPlain($this->options['anonymous_text']); } elseif (!empty($this->options['link_to_user'])) { diff --git a/core/modules/user/src/Tests/Views/HandlerFilterPermissionTest.php b/core/modules/user/src/Tests/Views/HandlerFilterPermissionTest.php index 49af462..27a7715 100644 --- a/core/modules/user/src/Tests/Views/HandlerFilterPermissionTest.php +++ b/core/modules/user/src/Tests/Views/HandlerFilterPermissionTest.php @@ -80,15 +80,15 @@ public function testFilterPermission() { // Test the value options. $value_options = $view->filter['permission']->getValueOptions(); - $permisssion_by_module = []; + $permission_by_module = []; $permissions = \Drupal::service('user.permissions')->getPermissions(); foreach ($permissions as $name => $permission) { - $permisssion_by_module[$permission['provider']][$name] = $permission; + $permission_by_module[$permission['provider']][$name] = $permission; } foreach (array('system' => 'System', 'user' => 'User') as $module => $title) { $expected = array_map(function ($permission) { return String::checkPlain(strip_tags($permission['title'])); - }, $permisssion_by_module[$module]); + }, $permission_by_module[$module]); $this->assertEqual($expected, $value_options[$title], 'Ensure the all permissions are available'); } diff --git a/core/modules/user/user.install b/core/modules/user/user.install index eca1692..e4fafd5 100644 --- a/core/modules/user/user.install +++ b/core/modules/user/user.install @@ -77,7 +77,7 @@ function user_install() { )) ->save(); - // We need some placeholders here as name and mail are uniques. + // We need some placeholders here as name and mail are unique. // This will be changed by the settings form in the installer. $storage ->create(array( diff --git a/core/modules/views/src/Ajax/ScrollTopCommand.php b/core/modules/views/src/Ajax/ScrollTopCommand.php index fe2f6d1..4c7c4be 100644 --- a/core/modules/views/src/Ajax/ScrollTopCommand.php +++ b/core/modules/views/src/Ajax/ScrollTopCommand.php @@ -10,7 +10,7 @@ use Drupal\Core\Ajax\CommandInterface; /** - * Provides an AJAX command for scolling to the top of an element. + * Provides an AJAX command for scrolling to the top of an element. * * This command is implemented in Drupal.AjaxCommands.prototype.viewsScrollTop. */ diff --git a/core/modules/views/src/Plugin/views/HandlerBase.php b/core/modules/views/src/Plugin/views/HandlerBase.php index 964ce9c..6ff0862 100644 --- a/core/modules/views/src/Plugin/views/HandlerBase.php +++ b/core/modules/views/src/Plugin/views/HandlerBase.php @@ -133,7 +133,7 @@ public function init(ViewExecutable $view, DisplayPluginBase $display, array &$o $this->table = $options['table']; } - // Allow alliases on both fields and tables. + // Allow aliases on both fields and tables. if (isset($this->definition['real table'])) { $this->table = $this->definition['real table']; } @@ -517,7 +517,7 @@ public function setRelationship() { // Ensure this gets set to something. $this->relationship = NULL; - // Don't process non-existant relationships. + // Don't process non-existent relationships. if (empty($this->options['relationship']) || $this->options['relationship'] == 'none') { return; } diff --git a/core/modules/views/src/Plugin/views/area/TokenizeAreaPluginBase.php b/core/modules/views/src/Plugin/views/area/TokenizeAreaPluginBase.php index 9cf0988..89d3c15 100644 --- a/core/modules/views/src/Plugin/views/area/TokenizeAreaPluginBase.php +++ b/core/modules/views/src/Plugin/views/area/TokenizeAreaPluginBase.php @@ -13,7 +13,7 @@ * Tokenized base class for area handlers. * * This class provides a method tokenizeValue() to tokenize a given value with - * the tokens of the first view result and additionally apllies global token + * the tokens of the first view result and additionally applies global token * replacement to the passed value. The form elements to enable the replacement * functionality is automatically added to the buildOptionsForm(). * diff --git a/core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php b/core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php index da87ade..39df6ea 100644 --- a/core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php +++ b/core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php @@ -647,7 +647,7 @@ public function defaultAction($info = NULL) { } /** - * How to act if validation failes + * How to act if validation fails */ public function validateFail() { $info = $this->defaultActions($this->options['validate']['fail']); @@ -845,7 +845,7 @@ public function summaryBasics($count_field = TRUE) { /** * Sorts the summary based upon the user's selection. The base variant of - * this is usually adequte. + * this is usually adequate. * * @param $order * The order selected in the UI. @@ -975,7 +975,7 @@ public function getValue() { return $this->argument; } - // Otherwise, we have to pretend to process ourself to find the value. + // Otherwise, we have to pretend to process ourselves to find the value. $value = NULL; // Find the position of this argument within the view. $position = 0; @@ -1140,10 +1140,10 @@ public static function encodeValidatorId($id) { } /** - * Revert sanititized validator options. + * Revert sanitized validator options. * * @param string $id - * The santitized identifier to be reverted. + * The sanitized identifier to be reverted. * * @return string * The original identifier. diff --git a/core/modules/views/src/Plugin/views/argument_validator/ArgumentValidatorPluginBase.php b/core/modules/views/src/Plugin/views/argument_validator/ArgumentValidatorPluginBase.php index 2aa3344..915fdc2 100644 --- a/core/modules/views/src/Plugin/views/argument_validator/ArgumentValidatorPluginBase.php +++ b/core/modules/views/src/Plugin/views/argument_validator/ArgumentValidatorPluginBase.php @@ -102,7 +102,7 @@ public function validateArgument($arg) { return TRUE; } /** * Process the summary arguments for displaying. * - * Some plugins alter the argument so it uses something else interal. + * Some plugins alter the argument so it uses something else internal. * For example the user validation set's the argument to the uid, * for a faster query. But there are use cases where you want to use * the old value again, for example the summary. diff --git a/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php b/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php index 22e8d16..03c7c72 100644 --- a/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php +++ b/core/modules/views/src/Plugin/views/display/DisplayPluginBase.php @@ -732,7 +732,7 @@ public function hasPath() { return FALSE; } public function usesLinkDisplay() { return !$this->hasPath(); } /** - * Check to see if the display can put the exposed formin a block. + * Check to see if the display can put the exposed form in a block. * * By default, displays that do not have a path cannot disconnect * the exposed form and put it in a block, because the form has no @@ -1386,7 +1386,7 @@ public function buildOptionsForm(&$form, FormStateInterface $form_state) { } $form['#title'] = String::checkPlain($this->display['display_title']) . ': '; - // Set the 'section' to hilite on the form. + // Set the 'section' to highlight on the form. // If it's the item we're looking at is pulling from the default display, // reflect that. Don't use is_defaulted since we want it to show up even // on the default display. @@ -2080,7 +2080,7 @@ public function query() { public function renderFilters() { } /** - * Not all display plugins will suppert pager rendering. + * Not all display plugins will support pager rendering. */ public function renderPager() { return TRUE; @@ -2494,7 +2494,7 @@ public function viewExposedFormBlocks() { * The result should contain of an array with * - filter value present: The title of the fieldset in the argument * where you can configure what should be done with a given argument. - * - filter value not present: The tiel of the fieldset in the argument + * - filter value not present: The title of the fieldset in the argument * where you can configure what should be done if the argument does not * exist. * - description: A description about how arguments comes to the display. diff --git a/core/modules/views/src/Plugin/views/display/Embed.php b/core/modules/views/src/Plugin/views/display/Embed.php index 8169921..1175c47 100644 --- a/core/modules/views/src/Plugin/views/display/Embed.php +++ b/core/modules/views/src/Plugin/views/display/Embed.php @@ -12,7 +12,7 @@ * * @ingroup views_display_plugins * - * @todo: Wait until annotations/plugins support access mehtods. + * @todo: Wait until annotations/plugins support access methods. * no_ui => !\Drupal::config('views.settings')->get('ui.show.display_embed'), * * @ViewsDisplay( diff --git a/core/modules/views/src/Plugin/views/exposed_form/ExposedFormPluginBase.php b/core/modules/views/src/Plugin/views/exposed_form/ExposedFormPluginBase.php index 121fb94..02825e3 100644 --- a/core/modules/views/src/Plugin/views/exposed_form/ExposedFormPluginBase.php +++ b/core/modules/views/src/Plugin/views/exposed_form/ExposedFormPluginBase.php @@ -286,7 +286,7 @@ public function exposedFormValidate(&$form, FormStateInterface $form_state) { } /** - * This function is executed when exposed form is submited. + * This function is executed when exposed form is submitted. * * @param $form * Nested array of form elements that comprise the form. diff --git a/core/modules/views/src/Plugin/views/field/FieldPluginBase.php b/core/modules/views/src/Plugin/views/field/FieldPluginBase.php index 51eebc4..17ed649 100644 --- a/core/modules/views/src/Plugin/views/field/FieldPluginBase.php +++ b/core/modules/views/src/Plugin/views/field/FieldPluginBase.php @@ -1452,7 +1452,7 @@ protected function renderAsLink($alter, $text, $tokens) { } } - // If the query and fragment were programatically assigned overwrite any + // If the query and fragment were programmatically assigned overwrite any // parsed values. if (isset($alter['query'])) { // Convert the query to a string, perform token replacement, and then diff --git a/core/modules/views/src/Plugin/views/field/MachineName.php b/core/modules/views/src/Plugin/views/field/MachineName.php index 4b3521b..202ba67 100644 --- a/core/modules/views/src/Plugin/views/field/MachineName.php +++ b/core/modules/views/src/Plugin/views/field/MachineName.php @@ -12,7 +12,7 @@ use Drupal\views\ResultRow; /** - * Field handler whichs allows to show machine name content as human name. + * Field handler which allows to show machine name content as human name. * @ingroup views_field_handlers * * Definition items: diff --git a/core/modules/views/src/Plugin/views/filter/Date.php b/core/modules/views/src/Plugin/views/filter/Date.php index 8f0778a..2ff7baf 100644 --- a/core/modules/views/src/Plugin/views/filter/Date.php +++ b/core/modules/views/src/Plugin/views/filter/Date.php @@ -108,7 +108,7 @@ public function validateValidTime(&$form, FormStateInterface $form_state, $opera protected function buildGroupValidate($form, FormStateInterface $form_state) { // Special case to validate grouped date filters, this is because the // $group['value'] array contains the type of filter (date or offset) - // and therefore the number of items the comparission has to be done + // and therefore the number of items the comparison has to be done // against 'one' instead of 'zero'. foreach ($form_state->getValue(array('options', 'group_info', 'group_items')) as $id => $group) { if (empty($group['remove'])) { diff --git a/core/modules/views/src/Plugin/views/filter/FilterPluginBase.php b/core/modules/views/src/Plugin/views/filter/FilterPluginBase.php index 602ecfe..448f5d4 100644 --- a/core/modules/views/src/Plugin/views/filter/FilterPluginBase.php +++ b/core/modules/views/src/Plugin/views/filter/FilterPluginBase.php @@ -57,7 +57,7 @@ var $operator = '='; /** - * Contains the information of the selected item in a gruped filter. + * Contains the information of the selected item in a grouped filter. */ var $group_info = NULL; @@ -1308,7 +1308,7 @@ public function storeGroupInput($input, $status) { // know where to look for session stored values. $display_id = ($this->view->display_handler->isDefaulted('filters')) ? 'default' : $this->view->current_display; - // false means that we got a setting that means to recuse ourselves, + // false means that we got a setting that means to recurse ourselves, // so we should erase whatever happened to be there. if ($status === FALSE && isset($_SESSION['views'][$this->view->storage->id()][$display_id])) { $session = &$_SESSION['views'][$this->view->storage->id()][$display_id]; @@ -1400,7 +1400,7 @@ public function storeExposedInput($input, $status) { // shortcut test. $operator = !empty($this->options['expose']['use_operator']) && !empty($this->options['expose']['operator_id']); - // false means that we got a setting that means to recuse ourselves, + // false means that we got a setting that means to recurse ourselves, // so we should erase whatever happened to be there. if (!$status && isset($_SESSION['views'][$this->view->storage->id()][$display_id])) { $session = &$_SESSION['views'][$this->view->storage->id()][$display_id]; diff --git a/core/modules/views/src/Plugin/views/filter/InOperator.php b/core/modules/views/src/Plugin/views/filter/InOperator.php index 4d442b8..f3e64bf 100644 --- a/core/modules/views/src/Plugin/views/filter/InOperator.php +++ b/core/modules/views/src/Plugin/views/filter/InOperator.php @@ -336,7 +336,7 @@ public function adminSummary() { unset($this->value[$value]); } } - // Choose different kind of ouput for 0, a single and multiple values. + // Choose different kind of output for 0, a single and multiple values. if (count($this->value) == 0) { $values = t('Unknown'); } @@ -436,7 +436,7 @@ public function validate() { unset($this->value[$value]); } } - // Choose different kind of ouput for 0, a single and multiple values. + // Choose different kind of output for 0, a single and multiple values. if (count($this->value) == 0) { $errors[] = t('No valid values found on filter: @filter.', array('@filter' => $this->adminLabel(TRUE))); } diff --git a/core/modules/views/src/Plugin/views/filter/ManyToOne.php b/core/modules/views/src/Plugin/views/filter/ManyToOne.php index bd5c1ee..7604c98 100644 --- a/core/modules/views/src/Plugin/views/filter/ManyToOne.php +++ b/core/modules/views/src/Plugin/views/filter/ManyToOne.php @@ -17,7 +17,7 @@ * such as terms (many terms per node) or roles (many roles per user). * * The construct method needs to be overridden to provide a list of options; - * alternately, the valueForm and adminSummary methods need to be overriden + * alternately, the valueForm and adminSummary methods need to be overridden * to provide something that isn't just a select list. * * @ingroup views_filter_handlers diff --git a/core/modules/views/src/Plugin/views/query/Sql.php b/core/modules/views/src/Plugin/views/query/Sql.php index 61dbfb7..eb3b9bf 100644 --- a/core/modules/views/src/Plugin/views/query/Sql.php +++ b/core/modules/views/src/Plugin/views/query/Sql.php @@ -151,7 +151,7 @@ public function init(ViewExecutable $view, DisplayPluginBase $display, array &$o * Set the view to be distinct (per base field). * * @param bool $value - * Should the view by distincted. + * Should the view be distincted. */ protected function setDistinct($value = TRUE) { if (!(isset($this->noDistinct) && $value)) { @@ -607,7 +607,7 @@ protected function ensurePath($table, $relationship = NULL, $join = NULL, $trace // Have we been this way? if (isset($traced[$join->leftTable])) { - // we looped. Broked. + // we looped. Broken. return FALSE; } diff --git a/core/modules/views/src/Plugin/views/relationship/GroupwiseMax.php b/core/modules/views/src/Plugin/views/relationship/GroupwiseMax.php index e6d67f6..8e3854b 100644 --- a/core/modules/views/src/Plugin/views/relationship/GroupwiseMax.php +++ b/core/modules/views/src/Plugin/views/relationship/GroupwiseMax.php @@ -119,7 +119,7 @@ public function buildOptionsForm(&$form, FormStateInterface $form_state) { ); - // WIP: This stuff doens't work yet: namespacing issues. + // WIP: This stuff doesn't work yet: namespacing issues. // A list of suitable views to pick one as the subview. $views = array('' => '- None -'); $all_views = Views::getAllViews(); diff --git a/core/modules/views/src/Plugin/views/style/StylePluginBase.php b/core/modules/views/src/Plugin/views/style/StylePluginBase.php index 4b79f84..68b21f8 100644 --- a/core/modules/views/src/Plugin/views/style/StylePluginBase.php +++ b/core/modules/views/src/Plugin/views/style/StylePluginBase.php @@ -613,7 +613,7 @@ public function renderGrouping($records, $groupings = array(), $group_rendered = ); } - // If this parameter isn't explicitely set modify the output to be fully + // If this parameter isn't explicitly set modify the output to be fully // backward compatible to code before Views 7.x-3.0-rc2. // @TODO Remove this as soon as possible e.g. October 2020 if ($group_rendered === NULL) { diff --git a/core/modules/views/src/Plugin/views/wizard/WizardPluginBase.php b/core/modules/views/src/Plugin/views/wizard/WizardPluginBase.php index a989be7..0ac1c31 100644 --- a/core/modules/views/src/Plugin/views/wizard/WizardPluginBase.php +++ b/core/modules/views/src/Plugin/views/wizard/WizardPluginBase.php @@ -1007,7 +1007,7 @@ protected function defaultDisplaySortsUser($form, FormStateInterface $form_state // 'none'. if (($sort_type = $form_state->getValue(array('show', 'sort'))) && $sort_type != 'none') { list($column, $sort) = explode(':', $sort_type); - // Column either be a column-name or the table-columnn-ame. + // Column either be a column-name or the table-column-name. $column = explode('-', $column); if (count($column) > 1) { $table = $column[0]; diff --git a/core/modules/views/src/Tests/GlossaryTest.php b/core/modules/views/src/Tests/GlossaryTest.php index 4518aae..a53602a 100644 --- a/core/modules/views/src/Tests/GlossaryTest.php +++ b/core/modules/views/src/Tests/GlossaryTest.php @@ -28,7 +28,7 @@ class GlossaryTest extends ViewTestBase { * Tests the default glossary view. */ public function testGlossaryView() { - // create a contentype and add some nodes, with a non random title. + // create a content type and add some nodes, with a non random title. $type = $this->drupalCreateContentType(); $nodes_per_char = array( 'd' => 1, diff --git a/core/modules/views/src/Tests/Handler/FilterStringTest.php b/core/modules/views/src/Tests/Handler/FilterStringTest.php index bcf84a7..cabdeda 100644 --- a/core/modules/views/src/Tests/Handler/FilterStringTest.php +++ b/core/modules/views/src/Tests/Handler/FilterStringTest.php @@ -470,7 +470,7 @@ function testFilterStringGroupedExposedEnds() { $filters = $this->getGroupedExposedFilters(); $view = $this->getBasicPageView(); - // Filter: Descriptino, Operator: ends, Value: Beatles + // Filter: Description, Operator: ends, Value: Beatles $filters['description']['group_info']['default_group'] = 4; $view->setDisplay('page_1'); $view->displayHandlers->get('page_1')->overrideOption('filters', $filters); diff --git a/core/modules/views/src/Tests/Handler/HandlerAllTest.php b/core/modules/views/src/Tests/Handler/HandlerAllTest.php index ba83c54..779457c 100644 --- a/core/modules/views/src/Tests/Handler/HandlerAllTest.php +++ b/core/modules/views/src/Tests/Handler/HandlerAllTest.php @@ -86,7 +86,7 @@ public function testHandlers() { } } - // Go through each step invidiually to see whether some parts are failing. + // Go through each step individually to see whether some parts are failing. $view->build(); $view->preExecute(); $view->execute(); diff --git a/core/modules/views/src/Tests/Plugin/StyleTest.php b/core/modules/views/src/Tests/Plugin/StyleTest.php index 957f8f8..e7abd73 100644 --- a/core/modules/views/src/Tests/Plugin/StyleTest.php +++ b/core/modules/views/src/Tests/Plugin/StyleTest.php @@ -43,7 +43,7 @@ protected function setUp() { } /** - * Tests the general renderering of styles. + * Tests the general rendering of styles. */ public function testStyle() { // This run use the test row plugin and render with it. diff --git a/core/modules/views/src/Tests/ViewExecutableTest.php b/core/modules/views/src/Tests/ViewExecutableTest.php index fd7f628..ed37d44 100644 --- a/core/modules/views/src/Tests/ViewExecutableTest.php +++ b/core/modules/views/src/Tests/ViewExecutableTest.php @@ -94,7 +94,7 @@ protected function setUpFixtures() { } /** - * Tests the views.exectuable container service. + * Tests the views.executable container service. */ public function testFactoryService() { $factory = $this->container->get('views.executable'); diff --git a/core/modules/views/src/Tests/ViewStorageTest.php b/core/modules/views/src/Tests/ViewStorageTest.php index fc78a9e..247a11d 100644 --- a/core/modules/views/src/Tests/ViewStorageTest.php +++ b/core/modules/views/src/Tests/ViewStorageTest.php @@ -259,7 +259,7 @@ protected function displayMethodTests() { $display_id = 'default'; $expected_items = array(); // Tests addHandler with getItem. - // Therefore add one item without any optioins and one item with some + // Therefore add one item without any options and one item with some // options. $id1 = $view->addHandler($display_id, 'field', 'views_test_data', 'id'); $item1 = $view->getHandler($display_id, 'field', 'id'); diff --git a/core/modules/views/src/Tests/ViewTestBase.php b/core/modules/views/src/Tests/ViewTestBase.php index 82e42e2..0c57e09 100644 --- a/core/modules/views/src/Tests/ViewTestBase.php +++ b/core/modules/views/src/Tests/ViewTestBase.php @@ -215,7 +215,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 successful, or FALSE on failure. + * TRUE if the assertion 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/src/ViewExecutable.php b/core/modules/views/src/ViewExecutable.php index 94fbcc0..7f99c23 100644 --- a/core/modules/views/src/ViewExecutable.php +++ b/core/modules/views/src/ViewExecutable.php @@ -1918,7 +1918,7 @@ public function addHandler($display_id, $type, $table, $field, $options = array( * @param string $requested_id * The requested ID for the handler instance. * @param array $existing_items - * An array of existing handler instancess, keyed by their IDs. + * An array of existing handler instances, keyed by their IDs. * * @return string * A unique ID. This will be equal to $requested_id if no handler instance diff --git a/core/modules/views/tests/modules/views_test_data/src/Plugin/views/display/DisplayTest.php b/core/modules/views/tests/modules/views_test_data/src/Plugin/views/display/DisplayTest.php index 5eefaf1..6067604 100644 --- a/core/modules/views/tests/modules/views_test_data/src/Plugin/views/display/DisplayTest.php +++ b/core/modules/views/tests/modules/views_test_data/src/Plugin/views/display/DisplayTest.php @@ -50,7 +50,7 @@ protected function defineOptions() { } /** - * Overrides Drupal\views\Plugin\views\display\DisplayPluginBase::optionsSummaryv(). + * Overrides Drupal\views\Plugin\views\display\DisplayPluginBase::optionsSummary(). */ public function optionsSummary(&$categories, &$options) { parent::optionsSummary($categories, $options); diff --git a/core/modules/views/tests/modules/views_test_data/src/Plugin/views/query/QueryTest.php b/core/modules/views/tests/modules/views_test_data/src/Plugin/views/query/QueryTest.php index 5a1b61b..6429763 100644 --- a/core/modules/views/tests/modules/views_test_data/src/Plugin/views/query/QueryTest.php +++ b/core/modules/views/tests/modules/views_test_data/src/Plugin/views/query/QueryTest.php @@ -91,7 +91,7 @@ public function ensureTable($table, $relationship = NULL, JoinPluginBase $join = public function build(ViewExecutable $view) { $this->view = $view; // @todo Support pagers for know, a php based one would probably match. - // @todo You could add a string representatin of the query. + // @todo You could add a string representation of the query. $this->view->build_info['query'] = ""; $this->view->build_info['count_query'] = ""; } diff --git a/core/modules/views/tests/src/Unit/Plugin/pager/PagerPluginBaseTest.php b/core/modules/views/tests/src/Unit/Plugin/pager/PagerPluginBaseTest.php index a9a0f24..8aa6c7a 100644 --- a/core/modules/views/tests/src/Unit/Plugin/pager/PagerPluginBaseTest.php +++ b/core/modules/views/tests/src/Unit/Plugin/pager/PagerPluginBaseTest.php @@ -249,7 +249,7 @@ public function testExecuteCountQueryWithOffset() { } -// As StatementInterface extends \Transversable, which though always needs +// As StatementInterface extends \Traversable, which though always needs // an additional interface. The Statement class itself can't be mocked because // of its __wakeup function. interface TestStatementInterface extends StatementInterface, \Iterator {} diff --git a/core/modules/views/views.api.php b/core/modules/views/views.api.php index 5534df6..b48d18e 100644 --- a/core/modules/views/views.api.php +++ b/core/modules/views/views.api.php @@ -27,7 +27,7 @@ * entity, create a class implementing * \Drupal\views\EntityViewsDataInterface and reference this in the * "views_data" annotation in the entity class. You can autogenerate big parts - * of the ingration if you extend the \Drupal\views\EntityViewsData base + * of the integration if you extend the \Drupal\views\EntityViewsData base * class. See the @link entity_api Entity API topic @endlink for more * information about entities. * - Implement hooks: A few operations in Views can be influenced by hooks. @@ -633,7 +633,7 @@ function hook_views_pre_view(ViewExecutable $view, $display_id, array &$args) { * @see \Drupal\views\ViewExecutable */ function hook_views_pre_build(ViewExecutable $view) { - // Because of some unexplicable business logic, we should remove all + // Because of some inexplicable business logic, we should remove all // attachments from all views on Mondays. // (This alter could be done later in the execution process as well.) if (date('D') == 'Mon') { diff --git a/core/modules/views/views.module b/core/modules/views/views.module index 0de48d4..94c8969 100644 --- a/core/modules/views/views.module +++ b/core/modules/views/views.module @@ -805,7 +805,7 @@ function views_query_views_alter(AlterableInterface $query) { $tables = &$query->getTables(); $where = &$query->conditions(); - // Replaces substitions in tables. + // Replaces substitutions in tables. foreach ($tables as $table_name => $table_metadata) { foreach ($table_metadata['arguments'] as $replacement_key => $value) { if (isset($substitutions[$value])) { @@ -814,7 +814,7 @@ function views_query_views_alter(AlterableInterface $query) { } } - // Replaces substitions in filter criteria. + // Replaces substitutions in filter criteria. _views_query_tag_alter_condition($query, $where, $substitutions); } diff --git a/core/modules/views/views.theme.inc b/core/modules/views/views.theme.inc index 81df6a1..11cea62 100644 --- a/core/modules/views/views.theme.inc +++ b/core/modules/views/views.theme.inc @@ -119,7 +119,7 @@ function template_preprocess_views_view_fields(&$variables) { $field_output = $pre . '>' . $field_output . 'element_type . '>'; } - // Protect ourself somewhat for backward compatibility. This will prevent + // Protect ourselves somewhat for backward compatibility. This will prevent // old templates from producing invalid HTML when no element type is selected. if (empty($object->element_type)) { $object->element_type = 'span'; diff --git a/core/modules/views_ui/css/views_ui.admin.theme.css b/core/modules/views_ui/css/views_ui.admin.theme.css index 9941b95..833a708 100644 --- a/core/modules/views_ui/css/views_ui.admin.theme.css +++ b/core/modules/views_ui/css/views_ui.admin.theme.css @@ -691,11 +691,11 @@ td.group-title { /* @group Attachment bucket overridden * - * Applies a overriden(italics) font style to overridden buckets. + * Applies a overridden(italics) font style to overridden buckets. * The better way to implement this would be to add the overridden class * to the bucket header when the bucket is overridden and style it as a * generic icon classed element. For the moment, we'll style the bucket - * header specifically with the overriden font style. + * header specifically with the overridden font style. */ .views-ui-display-tab-setting.overridden, diff --git a/core/modules/views_ui/src/Form/Ajax/AddHandler.php b/core/modules/views_ui/src/Form/Ajax/AddHandler.php index afcfa43..458a58d 100644 --- a/core/modules/views_ui/src/Form/Ajax/AddHandler.php +++ b/core/modules/views_ui/src/Form/Ajax/AddHandler.php @@ -18,7 +18,7 @@ class AddHandler extends ViewsFormBase { /** - * Constucts a new AddHandler object. + * Constructs a new AddHandler object. */ public function __construct($type = NULL) { $this->setType($type); diff --git a/core/modules/views_ui/src/Form/Ajax/ConfigHandler.php b/core/modules/views_ui/src/Form/Ajax/ConfigHandler.php index 90de6d9..7fe0746 100644 --- a/core/modules/views_ui/src/Form/Ajax/ConfigHandler.php +++ b/core/modules/views_ui/src/Form/Ajax/ConfigHandler.php @@ -18,7 +18,7 @@ class ConfigHandler extends ViewsFormBase { /** - * Constucts a new ConfigHandler object. + * Constructs a new ConfigHandler object. */ public function __construct($type = NULL, $id = NULL) { $this->setType($type); diff --git a/core/modules/views_ui/src/Form/Ajax/ConfigHandlerExtra.php b/core/modules/views_ui/src/Form/Ajax/ConfigHandlerExtra.php index 3cdaece..0003f4d 100644 --- a/core/modules/views_ui/src/Form/Ajax/ConfigHandlerExtra.php +++ b/core/modules/views_ui/src/Form/Ajax/ConfigHandlerExtra.php @@ -17,7 +17,7 @@ class ConfigHandlerExtra extends ViewsFormBase { /** - * Constucts a new ConfigHandlerExtra object. + * Constructs a new ConfigHandlerExtra object. */ public function __construct($type = NULL, $id = NULL) { $this->setType($type); diff --git a/core/modules/views_ui/src/Form/Ajax/ConfigHandlerGroup.php b/core/modules/views_ui/src/Form/Ajax/ConfigHandlerGroup.php index 3cc63f5..17dc420 100644 --- a/core/modules/views_ui/src/Form/Ajax/ConfigHandlerGroup.php +++ b/core/modules/views_ui/src/Form/Ajax/ConfigHandlerGroup.php @@ -18,7 +18,7 @@ class ConfigHandlerGroup extends ViewsFormBase { /** - * Constucts a new ConfigHandlerGroup object. + * Constructs a new ConfigHandlerGroup object. */ public function __construct($type = NULL, $id = NULL) { $this->setType($type); diff --git a/core/modules/views_ui/src/Form/Ajax/Display.php b/core/modules/views_ui/src/Form/Ajax/Display.php index 307fda4..e96b284 100644 --- a/core/modules/views_ui/src/Form/Ajax/Display.php +++ b/core/modules/views_ui/src/Form/Ajax/Display.php @@ -16,7 +16,7 @@ class Display extends ViewsFormBase { /** - * Constucts a new Display object. + * Constructs a new Display object. */ public function __construct($type = NULL) { $this->setType($type); diff --git a/core/modules/views_ui/src/Form/Ajax/Rearrange.php b/core/modules/views_ui/src/Form/Ajax/Rearrange.php index 25cf3f1..9f2db00 100644 --- a/core/modules/views_ui/src/Form/Ajax/Rearrange.php +++ b/core/modules/views_ui/src/Form/Ajax/Rearrange.php @@ -17,7 +17,7 @@ class Rearrange extends ViewsFormBase { /** - * Constucts a new Rearrange object. + * Constructs a new Rearrange object. */ public function __construct($type = NULL) { $this->setType($type); diff --git a/core/modules/views_ui/src/Tests/OverrideDisplaysTest.php b/core/modules/views_ui/src/Tests/OverrideDisplaysTest.php index a3d4396..56692a2 100644 --- a/core/modules/views_ui/src/Tests/OverrideDisplaysTest.php +++ b/core/modules/views_ui/src/Tests/OverrideDisplaysTest.php @@ -172,7 +172,7 @@ function testWizardMixedDefaultOverriddenDisplays() { function testRevertAllDisplays() { // Create a basic view with a page, block. // Because there is both a title on page and block we expect the title on - // the block be overriden. + // the block be overridden. $view['label'] = $this->randomMachineName(16); $view['id'] = strtolower($this->randomMachineName(16)); $view['page[create]'] = 1; diff --git a/core/modules/views_ui/src/Tests/SettingsTest.php b/core/modules/views_ui/src/Tests/SettingsTest.php index 3660967..f1b71b7 100644 --- a/core/modules/views_ui/src/Tests/SettingsTest.php +++ b/core/modules/views_ui/src/Tests/SettingsTest.php @@ -71,7 +71,7 @@ function testEditUI() { // Configure to always show the advanced settings. // @todo It doesn't seem to be a way to test this as this works just on js. - // Configure to show the embedable display. + // Configure to show the embeddable display. $edit = array( 'ui_show_display_embed' => TRUE, ); diff --git a/core/modules/views_ui/src/Tests/StyleUITest.php b/core/modules/views_ui/src/Tests/StyleUITest.php index d38431c..fde82ce 100644 --- a/core/modules/views_ui/src/Tests/StyleUITest.php +++ b/core/modules/views_ui/src/Tests/StyleUITest.php @@ -60,7 +60,7 @@ public function testStyleUI() { $this->assertEqual($style['options']['test_option'], $random_name, 'Make sure that the custom settings field got saved as expected.'); // Test that fields are working correctly in the UI for style plugins when - // a field row plguin is selected. + // a field row plugin is selected. $this->drupalPostForm("admin/structure/views/view/$view_name/edit", array(), 'Add Page'); $this->drupalPostForm("admin/structure/views/nojs/display/$view_name/page_1/row", array('row[type]' => 'fields'), t('Apply')); // If fields are being used this text will not be shown. diff --git a/core/modules/views_ui/src/ViewUI.php b/core/modules/views_ui/src/ViewUI.php index 7e1bc27..0d39ec8 100644 --- a/core/modules/views_ui/src/ViewUI.php +++ b/core/modules/views_ui/src/ViewUI.php @@ -94,7 +94,7 @@ class ViewUI implements ViewStorageInterface { public $stack; /** - * Is the view runned in a context of the preview in the admin interface. + * Is the view run in a context of the preview in the admin interface. * * @var bool */