From 700158c93b5cbfd0f532edd51be025fe2882b66d Mon Sep 17 00:00:00 2001
From: Jennifer Hodgdon <yahgrp@poplarware.com>
Date: Fri, 5 Jun 2015 13:20:37 -0700
Subject: [PATCH] Issue #2494319 by Pere Orga: Follow up to Spellchecking
 Drupal - Comments

---
 .../Drupal/Core/Entity/EntityDefinitionUpdateManager.php    | 2 +-
 .../templates/language-negotiation-configure-form.html.twig | 6 +++---
 core/modules/search/src/SearchQuery.php                     | 2 +-
 core/modules/system/src/Tests/File/ScanDirectoryTest.php    | 2 +-
 .../system/src/Tests/Theme/TwigRegistryLoaderTest.php       | 2 +-
 core/modules/user/src/PrivateTempStoreFactory.php           | 2 +-
 .../Core/DrupalKernel/DrupalKernelTrustedHostsTest.php      | 2 +-
 sites/default/default.services.yml                          | 6 +++---
 8 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/core/lib/Drupal/Core/Entity/EntityDefinitionUpdateManager.php b/core/lib/Drupal/Core/Entity/EntityDefinitionUpdateManager.php
index c2a6fad6ecf0..1531f818c498 100644
--- a/core/lib/Drupal/Core/Entity/EntityDefinitionUpdateManager.php
+++ b/core/lib/Drupal/Core/Entity/EntityDefinitionUpdateManager.php
@@ -98,7 +98,7 @@ public function applyUpdates() {
     $change_list = $this->getChangeList();
     if ($change_list) {
       // getChangeList() only disables the cache and does not invalidate.
-      // In case there are changes, explictly invalidate caches.
+      // In case there are changes, explicitly invalidate caches.
       $this->entityManager->clearCachedDefinitions();
     }
     foreach ($change_list as $entity_type_id => $change_list) {
diff --git a/core/modules/language/templates/language-negotiation-configure-form.html.twig b/core/modules/language/templates/language-negotiation-configure-form.html.twig
index 8e1c8f5e552b..8bddb46d8426 100644
--- a/core/modules/language/templates/language-negotiation-configure-form.html.twig
+++ b/core/modules/language/templates/language-negotiation-configure-form.html.twig
@@ -6,9 +6,9 @@
 * Available variables:
 * - language_types: A list of language negotiation types. Each language type
 *   contains the following:
-*   - type: The machine name for the negotation type.
-*   - title: The language negotation type name.
-*   - description: A description for how the language negotation type operates.
+*   - type: The machine name for the negotiation type.
+*   - title: The language negotiation type name.
+*   - description: A description for how the language negotiation type operates.
 *   - configurable: A radio element to toggle the table.
 *   - table: A draggable table for the language detection methods of this type.
 *   - children: Remaining form items for the group.
diff --git a/core/modules/search/src/SearchQuery.php b/core/modules/search/src/SearchQuery.php
index 3a62fb047518..331809a4559d 100644
--- a/core/modules/search/src/SearchQuery.php
+++ b/core/modules/search/src/SearchQuery.php
@@ -464,7 +464,7 @@ public function prepareAndNormalize() {
   }
 
   /**
-   * {@inhertidoc}
+   * {@inheritdoc}
    */
   public function preExecute(SelectInterface $query = NULL) {
     if (!$this->executedPrepare) {
diff --git a/core/modules/system/src/Tests/File/ScanDirectoryTest.php b/core/modules/system/src/Tests/File/ScanDirectoryTest.php
index 5082f17291e8..54d1df22aaa0 100644
--- a/core/modules/system/src/Tests/File/ScanDirectoryTest.php
+++ b/core/modules/system/src/Tests/File/ScanDirectoryTest.php
@@ -29,7 +29,7 @@ class ScanDirectoryTest extends FileTestBase {
   protected function setUp() {
     parent::setUp();
     // Hardcode the location of the simpletest files as it is already known
-    // and shouldn't change, and we don't yet have a way to retreive their
+    // and shouldn't change, and we don't yet have a way to retrieve their
     // location from drupal_get_filename() in a cached way.
     // @todo Remove as part of https://www.drupal.org/node/2186491
     $this->path = 'core/modules/simpletest/files';
diff --git a/core/modules/system/src/Tests/Theme/TwigRegistryLoaderTest.php b/core/modules/system/src/Tests/Theme/TwigRegistryLoaderTest.php
index 79dcd8236ab2..41d47a371a13 100644
--- a/core/modules/system/src/Tests/Theme/TwigRegistryLoaderTest.php
+++ b/core/modules/system/src/Tests/Theme/TwigRegistryLoaderTest.php
@@ -75,7 +75,7 @@ public function testTwigNamespaces() {
     $this->assertText('This line is from test_theme_twig_registry_loader_theme/templates/twig-registry-loader-test-extend.html.twig');
     $this->assertText('This line is from test_theme_twig_registry_loader_theme/templates/twig-registry-loader-test-include.html.twig');
 
-    // Enable a subtheme for the theme that doesnt have any overrides to make
+    // Enable a subtheme for the theme that doesn't have any overrides to make
     // sure that templates are being loaded from the first parent which has the
     // templates.
     $this->config('system.theme')
diff --git a/core/modules/user/src/PrivateTempStoreFactory.php b/core/modules/user/src/PrivateTempStoreFactory.php
index bd6263315a70..d23525c3325a 100644
--- a/core/modules/user/src/PrivateTempStoreFactory.php
+++ b/core/modules/user/src/PrivateTempStoreFactory.php
@@ -13,7 +13,7 @@
 use Symfony\Component\HttpFoundation\RequestStack;
 
 /**
- * Creates a PrivateTempStore object for a given collecton.
+ * Creates a PrivateTempStore object for a given collection.
  */
 class PrivateTempStoreFactory {
 
diff --git a/core/tests/Drupal/Tests/Core/DrupalKernel/DrupalKernelTrustedHostsTest.php b/core/tests/Drupal/Tests/Core/DrupalKernel/DrupalKernelTrustedHostsTest.php
index fc48e1f0331c..1fb30ae7e4ce 100644
--- a/core/tests/Drupal/Tests/Core/DrupalKernel/DrupalKernelTrustedHostsTest.php
+++ b/core/tests/Drupal/Tests/Core/DrupalKernel/DrupalKernelTrustedHostsTest.php
@@ -60,7 +60,7 @@ public function providerTestTrustedHosts() {
     // Tests canonical URL.
     $data[] = ['www.example.com', 'www.example.com', 'canonical URL is trusted', TRUE];
 
-    // Tests missing hostname for HTTP/1.0 compatability where the Host
+    // Tests missing hostname for HTTP/1.0 compatibility where the Host
     // header is optional.
     $data[] = [NULL, 'www.example.com', 'empty Host is valid', TRUE];
 
diff --git a/sites/default/default.services.yml b/sites/default/default.services.yml
index a9072cad523b..ecb1c43b2d5d 100644
--- a/sites/default/default.services.yml
+++ b/sites/default/default.services.yml
@@ -25,9 +25,9 @@ parameters:
     cookie_lifetime: 2000000
     #
     # Drupal automatically generates a unique session cookie name based on the
-    # full domain name used to access the site. This mechanism is sufficent for
-    # most use-cases, including multi-site deployments. However, if it is
-    # desired that a session can be reused accross different subdomains, the
+    # full domain name used to access the site. This mechanism is sufficient
+    # for most use-cases, including multi-site deployments. However, if it is
+    # desired that a session can be reused across different subdomains, the
     # cookie domain needs to be set to the shared base domain. Doing so assures
     # that users remain logged in as they cross between various subdomains.
     # To maximize compatibility and normalize the behavior across user agents,
-- 
GitLab