From a60a5779b50e9e1be4aa66060a0f5ec314131c6e Mon Sep 17 00:00:00 2001 From: Alex Pott <alex.a.pott@googlemail.com> Date: Wed, 4 Feb 2015 10:08:41 +0000 Subject: [PATCH] Issue #2417983 by kattekrab: Change docs instances of "the the" to "the" --- .../Component/Plugin/Context/ContextDefinitionInterface.php | 2 +- core/lib/Drupal/Component/Utility/Random.php | 2 +- core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php | 2 +- .../lib/Drupal/Core/Executable/ExecutableManagerInterface.php | 2 +- .../lib/Drupal/Core/Field/FieldStorageDefinitionInterface.php | 2 +- core/lib/Drupal/Core/Field/WidgetBase.php | 2 +- core/lib/Drupal/Core/Form/FormSubmitter.php | 2 +- core/lib/Drupal/Core/Render/RendererInterface.php | 2 +- core/lib/Drupal/Core/Routing/MatcherDumper.php | 2 +- core/lib/Drupal/Core/Routing/RouteCompiler.php | 2 +- core/lib/Drupal/Core/TypedData/DataDefinitionInterface.php | 2 +- core/lib/Drupal/Core/TypedData/TypedDataManager.php | 2 +- core/misc/tableselect.js | 2 +- core/modules/field/field.api.php | 2 +- core/modules/field/src/Tests/FieldImportChangeTest.php | 2 +- core/modules/file/file.module | 2 +- core/modules/locale/src/Tests/LocaleImportFunctionalTest.php | 4 ++-- core/modules/locale/src/TranslationString.php | 2 +- core/modules/node/src/Tests/Config/NodeImportChangeTest.php | 2 +- core/modules/responsive_image/responsive_image.module | 2 +- core/modules/system/src/Controller/SystemController.php | 2 +- core/modules/system/src/Tests/Ajax/CommandsTest.php | 2 +- core/modules/system/src/Tests/Database/ConnectionTest.php | 2 +- .../system/src/Tests/Entity/EntityCacheTagsTestBase.php | 2 +- .../modules/system/src/Tests/Form/ElementsTableSelectTest.php | 2 +- .../system/src/Tests/KeyValueStore/GarbageCollectionTest.php | 2 +- .../ajax_forms_test/src/Form/AjaxFormsTestCommandsForm.php | 2 +- .../user/src/Controller/UserAutocompleteController.php | 2 +- core/modules/user/src/TempStoreFactory.php | 2 +- core/modules/user/src/UserAutocomplete.php | 2 +- core/modules/views/src/Tests/Plugin/DisplayTest.php | 2 +- 31 files changed, 32 insertions(+), 32 deletions(-) diff --git a/core/lib/Drupal/Component/Plugin/Context/ContextDefinitionInterface.php b/core/lib/Drupal/Component/Plugin/Context/ContextDefinitionInterface.php index 16fdc8bfc338..c7b69a068b38 100644 --- a/core/lib/Drupal/Component/Plugin/Context/ContextDefinitionInterface.php +++ b/core/lib/Drupal/Component/Plugin/Context/ContextDefinitionInterface.php @@ -150,7 +150,7 @@ public function addConstraint($constraint_name, $options = NULL); * Returns a validation constraint. * * @param string $constraint_name - * The name of the the constraint, i.e. its plugin id. + * The name of the constraint, i.e. its plugin id. * * @return array * A validation constraint definition which can be used for instantiating a diff --git a/core/lib/Drupal/Component/Utility/Random.php b/core/lib/Drupal/Component/Utility/Random.php index af9e22a40406..356eefd763ef 100644 --- a/core/lib/Drupal/Component/Utility/Random.php +++ b/core/lib/Drupal/Component/Utility/Random.php @@ -51,7 +51,7 @@ class Random { * (optional) If TRUE ensures that the random string returned is unique. * Defaults to FALSE. * @param callable $validator - * (optional) A callable to validate the the string. Defaults to NULL. + * (optional) A callable to validate the string. Defaults to NULL. * * @return string * Randomly generated string. diff --git a/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php b/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php index a3880f58d9b5..c95918c2605c 100644 --- a/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php +++ b/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php @@ -1121,7 +1121,7 @@ protected function mapToStorageRecord(ContentEntityInterface $entity, $table_nam * The schema name of the field column. * * @return bool - * TRUE if the the column is serial, FALSE otherwise. + * TRUE if the column is serial, FALSE otherwise. * * @see \Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema::processBaseTable() * @see \Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema::processRevisionTable() diff --git a/core/lib/Drupal/Core/Executable/ExecutableManagerInterface.php b/core/lib/Drupal/Core/Executable/ExecutableManagerInterface.php index c715f7d616d5..fa6ef122890b 100644 --- a/core/lib/Drupal/Core/Executable/ExecutableManagerInterface.php +++ b/core/lib/Drupal/Core/Executable/ExecutableManagerInterface.php @@ -25,7 +25,7 @@ interface ExecutableManagerInterface extends PluginManagerInterface { * * @return mixed * The returned data varies by plugin implementation, e.g. conditions return - * the the boolean evaluation result. + * the boolean evaluation result. */ public function execute(ExecutableInterface $plugin); diff --git a/core/lib/Drupal/Core/Field/FieldStorageDefinitionInterface.php b/core/lib/Drupal/Core/Field/FieldStorageDefinitionInterface.php index 9b0eb65d5e24..396e70dbc6bf 100644 --- a/core/lib/Drupal/Core/Field/FieldStorageDefinitionInterface.php +++ b/core/lib/Drupal/Core/Field/FieldStorageDefinitionInterface.php @@ -282,7 +282,7 @@ public function getConstraints(); * details. * * @param string $constraint_name - * The name of the the constraint, i.e. its plugin id. + * The name of the constraint, i.e. its plugin id. * * @return array * A validation constraint definition which can be used for instantiating a diff --git a/core/lib/Drupal/Core/Field/WidgetBase.php b/core/lib/Drupal/Core/Field/WidgetBase.php index 38dbe0d529d3..492c449d5180 100644 --- a/core/lib/Drupal/Core/Field/WidgetBase.php +++ b/core/lib/Drupal/Core/Field/WidgetBase.php @@ -383,7 +383,7 @@ public function flagErrors(FieldItemListInterface $items, ConstraintViolationLis if ($violations->count()) { $form_builder = \Drupal::formBuilder(); - // Locate the correct element in the the form. + // Locate the correct element in the form. $element = NestedArray::getValue($form_state->getCompleteForm(), $field_state['array_parents']); // Do not report entity-level validation errors if Form API errors have diff --git a/core/lib/Drupal/Core/Form/FormSubmitter.php b/core/lib/Drupal/Core/Form/FormSubmitter.php index b975a70a5076..f2c888def7a7 100644 --- a/core/lib/Drupal/Core/Form/FormSubmitter.php +++ b/core/lib/Drupal/Core/Form/FormSubmitter.php @@ -75,7 +75,7 @@ public function doSubmitForm(&$form, FormStateInterface &$form_state) { // after the batch is processed. } - // Set a flag to indicate the the form has been processed and executed. + // Set a flag to indicate the form has been processed and executed. $form_state->setExecuted(); // If no response has been set, process the form redirect. diff --git a/core/lib/Drupal/Core/Render/RendererInterface.php b/core/lib/Drupal/Core/Render/RendererInterface.php index 418298b23f3e..f2bf6c40abcf 100644 --- a/core/lib/Drupal/Core/Render/RendererInterface.php +++ b/core/lib/Drupal/Core/Render/RendererInterface.php @@ -194,7 +194,7 @@ public function renderPlain(&$elements); * - If this element has #prefix and/or #suffix defined, they are * concatenated to #children. * - The rendering of this element is now complete. The next step will be - * render caching. So this is the perfect time to update the the stack. At + * render caching. So this is the perfect time to update the stack. At * this point, children of this element (if any), have been rendered also, * and if there were any, their bubbleable rendering metadata will have * been bubbled up into the stack frame for the element that is currently diff --git a/core/lib/Drupal/Core/Routing/MatcherDumper.php b/core/lib/Drupal/Core/Routing/MatcherDumper.php index 18e864fd458d..0b409467bcbb 100644 --- a/core/lib/Drupal/Core/Routing/MatcherDumper.php +++ b/core/lib/Drupal/Core/Routing/MatcherDumper.php @@ -117,7 +117,7 @@ public function dump(array $options = array()) { $compiled = $route->compile(); // The fit value is a binary number which has 1 at every fixed path // position and 0 where there is a wildcard. We keep track of all such - // patterns that exist so that we can minimize the the number of path + // patterns that exist so that we can minimize the number of path // patterns we need to check in the RouteProvider. $masks[$compiled->getFit()] = 1; $names[] = $name; diff --git a/core/lib/Drupal/Core/Routing/RouteCompiler.php b/core/lib/Drupal/Core/Routing/RouteCompiler.php index 6ae58e18f083..9e6de2c4d9fa 100644 --- a/core/lib/Drupal/Core/Routing/RouteCompiler.php +++ b/core/lib/Drupal/Core/Routing/RouteCompiler.php @@ -95,7 +95,7 @@ public static function getFit($path) { $slashes = $number_parts - 1; // The fit value is a binary number which has 1 at every fixed path // position and 0 where there is a wildcard. We keep track of all such - // patterns that exist so that we can minimize the the number of path + // patterns that exist so that we can minimize the number of path // patterns we need to check in the RouteProvider. $fit = 0; foreach ($parts as $k => $part) { diff --git a/core/lib/Drupal/Core/TypedData/DataDefinitionInterface.php b/core/lib/Drupal/Core/TypedData/DataDefinitionInterface.php index e6b10a88e710..a452475aefa5 100644 --- a/core/lib/Drupal/Core/TypedData/DataDefinitionInterface.php +++ b/core/lib/Drupal/Core/TypedData/DataDefinitionInterface.php @@ -193,7 +193,7 @@ public function getConstraints(); * details. * * @param string $constraint_name - * The name of the the constraint, i.e. its plugin id. + * The name of the constraint, i.e. its plugin id. * * @return array * A validation constraint definition which can be used for instantiating a diff --git a/core/lib/Drupal/Core/TypedData/TypedDataManager.php b/core/lib/Drupal/Core/TypedData/TypedDataManager.php index 955be72a4a7e..7fe362ed0086 100644 --- a/core/lib/Drupal/Core/TypedData/TypedDataManager.php +++ b/core/lib/Drupal/Core/TypedData/TypedDataManager.php @@ -274,7 +274,7 @@ public function getPropertyInstance(TypedDataInterface $object, $property_name, // Root data type and settings. $parts[] = $root_definition->getDataType(); if ($settings = $root_definition->getSettings()) { - // Hash the settings into a string. crc32 is the the fastest way to hash + // Hash the settings into a string. crc32 is the fastest way to hash // something for non-cryptographic purposes. $parts[] = crc32(serialize($settings)); } diff --git a/core/misc/tableselect.js b/core/misc/tableselect.js index c2aa5dcebf06..60bb0e173c08 100644 --- a/core/misc/tableselect.js +++ b/core/misc/tableselect.js @@ -67,7 +67,7 @@ }; Drupal.tableSelectRange = function (from, to, state) { - // We determine the looping mode based on the the order of from and to. + // We determine the looping mode based on the order of from and to. var mode = from.rowIndex > to.rowIndex ? 'previousSibling' : 'nextSibling'; // Traverse through the sibling nodes. diff --git a/core/modules/field/field.api.php b/core/modules/field/field.api.php index 456e434969d1..bb39027a9fb5 100644 --- a/core/modules/field/field.api.php +++ b/core/modules/field/field.api.php @@ -289,7 +289,7 @@ function hook_field_purge_field_storage(\Drupal\field\Entity\FieldStorageConfig * Acts when a field is being purged. * * In field_purge_field(), after the field definition has been removed - * from the the system, the entity storage has purged stored field data, and the + * from the system, the entity storage has purged stored field data, and the * field info cache has been cleared, this hook is invoked on all modules to * allow them to respond to the field being purged. * diff --git a/core/modules/field/src/Tests/FieldImportChangeTest.php b/core/modules/field/src/Tests/FieldImportChangeTest.php index f2194f79c566..85416644d5d5 100644 --- a/core/modules/field/src/Tests/FieldImportChangeTest.php +++ b/core/modules/field/src/Tests/FieldImportChangeTest.php @@ -39,7 +39,7 @@ function testImportChange() { $staging = $this->container->get('config.storage.staging'); $this->copyConfig($active, $staging); - // Save as files in the the staging directory. + // Save as files in the staging directory. $field = $active->read($field_config_name); $new_label = 'Test update import field'; $field['label'] = $new_label; diff --git a/core/modules/file/file.module b/core/modules/file/file.module index 794ffb30f859..0bc05845d104 100644 --- a/core/modules/file/file.module +++ b/core/modules/file/file.module @@ -829,7 +829,7 @@ function file_save_upload($form_field_name, $validators = array(), $destination continue; } - // Add in our check of the the file name length. + // Add in our check of the file name length. $validators['file_validate_name_length'] = array(); // Call the validation functions specified by this function's caller. diff --git a/core/modules/locale/src/Tests/LocaleImportFunctionalTest.php b/core/modules/locale/src/Tests/LocaleImportFunctionalTest.php index 2129eacf94e7..35c9a661d286 100644 --- a/core/modules/locale/src/Tests/LocaleImportFunctionalTest.php +++ b/core/modules/locale/src/Tests/LocaleImportFunctionalTest.php @@ -537,8 +537,8 @@ public function getCustomOverwritePoFile() { * Helper function that returns a .po file with context. */ public function getPoFileWithContext() { - // Croatian (code hr) is one the the languages that have a different - // form for the full name and the abbreviated name for the month May. + // Croatian (code hr) is one of the languages that have a different + // form for the full name and the abbreviated name for the month of May. return <<< EOF msgid "" msgstr "" diff --git a/core/modules/locale/src/TranslationString.php b/core/modules/locale/src/TranslationString.php index d04ed4f5a26d..44b344f73f21 100644 --- a/core/modules/locale/src/TranslationString.php +++ b/core/modules/locale/src/TranslationString.php @@ -12,7 +12,7 @@ * * This class represents a translation of a source string to a given language, * thus it must have at least a 'language' which is the language code and a - * 'translation' property which is the translated text of the the source string + * 'translation' property which is the translated text of the source string * in the specified language. */ class TranslationString extends StringBase { diff --git a/core/modules/node/src/Tests/Config/NodeImportChangeTest.php b/core/modules/node/src/Tests/Config/NodeImportChangeTest.php index 5df5486ecaed..dbe76a382765 100644 --- a/core/modules/node/src/Tests/Config/NodeImportChangeTest.php +++ b/core/modules/node/src/Tests/Config/NodeImportChangeTest.php @@ -49,7 +49,7 @@ public function testImportChange() { $node_type = $active->read($node_type_config_name); $new_label = 'Test update import field'; $node_type['name'] = $new_label; - // Save as files in the the staging directory. + // Save as files in the staging directory. $staging->write($node_type_config_name, $node_type); // Import the content of the staging directory. diff --git a/core/modules/responsive_image/responsive_image.module b/core/modules/responsive_image/responsive_image.module index a8200684c178..7a48c0d21786 100644 --- a/core/modules/responsive_image/responsive_image.module +++ b/core/modules/responsive_image/responsive_image.module @@ -264,7 +264,7 @@ function theme_responsive_image($variables) { * @param array $variables * An associative array containing: * - media: The media query to use. - * - srcset: The srcset containing the the path of the image file or a full + * - srcset: The srcset containing the path of the image file or a full * URL and optionally multipliers. * - src: Either the path of the image file (relative to base_path()) or a * full URL. diff --git a/core/modules/system/src/Controller/SystemController.php b/core/modules/system/src/Controller/SystemController.php index 9ed4227732cf..f744936dfe99 100644 --- a/core/modules/system/src/Controller/SystemController.php +++ b/core/modules/system/src/Controller/SystemController.php @@ -422,7 +422,7 @@ public static function setLinkActiveClass(array $element, array $context) { } } - // Only if the the path, the language and the query match, we set the + // Only if the path, the language and the query match, we set the // "active" class. if ($add_active) { if (strlen($class) > 0) { diff --git a/core/modules/system/src/Tests/Ajax/CommandsTest.php b/core/modules/system/src/Tests/Ajax/CommandsTest.php index c645f4face48..969ec9c97b43 100644 --- a/core/modules/system/src/Tests/Ajax/CommandsTest.php +++ b/core/modules/system/src/Tests/Ajax/CommandsTest.php @@ -77,7 +77,7 @@ function testAjaxCommands() { $this->assertCommand($commands, $expected->render(), "'changed' AJAX command (with asterisk) issued with correct selector."); // Tests the 'css' command. - $commands = $this->drupalPostAjaxForm($form_path, $edit, array('op' => t("Set the the '#box' div to be blue."))); + $commands = $this->drupalPostAjaxForm($form_path, $edit, array('op' => t("Set the '#box' div to be blue."))); $expected = new CssCommand('#css_div', array('background-color' => 'blue')); $this->assertCommand($commands, $expected->render(), "'css' AJAX command issued with correct selector."); diff --git a/core/modules/system/src/Tests/Database/ConnectionTest.php b/core/modules/system/src/Tests/Database/ConnectionTest.php index f3e67ad03269..c0d9253a1766 100644 --- a/core/modules/system/src/Tests/Database/ConnectionTest.php +++ b/core/modules/system/src/Tests/Database/ConnectionTest.php @@ -75,7 +75,7 @@ function testConnectionClosing() { // Open the default target so we have an object to compare. $db1 = Database::getConnection('default', 'default'); - // Try to close the the default connection, then open a new one. + // Try to close the default connection, then open a new one. Database::closeConnection('default', 'default'); $db2 = Database::getConnection('default', 'default'); diff --git a/core/modules/system/src/Tests/Entity/EntityCacheTagsTestBase.php b/core/modules/system/src/Tests/Entity/EntityCacheTagsTestBase.php index 36f554254ba8..3d7c93fd3afe 100644 --- a/core/modules/system/src/Tests/Entity/EntityCacheTagsTestBase.php +++ b/core/modules/system/src/Tests/Entity/EntityCacheTagsTestBase.php @@ -557,7 +557,7 @@ public function testReferencedEntity() { } // Verify that after deleting the entity, there is a cache miss for every - // route except for the the non-referencing entity one. + // route except for the non-referencing entity one. $this->pass('Test deletion of referenced entity.', 'Debug'); $this->entity->delete(); $this->verifyPageCache($referencing_entity_url, 'MISS'); diff --git a/core/modules/system/src/Tests/Form/ElementsTableSelectTest.php b/core/modules/system/src/Tests/Form/ElementsTableSelectTest.php index 91675017cece..a80e50fe492f 100644 --- a/core/modules/system/src/Tests/Form/ElementsTableSelectTest.php +++ b/core/modules/system/src/Tests/Form/ElementsTableSelectTest.php @@ -75,7 +75,7 @@ function testTableselectColSpan() { $table_body = $this->xpath('//tbody'); // The first two body rows should each have 5 table cells: One for the - // radio, one cell in the first column, one cell in the the second column, + // radio, one cell in the first column, one cell in the second column, // and two cells in the third column which has colspan 2. for ( $i = 0; $i <= 1; $i++) { $this->assertEqual(count($table_body[0]->tr[$i]->td), 5, format_string('There are five cells in row @row.', array('@row' => $i))); diff --git a/core/modules/system/src/Tests/KeyValueStore/GarbageCollectionTest.php b/core/modules/system/src/Tests/KeyValueStore/GarbageCollectionTest.php index 6b46b7cf5e7c..4ea8fa748697 100644 --- a/core/modules/system/src/Tests/KeyValueStore/GarbageCollectionTest.php +++ b/core/modules/system/src/Tests/KeyValueStore/GarbageCollectionTest.php @@ -13,7 +13,7 @@ use Drupal\simpletest\KernelTestBase; /** - * Tests garbage collection for the the expirable key-value database storage. + * Tests garbage collection for the expirable key-value database storage. * * @group KeyValueStore */ diff --git a/core/modules/system/tests/modules/ajax_forms_test/src/Form/AjaxFormsTestCommandsForm.php b/core/modules/system/tests/modules/ajax_forms_test/src/Form/AjaxFormsTestCommandsForm.php index f0a3811f6517..e708d92cfe97 100644 --- a/core/modules/system/tests/modules/ajax_forms_test/src/Form/AjaxFormsTestCommandsForm.php +++ b/core/modules/system/tests/modules/ajax_forms_test/src/Form/AjaxFormsTestCommandsForm.php @@ -88,7 +88,7 @@ public function buildForm(array $form, FormStateInterface $form_state) { // Shows the Ajax 'css' command. $form['css_command_example'] = array( - '#value' => $this->t("Set the the '#box' div to be blue."), + '#value' => $this->t("Set the '#box' div to be blue."), '#type' => 'submit', '#ajax' => array( 'callback' => 'ajax_forms_test_advanced_commands_css_callback', diff --git a/core/modules/user/src/Controller/UserAutocompleteController.php b/core/modules/user/src/Controller/UserAutocompleteController.php index ae7b9922b5af..aca4e445dadc 100644 --- a/core/modules/user/src/Controller/UserAutocompleteController.php +++ b/core/modules/user/src/Controller/UserAutocompleteController.php @@ -50,7 +50,7 @@ public static function create(ContainerInterface $container) { * @param \Symfony\Component\HttpFoundation\Request $request * The current request object containing the search string. * @param bool $include_anonymous - * (optional) TRUE if the the name used to indicate anonymous users (e.g. + * (optional) TRUE if the name used to indicate anonymous users (e.g. * "Anonymous") should be autocompleted. Defaults to FALSE. * * @return \Symfony\Component\HttpFoundation\JsonResponse diff --git a/core/modules/user/src/TempStoreFactory.php b/core/modules/user/src/TempStoreFactory.php index bd08146effd6..5f19199a424f 100644 --- a/core/modules/user/src/TempStoreFactory.php +++ b/core/modules/user/src/TempStoreFactory.php @@ -65,7 +65,7 @@ function __construct(KeyValueExpirableFactoryInterface $storage_factory, LockBac * session if no user is logged in. * * @return \Drupal\user\TempStore - * An instance of the the key/value store. + * An instance of the key/value store. */ function get($collection, $owner = NULL) { // Use the currently authenticated user ID or the active user ID unless diff --git a/core/modules/user/src/UserAutocomplete.php b/core/modules/user/src/UserAutocomplete.php index cb75d5b831b7..d32c166ee9d7 100644 --- a/core/modules/user/src/UserAutocomplete.php +++ b/core/modules/user/src/UserAutocomplete.php @@ -61,7 +61,7 @@ public function __construct(ConfigFactoryInterface $config_factory, EntityManage * The string to match for usernames. * * @param bool $include_anonymous - * (optional) TRUE if the the name used to indicate anonymous users (e.g. + * (optional) TRUE if the name used to indicate anonymous users (e.g. * "Anonymous") should be autocompleted. Defaults to FALSE. * * @return array diff --git a/core/modules/views/src/Tests/Plugin/DisplayTest.php b/core/modules/views/src/Tests/Plugin/DisplayTest.php index ce22d2e791c1..8b628ec24c02 100644 --- a/core/modules/views/src/Tests/Plugin/DisplayTest.php +++ b/core/modules/views/src/Tests/Plugin/DisplayTest.php @@ -59,7 +59,7 @@ public function testDisplayPlugin() { $this->assertTrue(isset($displays['display_test_1']), 'Added display has been assigned to "display_test_1"'); - // Check the the display options are like expected. + // Check the display options are like expected. $options = array( 'display_options' => array(), 'display_plugin' => 'display_test', -- GitLab