diff --git a/core/lib/Drupal/Component/Diff/Engine/DiffEngine.php b/core/lib/Drupal/Component/Diff/Engine/DiffEngine.php index 387c401..805f9c7 100644 --- a/core/lib/Drupal/Component/Diff/Engine/DiffEngine.php +++ b/core/lib/Drupal/Component/Diff/Engine/DiffEngine.php @@ -19,7 +19,7 @@ * More ideas are taken from: * http://www.ics.uci.edu/~eppstein/161/960229.html * - * Some ideas are (and a bit of code) are from from analyze.c, from GNU + * Some ideas (and a bit of code) are from analyze.c, from GNU * diffutils-2.7, which can be found at: * ftp://gnudist.gnu.org/pub/gnu/diffutils/diffutils-2.7.tar.gz * diff --git a/core/lib/Drupal/Core/Config/StorageComparerInterface.php b/core/lib/Drupal/Core/Config/StorageComparerInterface.php index 180f29a..293d9db 100644 --- a/core/lib/Drupal/Core/Config/StorageComparerInterface.php +++ b/core/lib/Drupal/Core/Config/StorageComparerInterface.php @@ -109,7 +109,7 @@ public function moveRenameToUpdate($rename, $collection = StorageInterface::DEFA * * @return array * An associative array of configuration names. The array keys are - * 'old_name' and and 'new_name' representing the old and name configuration + * 'old_name' and 'new_name' representing the old and new configuration * object names during a rename operation. * * @see \Drupal\Core\Config\StorageComparer::createRenameNames() diff --git a/core/lib/Drupal/Core/Menu/MenuLinkInterface.php b/core/lib/Drupal/Core/Menu/MenuLinkInterface.php index da5ca39..4722e38 100644 --- a/core/lib/Drupal/Core/Menu/MenuLinkInterface.php +++ b/core/lib/Drupal/Core/Menu/MenuLinkInterface.php @@ -131,7 +131,7 @@ public function getRouteParameters(); * the description is not empty. * * @return \Drupal\Core\Url - * A a URL object containing either the external path or route. + * A URL object containing either the external path or route. */ public function getUrlObject($title_attribute = TRUE); diff --git a/core/lib/Drupal/Core/Menu/menu.api.php b/core/lib/Drupal/Core/Menu/menu.api.php index b37fa61..af33b32 100644 --- a/core/lib/Drupal/Core/Menu/menu.api.php +++ b/core/lib/Drupal/Core/Menu/menu.api.php @@ -297,7 +297,7 @@ function hook_menu_links_discovered_alter(&$links) { * * @param array $data * An associative array containing list of (up to 2) tab levels that contain a - * list of of tabs keyed by their href, each one being an associative array + * list of tabs keyed by their href, each one being an associative array * as described above. * @param string $route_name * The route name of the page. diff --git a/core/lib/Drupal/Core/Render/Element/Details.php b/core/lib/Drupal/Core/Render/Element/Details.php index a7fab35..afdd445 100644 --- a/core/lib/Drupal/Core/Render/Element/Details.php +++ b/core/lib/Drupal/Core/Render/Element/Details.php @@ -13,7 +13,7 @@ * Provides a render element for a details element, similar to a fieldset. * * Fieldsets can only be used in forms, while details elements can be used - * outside of forms. Users click on the the title to open or close the details + * outside of forms. Users click on the title to open or close the details * element, showing or hiding the contained elements. * * Properties: diff --git a/core/modules/comment/src/Tests/CommentFieldAccessTest.php b/core/modules/comment/src/Tests/CommentFieldAccessTest.php index c79def2..e55dbfb 100644 --- a/core/modules/comment/src/Tests/CommentFieldAccessTest.php +++ b/core/modules/comment/src/Tests/CommentFieldAccessTest.php @@ -243,7 +243,7 @@ public function testAccessToAdministrativeFields() { foreach ($permutations as $set) { $may_view = $set['comment']->{$field}->access('view', $set['user']); $may_update = $set['comment']->{$field}->access('edit', $set['user']); - // Nobody has access to to view the hostname field. + // Nobody has access to view the hostname field. if ($field === 'hostname') { $view_access = FALSE; $state = 'cannot'; diff --git a/core/modules/config_translation/tests/src/Unit/ConfigNamesMapperTest.php b/core/modules/config_translation/tests/src/Unit/ConfigNamesMapperTest.php index c9d3c31..4d5765f 100644 --- a/core/modules/config_translation/tests/src/Unit/ConfigNamesMapperTest.php +++ b/core/modules/config_translation/tests/src/Unit/ConfigNamesMapperTest.php @@ -502,7 +502,7 @@ public function testHasSchema(array $mock_return_values, $expected) { } /** - * Provides data for for ConfigMapperTest::testHasSchema(). + * Provides data for ConfigMapperTest::testHasSchema(). * * @return array * An array of arrays, where each inner array has an array of values that diff --git a/core/modules/content_translation/src/Tests/ContentTranslationUITestBase.php b/core/modules/content_translation/src/Tests/ContentTranslationUITestBase.php index 9ed2e46..33d936a 100644 --- a/core/modules/content_translation/src/Tests/ContentTranslationUITestBase.php +++ b/core/modules/content_translation/src/Tests/ContentTranslationUITestBase.php @@ -455,7 +455,7 @@ protected function getValue(EntityInterface $translation, $property, $langcode) * The entity being tested. * * @return string - * The the field name. + * The field name. */ protected function getChangedFieldName($entity) { return $entity->hasField('content_translation_changed') ? 'content_translation_changed' : 'changed'; diff --git a/core/modules/field/src/Entity/FieldConfig.php b/core/modules/field/src/Entity/FieldConfig.php index 8e3fba3..8e0e0b4 100644 --- a/core/modules/field/src/Entity/FieldConfig.php +++ b/core/modules/field/src/Entity/FieldConfig.php @@ -184,7 +184,7 @@ public function preSave(EntityStorageInterface $storage) { */ public function calculateDependencies() { parent::calculateDependencies(); - // Mark the field_storage_config as a a dependency. + // Mark the field_storage_config as a dependency. $this->addDependency('config', $this->getFieldStorageDefinition()->getConfigDependencyName()); return $this; } diff --git a/core/modules/image/src/Form/ImageStyleEditForm.php b/core/modules/image/src/Form/ImageStyleEditForm.php index d17a129..b3e7f8e 100644 --- a/core/modules/image/src/Form/ImageStyleEditForm.php +++ b/core/modules/image/src/Form/ImageStyleEditForm.php @@ -273,7 +273,7 @@ public function actions(array $form, FormStateInterface $form_state) { * Updates image effect weights. * * @param array $effects - * Associative array with effects having effect uuid as keys and and array + * Associative array with effects having effect uuid as keys and array * with effect data as values. */ protected function updateEffectWeights(array $effects) { diff --git a/core/modules/node/src/Plugin/Search/NodeSearch.php b/core/modules/node/src/Plugin/Search/NodeSearch.php index 8861521..0fa464e 100644 --- a/core/modules/node/src/Plugin/Search/NodeSearch.php +++ b/core/modules/node/src/Plugin/Search/NodeSearch.php @@ -97,7 +97,7 @@ class NodeSearch extends ConfigurableSearchPluginBase implements AccessibleInter /** * The list of options and info for advanced search filters. * - * Each entry in the array has the option as the key and and for its value, an + * Each entry in the array has the option as the key and for its value, an * array that determines how the value is matched in the database query. The * possible keys in that array are: * - column: (required) Name of the database column to match against. diff --git a/core/modules/simpletest/simpletest.js b/core/modules/simpletest/simpletest.js index ed67ff5..7221a49 100644 --- a/core/modules/simpletest/simpletest.js +++ b/core/modules/simpletest/simpletest.js @@ -83,7 +83,7 @@ * @type {Drupal~behavior} * * @prop {Drupal~behaviorAttach} attach - * Attaches the filter behavior the the text input element. + * Attaches the filter behavior to the text input element. */ Drupal.behaviors.simpletestTableFilterByText = { attach: function (context) { diff --git a/core/modules/simpletest/src/BrowserTestBase.php b/core/modules/simpletest/src/BrowserTestBase.php index e15078c..db7cd9a 100644 --- a/core/modules/simpletest/src/BrowserTestBase.php +++ b/core/modules/simpletest/src/BrowserTestBase.php @@ -1194,7 +1194,7 @@ protected function prepareRequestForGenerator($clean_urls = TRUE, $override_serv $server = array_merge($server, $override_server_vars); $request = Request::create($request_path, 'GET', array(), array(), array(), $server); - // Ensure the the request time is REQUEST_TIME to ensure that API calls + // Ensure the request time is REQUEST_TIME to ensure that API calls // in the test use the right timestamp. $request->server->set('REQUEST_TIME', REQUEST_TIME); $this->container->get('request_stack')->push($request); diff --git a/core/modules/simpletest/src/WebTestBase.php b/core/modules/simpletest/src/WebTestBase.php index 5b62c50..4b4d66a 100644 --- a/core/modules/simpletest/src/WebTestBase.php +++ b/core/modules/simpletest/src/WebTestBase.php @@ -2921,7 +2921,7 @@ protected function prepareRequestForGenerator($clean_urls = TRUE, $override_serv $server = array_merge($server, $override_server_vars); $request = Request::create($request_path, 'GET', array(), array(), array(), $server); - // Ensure the the request time is REQUEST_TIME to ensure that API calls + // Ensure the request time is REQUEST_TIME to ensure that API calls // in the test use the right timestamp. $request->server->set('REQUEST_TIME', REQUEST_TIME); $this->container->get('request_stack')->push($request); diff --git a/core/modules/system/src/Tests/Block/SystemMenuBlockTest.php b/core/modules/system/src/Tests/Block/SystemMenuBlockTest.php index 25e5dc1..e10a6af 100644 --- a/core/modules/system/src/Tests/Block/SystemMenuBlockTest.php +++ b/core/modules/system/src/Tests/Block/SystemMenuBlockTest.php @@ -295,7 +295,7 @@ public function testConfigLevelDepth() { * Converts the result of MenuLinkTree::build() in a "menu link ID tree". * * @param array $build - * The return value of of MenuLinkTree::build() + * The return value of MenuLinkTree::build() * * @return array * The "menu link ID tree" representation of the given render array. diff --git a/core/modules/system/src/Tests/Entity/ConfigEntityQueryTest.php b/core/modules/system/src/Tests/Entity/ConfigEntityQueryTest.php index a854df9..d3b7795 100644 --- a/core/modules/system/src/Tests/Entity/ConfigEntityQueryTest.php +++ b/core/modules/system/src/Tests/Entity/ConfigEntityQueryTest.php @@ -569,7 +569,7 @@ public function testDotted() { ->condition('array.level1.level2', 3) ->execute(); $this->assertResults(array('5')); - // Make sure that values on the wildcard level do not match if if there are + // Make sure that values on the wildcard level do not match if there are // sub-keys defined. This must not find anything even if entity 2 has a // top-level key number with value 41. $this->queryResults = $this->factory->get('config_query_test') diff --git a/core/modules/system/src/Tests/Entity/ContentEntityChangedTest.php b/core/modules/system/src/Tests/Entity/ContentEntityChangedTest.php index 6f7e692..564245b 100644 --- a/core/modules/system/src/Tests/Entity/ContentEntityChangedTest.php +++ b/core/modules/system/src/Tests/Entity/ContentEntityChangedTest.php @@ -390,7 +390,7 @@ public function testRevisionChanged() { $this->assertFalse( $this->getRevisionTranslationAffectedFlag($german), - 'Changed flag of of the German translation is not set for new revision without changes.' + 'Changed flag of the German translation is not set for new revision without changes.' ); $entity->setNewRevision(); diff --git a/core/modules/system/src/Tests/System/TokenReplaceUnitTest.php b/core/modules/system/src/Tests/System/TokenReplaceUnitTest.php index f89d1fa..cbffff7 100644 --- a/core/modules/system/src/Tests/System/TokenReplaceUnitTest.php +++ b/core/modules/system/src/Tests/System/TokenReplaceUnitTest.php @@ -70,7 +70,7 @@ public function testClear() { // Non-existing token. $source .= '[bogus:token]'; - // Replace with with the clear parameter, only the valid token should remain. + // Replace with the clear parameter, only the valid token should remain. $target = Html::escape($this->config('system.site')->get('name')); $result = $this->tokenService->replace($source, array(), array('langcode' => $this->interfaceLanguage->getId(), 'clear' => TRUE)); $this->assertEqual($target, $result, 'Valid tokens replaced while invalid tokens ignored.'); diff --git a/core/modules/system/tests/src/Kernel/Entity/EntityReferenceSelectionReferenceableTest.php b/core/modules/system/tests/src/Kernel/Entity/EntityReferenceSelectionReferenceableTest.php index c9062af..30c52a9 100644 --- a/core/modules/system/tests/src/Kernel/Entity/EntityReferenceSelectionReferenceableTest.php +++ b/core/modules/system/tests/src/Kernel/Entity/EntityReferenceSelectionReferenceableTest.php @@ -153,7 +153,7 @@ public function providerTestCases() { // Referenceables containing '_', limited to 3. Expecting 3 limited items // ('Xyz_', 'xyabz_', 'foo_') and 5 total. ['_', 'CONTAINS', 3, 3, ['Xyz_', 'xyabz_', 'foo_'], 6], - // Referenceables ending with with 'z_', limited to 3. Expecting 3 limited + // Referenceables ending with 'z_', limited to 3. Expecting 3 limited // items ('Xyz_', 'xyabz_', 'baz_') and 4 total. ['z_', 'ENDS_WITH', 3, 3, ['Xyz_', 'xyabz_', 'baz_'], 4], // Referenceables identical with 'xyabz_', no limit. Expecting 1 item diff --git a/core/modules/user/src/Tests/UserTokenReplaceTest.php b/core/modules/user/src/Tests/UserTokenReplaceTest.php index 5a472f4..b7877d8 100644 --- a/core/modules/user/src/Tests/UserTokenReplaceTest.php +++ b/core/modules/user/src/Tests/UserTokenReplaceTest.php @@ -157,7 +157,7 @@ function testUserTokenReplacement() { foreach ($tests as $input => $expected) { foreach (array($user1, $user2) as $account) { $output = $token_service->replace($input, ['user' => $account], ['langcode' => 'de', 'callback' => 'user_mail_tokens', 'clear' => TRUE]); - $this->assertTrue(strpos($output, $link) === 0, "Generated URL in in the requested language."); + $this->assertTrue(strpos($output, $link) === 0, "Generated URL in the requested language."); } } diff --git a/core/modules/views/src/Plugin/views/pager/SqlBase.php b/core/modules/views/src/Plugin/views/pager/SqlBase.php index 0372bd6..854018c 100644 --- a/core/modules/views/src/Plugin/views/pager/SqlBase.php +++ b/core/modules/views/src/Plugin/views/pager/SqlBase.php @@ -140,7 +140,7 @@ public function buildOptionsForm(&$form, FormStateInterface $form_state) { $form['expose']['items_per_page_options_all'] = array( '#type' => 'checkbox', - '#title' => $this->t('Allow user to to display all items'), + '#title' => $this->t('Allow user to display all items'), '#default_value' => $this->options['expose']['items_per_page_options_all'], ); diff --git a/core/modules/views/views.theme.inc b/core/modules/views/views.theme.inc index 8990584..96d4c7b 100644 --- a/core/modules/views/views.theme.inc +++ b/core/modules/views/views.theme.inc @@ -998,7 +998,7 @@ function template_preprocess_views_mini_pager(&$variables) { $variables['items']['next']['attributes'] = new Attribute(); } - // This is is based on the entire current query string. We need to ensure + // This is based on the entire current query string. We need to ensure // cacheability is affected accordingly. $variables['#cache']['contexts'][] = 'url.query_args'; } diff --git a/sites/default/default.settings.php b/sites/default/default.settings.php index 6a45d25..376c577 100644 --- a/sites/default/default.settings.php +++ b/sites/default/default.settings.php @@ -446,7 +446,7 @@ # $settings['allow_authorize_operations'] = FALSE; /** - * Default mode for for directories and files written by Drupal. + * Default mode for directories and files written by Drupal. * * Value should be in PHP Octal Notation, with leading zero. */