summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Pott2018-09-20 16:12:38 (GMT)
committerAlex Pott2018-09-20 16:13:11 (GMT)
commit6dfc00c0f4673b1152e8c232295c362e8e39a82a (patch)
treeb6a217425491977ae89dfe889d99cfdc7cc6d8ec
parenta8364dabc3eb24bb541348dcc71eaab3b4db514b (diff)
Issue #2829185 by vaplas, Jo Fitzgerald, anmolgoyal74, chipway, gaurav.kapoor, mark_fullmer, amit.drupal, cilefen, longwave, xjm, wturrell, anavarre: Fix spelling errors in Drupal core comments
(cherry picked from commit 2dabd1de104eaf431db59728616d3e53510cd6f1)
-rw-r--r--core/authorize.php2
-rw-r--r--core/lib/Drupal.php2
-rw-r--r--core/lib/Drupal/Component/DependencyInjection/PhpArrayContainer.php2
-rw-r--r--core/lib/Drupal/Component/Gettext/PoStreamReader.php2
-rw-r--r--core/lib/Drupal/Component/HttpFoundation/SecuredRedirectResponse.php2
-rw-r--r--core/lib/Drupal/Core/Archiver/ArchiveTar.php6
-rw-r--r--core/lib/Drupal/Core/Cache/CacheBackendInterface.php2
-rw-r--r--core/lib/Drupal/Core/Config/Entity/ConfigEntityInterface.php2
-rw-r--r--core/lib/Drupal/Core/Config/FileStorage.php2
-rw-r--r--core/lib/Drupal/Core/Database/Driver/mysql/Install/Tasks.php2
-rw-r--r--core/lib/Drupal/Core/Database/Driver/pgsql/Connection.php2
-rw-r--r--core/lib/Drupal/Core/DependencyInjection/Compiler/CorsCompilerPass.php2
-rw-r--r--core/lib/Drupal/Core/DrupalKernel.php2
-rw-r--r--core/lib/Drupal/Core/Entity/Element/EntityAutocomplete.php4
-rw-r--r--core/lib/Drupal/Core/Entity/Plugin/DataType/EntityReference.php2
-rw-r--r--core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php2
-rw-r--r--core/lib/Drupal/Core/Form/FormBuilder.php2
-rw-r--r--core/lib/Drupal/Core/Http/HandlerStackConfigurator.php2
-rw-r--r--core/lib/Drupal/Core/Http/TrustedHostsRequestFactory.php2
-rw-r--r--core/lib/Drupal/Core/Installer/Exception/InstallProfileMismatchException.php2
-rw-r--r--core/lib/Drupal/Core/Menu/MenuLinkTreeInterface.php2
-rw-r--r--core/lib/Drupal/Core/PageCache/RequestPolicy/NoSessionOpen.php2
-rw-r--r--core/lib/Drupal/Core/ProxyBuilder/ProxyBuilder.php2
-rw-r--r--core/lib/Drupal/Core/Render/Element/RenderElement.php2
-rw-r--r--core/lib/Drupal/Core/Session/SessionConfiguration.php2
-rw-r--r--core/lib/Drupal/Core/StreamWrapper/StreamWrapperInterface.php2
-rw-r--r--core/lib/Drupal/Core/TypedData/TypedDataManager.php2
-rw-r--r--core/lib/Drupal/Core/Update/UpdateRegistry.php2
-rw-r--r--core/lib/Drupal/Core/Updater/Module.php2
-rw-r--r--core/lib/Drupal/Core/Updater/Theme.php2
-rw-r--r--core/misc/announce.es6.js2
-rw-r--r--core/misc/autocomplete.es6.js2
-rw-r--r--core/modules/aggregator/src/ItemsImporter.php2
-rw-r--r--core/modules/ban/src/Plugin/migrate/destination/BlockedIp.php2
-rw-r--r--core/modules/book/tests/src/Functional/BookTest.php4
-rw-r--r--core/modules/ckeditor/js/ckeditor.es6.js2
-rw-r--r--core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/LlamaContextualAndButton.php2
-rw-r--r--core/modules/comment/src/CommentFieldItemList.php2
-rw-r--r--core/modules/comment/tests/src/Functional/Hal/CommentHalJsonAnonTest.php2
-rw-r--r--core/modules/comment/tests/src/Functional/Rest/CommentJsonAnonTest.php2
-rw-r--r--core/modules/comment/tests/src/Functional/Rest/CommentResourceTestBase.php2
-rw-r--r--core/modules/comment/tests/src/Functional/Rest/CommentXmlAnonTest.php2
-rw-r--r--core/modules/config/tests/src/Kernel/ConfigUninstallViaCliImportTest.php2
-rw-r--r--core/modules/config_translation/src/FormElement/ElementInterface.php2
-rw-r--r--core/modules/content_translation/tests/src/Kernel/ContentTranslationSyncUnitTest.php2
-rw-r--r--core/modules/contextual/js/toolbar/views/AuralView.es6.js6
-rw-r--r--core/modules/datetime/src/Plugin/views/filter/Date.php2
-rw-r--r--core/modules/datetime/tests/src/Functional/DateTimeFieldTest.php8
-rw-r--r--core/modules/dblog/tests/src/Functional/Update/DblogFiltersAndFieldsUpgradeTest.php2
-rw-r--r--core/modules/dblog/tests/src/Functional/Update/DblogNoLogsAvailableUpgradeTest.php2
-rw-r--r--core/modules/dblog/tests/src/Functional/Update/DblogRecentLogsUsingViewsUpdateTest.php4
-rw-r--r--core/modules/field/field.api.php2
-rw-r--r--core/modules/field_ui/src/Tests/ManageDisplayTest.php2
-rw-r--r--core/modules/file/tests/src/Functional/FileManagedFileElementTest.php2
-rw-r--r--core/modules/filter/tests/src/Unit/FilterHtmlTest.php4
-rw-r--r--core/modules/hal/src/Normalizer/ContentEntityNormalizer.php2
-rw-r--r--core/modules/hal/src/Normalizer/EntityReferenceItemNormalizer.php2
-rw-r--r--core/modules/image/tests/src/Functional/ImageStylesPathAndUrlTest.php2
-rw-r--r--core/modules/language/language.module2
-rw-r--r--core/modules/language/src/Config/LanguageConfigFactoryOverride.php2
-rw-r--r--core/modules/locale/locale.libraries.yml2
-rw-r--r--core/modules/media/tests/src/FunctionalJavascript/MediaDisplayTest.php2
-rw-r--r--core/modules/migrate/src/Plugin/Migration.php2
-rw-r--r--core/modules/migrate/src/Plugin/migrate/source/DummyQueryTrait.php2
-rw-r--r--core/modules/migrate/tests/src/Unit/process/CallbackTest.php2
-rw-r--r--core/modules/migrate_drupal/src/Plugin/MigrationWithFollowUpInterface.php2
-rw-r--r--core/modules/migrate_drupal/tests/src/Kernel/d6/MigrateDrupal6AuditIdsTest.php6
-rw-r--r--core/modules/migrate_drupal/tests/src/Kernel/d7/MigrateDrupal7AuditIdsTest.php6
-rw-r--r--core/modules/node/tests/src/Functional/NodeEditFormTest.php2
-rw-r--r--core/modules/path/src/Plugin/Field/FieldType/PathFieldItemList.php2
-rw-r--r--core/modules/rest/tests/src/Functional/Views/StyleSerializerTest.php2
-rw-r--r--core/modules/search/search.module2
-rw-r--r--core/modules/simpletest/src/TestBase.php2
-rw-r--r--core/modules/simpletest/src/Tests/InstallationProfileModuleTestsTest.php2
-rw-r--r--core/modules/system/src/Tests/Session/SessionHttpsTest.php2
-rw-r--r--core/modules/system/tests/modules/accept_header_routing_test/src/AcceptHeaderMiddleware.php2
-rw-r--r--core/modules/system/tests/modules/accept_header_routing_test/src/AcceptHeaderRoutingTestServiceProvider.php2
-rw-r--r--core/modules/system/tests/modules/conneg_test/src/Controller/TestController.php2
-rw-r--r--core/modules/system/tests/modules/entity_test/src/EntityTestAccessControlHandler.php2
-rw-r--r--core/modules/system/tests/modules/system_test/src/Controller/SystemTestController.php2
-rw-r--r--core/modules/system/tests/modules/theme_test/src/EventSubscriber/ThemeTestSubscriber.php2
-rw-r--r--core/modules/system/tests/src/Functional/File/FileSaveHtaccessLoggingTest.php2
-rw-r--r--core/modules/system/tests/src/Functional/Menu/MenuAccessTest.php2
-rw-r--r--core/modules/system/tests/src/Functional/Update/FilterHtmlUpdateTest.php2
-rw-r--r--core/modules/taxonomy/src/Entity/Vocabulary.php2
-rw-r--r--core/modules/taxonomy/tests/src/Kernel/Migrate/d7/MigrateTaxonomyTermTest.php2
-rw-r--r--core/modules/update/update.authorize.inc2
-rw-r--r--core/modules/user/src/Plugin/Block/UserLoginBlock.php2
-rw-r--r--core/modules/user/src/Plugin/migrate/process/UserLangcode.php2
-rw-r--r--core/modules/user/user.views_execution.inc2
-rw-r--r--core/modules/views/src/Plugin/views/field/MultiItemsFieldHandlerInterface.php2
-rw-r--r--core/modules/views/src/Tests/FieldApiDataTest.php2
-rw-r--r--core/modules/views/src/Tests/ViewKernelTestBase.php2
-rw-r--r--core/modules/views/src/ViewExecutable.php2
-rw-r--r--core/modules/views/tests/src/Functional/Handler/FieldWebTest.php2
-rw-r--r--core/modules/views/tests/src/Functional/Plugin/DisplayEntityReferenceTest.php2
-rw-r--r--core/modules/views/tests/src/Kernel/ViewExecutableTest.php2
-rw-r--r--core/modules/views_ui/js/views-admin.es6.js2
-rw-r--r--core/modules/views_ui/tests/src/Functional/TranslatedViewTest.php2
-rw-r--r--core/modules/views_ui/tests/src/FunctionalJavascript/DisplayTest.php2
-rw-r--r--core/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php2
-rw-r--r--core/tests/Drupal/FunctionalTests/Installer/InstallerExistingSettingsMismatchProfileTest.php2
-rw-r--r--core/tests/Drupal/KernelTests/Core/Config/ConfigImporterTest.php4
-rw-r--r--core/tests/Drupal/KernelTests/Core/Database/PrefixInfoTest.php2
-rw-r--r--core/tests/Drupal/KernelTests/Core/Entity/EntityDecoupledTranslationRevisionsTest.php2
-rw-r--r--core/tests/Drupal/KernelTests/Core/Entity/EntityQueryTest.php2
-rw-r--r--core/tests/Drupal/KernelTests/Core/Entity/RevisionableContentEntityBaseTest.php4
-rw-r--r--core/tests/Drupal/KernelTests/Core/Entity/ValidReferenceConstraintValidatorTest.php2
-rw-r--r--core/tests/Drupal/KernelTests/Core/File/MimeTypeTest.php2
-rw-r--r--core/tests/Drupal/KernelTests/Core/Form/FormValidationMessageOrderTest.php2
-rw-r--r--core/tests/Drupal/KernelTests/Core/Path/AliasTest.php2
-rw-r--r--core/tests/Drupal/KernelTests/Core/Routing/RouteProviderTest.php2
-rw-r--r--core/tests/Drupal/Tests/BrowserTestBase.php2
-rw-r--r--core/tests/Drupal/Tests/Component/Datetime/DateTimePlusTest.php2
-rw-r--r--core/tests/Drupal/Tests/Component/Transliteration/PhpTransliterationTest.php2
-rw-r--r--core/tests/Drupal/Tests/Core/Asset/CssOptimizerUnitTest.php2
-rw-r--r--core/tests/Drupal/Tests/Core/DrupalKernel/ValidateHostnameTest.php2
-rw-r--r--core/tests/Drupal/Tests/Core/Form/FormStateDecoratorBaseTest.php2
-rw-r--r--core/tests/Drupal/Tests/UiHelperTrait.php2
-rw-r--r--core/tests/Drupal/Tests/WebAssert.php2
-rw-r--r--core/themes/seven/css/components/tabs.css6
-rw-r--r--core/themes/seven/css/components/views-ui.css2
122 files changed, 141 insertions, 141 deletions
diff --git a/core/authorize.php b/core/authorize.php
index 9ab60dc..a965e60 100644
--- a/core/authorize.php
+++ b/core/authorize.php
@@ -125,7 +125,7 @@ if ($is_allowed) {
$links = $results['tasks'];
}
else {
- // Since this is being called outsite of the primary front controller,
+ // Since this is being called outside of the primary front controller,
// the base_url needs to be set explicitly to ensure that links are
// relative to the site root.
// @todo Simplify with https://www.drupal.org/node/2548095
diff --git a/core/lib/Drupal.php b/core/lib/Drupal.php
index acde856..cda2afd 100644
--- a/core/lib/Drupal.php
+++ b/core/lib/Drupal.php
@@ -229,7 +229,7 @@ class Drupal {
}
/**
- * Retrives the request stack.
+ * Retrieves the request stack.
*
* @return \Symfony\Component\HttpFoundation\RequestStack
* The request stack
diff --git a/core/lib/Drupal/Component/DependencyInjection/PhpArrayContainer.php b/core/lib/Drupal/Component/DependencyInjection/PhpArrayContainer.php
index 5d615db..ba45468 100644
--- a/core/lib/Drupal/Component/DependencyInjection/PhpArrayContainer.php
+++ b/core/lib/Drupal/Component/DependencyInjection/PhpArrayContainer.php
@@ -200,7 +200,7 @@ class PhpArrayContainer extends Container {
// The PhpArrayDumper just uses the hash of the private service
// definition to generate a unique ID.
//
- // @see \Drupal\Component\DependecyInjection\Dumper\OptimizedPhpArrayDumper::getPrivateServiceCall
+ // @see \Drupal\Component\DependencyInjection\Dumper\OptimizedPhpArrayDumper::getPrivateServiceCall
if ($type == 'private_service') {
$id = $argument->id;
diff --git a/core/lib/Drupal/Component/Gettext/PoStreamReader.php b/core/lib/Drupal/Component/Gettext/PoStreamReader.php
index f95b43b..a69c03c 100644
--- a/core/lib/Drupal/Component/Gettext/PoStreamReader.php
+++ b/core/lib/Drupal/Component/Gettext/PoStreamReader.php
@@ -394,7 +394,7 @@ class PoStreamReader implements PoStreamInterface, PoReaderInterface {
($this->context != 'MSGCTXT') &&
($this->context != 'MSGID_PLURAL') &&
($this->context != 'MSGSTR_ARR')) {
- // Plural message strings must come after msgid, msgxtxt,
+ // Plural message strings must come after msgid, msgctxt,
// msgid_plural, or other msgstr[] entries.
$this->errors[] = new FormattableMarkup('The translation stream %uri contains an error: "msgstr[]" is unexpected on line %line.', $log_vars);
return FALSE;
diff --git a/core/lib/Drupal/Component/HttpFoundation/SecuredRedirectResponse.php b/core/lib/Drupal/Component/HttpFoundation/SecuredRedirectResponse.php
index 931f816..03c44fa 100644
--- a/core/lib/Drupal/Component/HttpFoundation/SecuredRedirectResponse.php
+++ b/core/lib/Drupal/Component/HttpFoundation/SecuredRedirectResponse.php
@@ -36,7 +36,7 @@ abstract class SecuredRedirectResponse extends RedirectResponse {
* Copies over the values from the given response.
*
* @param \Symfony\Component\HttpFoundation\RedirectResponse $response
- * The redirect reponse object.
+ * The redirect response object.
*/
protected function fromResponse(RedirectResponse $response) {
$this->setProtocolVersion($response->getProtocolVersion());
diff --git a/core/lib/Drupal/Core/Archiver/ArchiveTar.php b/core/lib/Drupal/Core/Archiver/ArchiveTar.php
index 1570a1e..716511e 100644
--- a/core/lib/Drupal/Core/Archiver/ArchiveTar.php
+++ b/core/lib/Drupal/Core/Archiver/ArchiveTar.php
@@ -49,7 +49,7 @@
* The following changes have been done:
* Added namespace Drupal\Core\Archiver.
* Removed require_once 'PEAR.php'.
- * Added defintion of OS_WINDOWS taken from PEAR.php.
+ * Added definition of OS_WINDOWS taken from PEAR.php.
* Renamed class to ArchiveTar.
* Removed extends PEAR from class.
* Removed call parent:: __construct().
@@ -181,7 +181,7 @@ class ArchiveTar
if ($data == "\37\213") {
$this->_compress = true;
$this->_compress_type = 'gz';
- // No sure it's enought for a magic code ....
+ // Not sure it's enough for a magic code ....
} elseif ($data == "BZ") {
$this->_compress = true;
$this->_compress_type = 'bz2';
@@ -2385,7 +2385,7 @@ class ArchiveTar
/**
* Compress path by changing for example "/dir/foo/../bar" to "/dir/bar",
- * rand emove double slashes.
+ * and remove double slashes.
*
* @param string $p_dir path to reduce
*
diff --git a/core/lib/Drupal/Core/Cache/CacheBackendInterface.php b/core/lib/Drupal/Core/Cache/CacheBackendInterface.php
index 852305f..bf2ed7c 100644
--- a/core/lib/Drupal/Core/Cache/CacheBackendInterface.php
+++ b/core/lib/Drupal/Core/Cache/CacheBackendInterface.php
@@ -9,7 +9,7 @@ namespace Drupal\Core\Cache;
* Drupal\Core\Cache\DatabaseBackend provides the default implementation, which
* can be consulted as an example.
*
- * The cache indentifiers are case sensitive.
+ * The cache identifiers are case sensitive.
*
* @ingroup cache
*/
diff --git a/core/lib/Drupal/Core/Config/Entity/ConfigEntityInterface.php b/core/lib/Drupal/Core/Config/Entity/ConfigEntityInterface.php
index 248701e..8931f1e 100644
--- a/core/lib/Drupal/Core/Config/Entity/ConfigEntityInterface.php
+++ b/core/lib/Drupal/Core/Config/Entity/ConfigEntityInterface.php
@@ -189,7 +189,7 @@ interface ConfigEntityInterface extends EntityInterface, ThirdPartySettingsInter
* For example, a default view might not be installable if the base table
* doesn't exist.
*
- * @retun bool
+ * @return bool
* TRUE if the entity is installable, FALSE otherwise.
*/
public function isInstallable();
diff --git a/core/lib/Drupal/Core/Config/FileStorage.php b/core/lib/Drupal/Core/Config/FileStorage.php
index 84d23d3..32dd929 100644
--- a/core/lib/Drupal/Core/Config/FileStorage.php
+++ b/core/lib/Drupal/Core/Config/FileStorage.php
@@ -46,7 +46,7 @@ class FileStorage implements StorageInterface {
$this->collection = $collection;
// Use a NULL File Cache backend by default. This will ensure only the
- // internal statc caching of FileCache is used and thus avoids blowing up
+ // internal static caching of FileCache is used and thus avoids blowing up
// the APCu cache.
$this->fileCache = FileCacheFactory::get('config', ['cache_backend_class' => NULL]);
}
diff --git a/core/lib/Drupal/Core/Database/Driver/mysql/Install/Tasks.php b/core/lib/Drupal/Core/Database/Driver/mysql/Install/Tasks.php
index 6a639d7..17fc9a3 100644
--- a/core/lib/Drupal/Core/Database/Driver/mysql/Install/Tasks.php
+++ b/core/lib/Drupal/Core/Database/Driver/mysql/Install/Tasks.php
@@ -65,7 +65,7 @@ class Tasks extends InstallTasks {
Database::getConnection();
}
catch (\Exception $e) {
- // Detect utf8mb4 incompability.
+ // Detect utf8mb4 incompatibility.
if ($e->getCode() == Connection::UNSUPPORTED_CHARSET || ($e->getCode() == Connection::SQLSTATE_SYNTAX_ERROR && $e->errorInfo[1] == Connection::UNKNOWN_CHARSET)) {
$this->fail(t('Your MySQL server and PHP MySQL driver must support utf8mb4 character encoding. Make sure to use a database system that supports this (such as MySQL/MariaDB/Percona 5.5.3 and up), and that the utf8mb4 character set is compiled in. See the <a href=":documentation" target="_blank">MySQL documentation</a> for more information.', [':documentation' => 'https://dev.mysql.com/doc/refman/5.0/en/cannot-initialize-character-set.html']));
$info = Database::getConnectionInfo();
diff --git a/core/lib/Drupal/Core/Database/Driver/pgsql/Connection.php b/core/lib/Drupal/Core/Database/Driver/pgsql/Connection.php
index e696f24..80b3089 100644
--- a/core/lib/Drupal/Core/Database/Driver/pgsql/Connection.php
+++ b/core/lib/Drupal/Core/Database/Driver/pgsql/Connection.php
@@ -38,7 +38,7 @@ class Connection extends DatabaseConnection {
/**
* A map of condition operators to PostgreSQL operators.
*
- * In PostgreSQL, 'LIKE' is case-sensitive. ILKE should be used for
+ * In PostgreSQL, 'LIKE' is case-sensitive. ILIKE should be used for
* case-insensitive statements.
*/
protected static $postgresqlConditionOperatorMap = [
diff --git a/core/lib/Drupal/Core/DependencyInjection/Compiler/CorsCompilerPass.php b/core/lib/Drupal/Core/DependencyInjection/Compiler/CorsCompilerPass.php
index 207e094..3e0344a 100644
--- a/core/lib/Drupal/Core/DependencyInjection/Compiler/CorsCompilerPass.php
+++ b/core/lib/Drupal/Core/DependencyInjection/Compiler/CorsCompilerPass.php
@@ -22,7 +22,7 @@ class CorsCompilerPass implements CompilerPassInterface {
$enabled = !empty($cors_config['enabled']);
}
- // Remove the CORS middleware completly in case it was not enabled.
+ // Remove the CORS middleware completely in case it was not enabled.
if (!$enabled) {
$container->removeDefinition('http_middleware.cors');
}
diff --git a/core/lib/Drupal/Core/DrupalKernel.php b/core/lib/Drupal/Core/DrupalKernel.php
index 6bb1c24..a099327 100644
--- a/core/lib/Drupal/Core/DrupalKernel.php
+++ b/core/lib/Drupal/Core/DrupalKernel.php
@@ -1095,7 +1095,7 @@ class DrupalKernel implements DrupalKernelInterface, TerminableInterface {
// misses.
$old_loader = $this->classLoader;
$this->classLoader = $loader;
- // Our class loaders are preprended to ensure they come first like the
+ // Our class loaders are prepended to ensure they come first like the
// class loader they are replacing.
$old_loader->register(TRUE);
$loader->register(TRUE);
diff --git a/core/lib/Drupal/Core/Entity/Element/EntityAutocomplete.php b/core/lib/Drupal/Core/Entity/Element/EntityAutocomplete.php
index cbe91d9..0691239 100644
--- a/core/lib/Drupal/Core/Entity/Element/EntityAutocomplete.php
+++ b/core/lib/Drupal/Core/Entity/Element/EntityAutocomplete.php
@@ -251,8 +251,8 @@ class EntityAutocomplete extends Textfield {
/**
* Finds an entity from an autocomplete input without an explicit ID.
*
- * The method will return an entity ID if one single entity unambuguously
- * matches the incoming input, and sill assign form errors otherwise.
+ * The method will return an entity ID if one single entity unambiguously
+ * matches the incoming input, and assign form errors otherwise.
*
* @param \Drupal\Core\Entity\EntityReferenceSelection\SelectionInterface $handler
* Entity reference selection plugin.
diff --git a/core/lib/Drupal/Core/Entity/Plugin/DataType/EntityReference.php b/core/lib/Drupal/Core/Entity/Plugin/DataType/EntityReference.php
index 6cf57eb..a07e63d 100644
--- a/core/lib/Drupal/Core/Entity/Plugin/DataType/EntityReference.php
+++ b/core/lib/Drupal/Core/Entity/Plugin/DataType/EntityReference.php
@@ -16,7 +16,7 @@ use Drupal\Core\TypedData\DataReferenceBase;
* or the entity ID may be passed.
*
* Note that the definition of the referenced entity's type is required, whereas
- * defining referencable entity bundle(s) is optional. A reference defining the
+ * defining referenceable entity bundle(s) is optional. A reference defining the
* type and bundle of the referenced entity can be created as following:
* @code
* $definition = \Drupal\Core\Entity\EntityDefinition::create($entity_type)
diff --git a/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php b/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php
index 4221200..3fdf81b 100644
--- a/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php
+++ b/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php
@@ -518,7 +518,7 @@ class SqlContentEntityStorage extends ContentEntityStorageBase implements SqlEnt
// Some fields can have more then one columns in the data table so
// column names are needed.
foreach ($data_fields as $data_field) {
- // \Drupal\Core\Entity\Sql\TableMappingInterface:: getColumNames()
+ // \Drupal\Core\Entity\Sql\TableMappingInterface::getColumnNames()
// returns an array keyed by property names so remove the keys
// before array_merge() to avoid losing data with fields having the
// same columns i.e. value.
diff --git a/core/lib/Drupal/Core/Form/FormBuilder.php b/core/lib/Drupal/Core/Form/FormBuilder.php
index d94b910..d64c1df 100644
--- a/core/lib/Drupal/Core/Form/FormBuilder.php
+++ b/core/lib/Drupal/Core/Form/FormBuilder.php
@@ -687,7 +687,7 @@ class FormBuilder implements FormBuilderInterface, FormValidatorInterface, FormS
// will be replaced at the very last moment. This ensures forms with
// dynamically generated action URLs don't have poor cacheability.
// Use the proper API to generate the placeholder, when we have one. See
- // https://www.drupal.org/node/2562341. The placholder uses a fixed string
+ // https://www.drupal.org/node/2562341. The placeholder uses a fixed string
// that is Crypt::hashBase64('Drupal\Core\Form\FormBuilder::prepareForm');
$placeholder = 'form_action_p_pvdeGsVG5zNF_XLGPTvYSKCf43t8qZYSwcfZl2uzM';
diff --git a/core/lib/Drupal/Core/Http/HandlerStackConfigurator.php b/core/lib/Drupal/Core/Http/HandlerStackConfigurator.php
index 69e3913..4a0bfde 100644
--- a/core/lib/Drupal/Core/Http/HandlerStackConfigurator.php
+++ b/core/lib/Drupal/Core/Http/HandlerStackConfigurator.php
@@ -43,7 +43,7 @@ class HandlerStackConfigurator {
protected $container;
/**
- * Contructs a new HandlerStackConfigurator object.
+ * Constructs a new HandlerStackConfigurator object.
*
* @param \Symfony\Component\DependencyInjection\ContainerInterface $container
* The service container.
diff --git a/core/lib/Drupal/Core/Http/TrustedHostsRequestFactory.php b/core/lib/Drupal/Core/Http/TrustedHostsRequestFactory.php
index 3aa0490..f1ddd55 100644
--- a/core/lib/Drupal/Core/Http/TrustedHostsRequestFactory.php
+++ b/core/lib/Drupal/Core/Http/TrustedHostsRequestFactory.php
@@ -44,7 +44,7 @@ class TrustedHostsRequestFactory {
* @param array $request
* (optional) An array of request variables.
* @param array $attributes
- * (optioanl) An array of attributes.
+ * (optional) An array of attributes.
* @param array $cookies
* (optional) The request cookies ($_COOKIE).
* @param array $files
diff --git a/core/lib/Drupal/Core/Installer/Exception/InstallProfileMismatchException.php b/core/lib/Drupal/Core/Installer/Exception/InstallProfileMismatchException.php
index 7717b09..bca7cca 100644
--- a/core/lib/Drupal/Core/Installer/Exception/InstallProfileMismatchException.php
+++ b/core/lib/Drupal/Core/Installer/Exception/InstallProfileMismatchException.php
@@ -19,7 +19,7 @@ class InstallProfileMismatchException extends InstallerException {
* @param string $settings_profile
* The profile in settings.php.
* @param string $settings_file
- * The path to settigns.php.
+ * The path to settings.php.
* @param \Drupal\Core\StringTranslation\TranslationInterface $string_translation
* The string translation manager.
*
diff --git a/core/lib/Drupal/Core/Menu/MenuLinkTreeInterface.php b/core/lib/Drupal/Core/Menu/MenuLinkTreeInterface.php
index 8bd3c38..32a0683 100644
--- a/core/lib/Drupal/Core/Menu/MenuLinkTreeInterface.php
+++ b/core/lib/Drupal/Core/Menu/MenuLinkTreeInterface.php
@@ -30,7 +30,7 @@ interface MenuLinkTreeInterface {
*
* Builds menu link tree parameters that:
* - Expand all links in the active trail based on route being viewed.
- * - Expand the descendents of the links in the active trail whose
+ * - Expand the descendants of the links in the active trail whose
* 'expanded' flag is enabled.
*
* This only sets the (relatively complex) parameters to achieve the two above
diff --git a/core/lib/Drupal/Core/PageCache/RequestPolicy/NoSessionOpen.php b/core/lib/Drupal/Core/PageCache/RequestPolicy/NoSessionOpen.php
index fd583a8..e29ae0b 100644
--- a/core/lib/Drupal/Core/PageCache/RequestPolicy/NoSessionOpen.php
+++ b/core/lib/Drupal/Core/PageCache/RequestPolicy/NoSessionOpen.php
@@ -11,7 +11,7 @@ use Symfony\Component\HttpFoundation\Request;
*
* Do not serve cached pages to authenticated users, or to anonymous users when
* $_SESSION is non-empty. $_SESSION may contain status messages from a form
- * submission, the contents of a shopping cart, or other userspecific content
+ * submission, the contents of a shopping cart, or other user-specific content
* that should not be cached and displayed to other users.
*/
class NoSessionOpen implements RequestPolicyInterface {
diff --git a/core/lib/Drupal/Core/ProxyBuilder/ProxyBuilder.php b/core/lib/Drupal/Core/ProxyBuilder/ProxyBuilder.php
index a718a95..f808fba 100644
--- a/core/lib/Drupal/Core/ProxyBuilder/ProxyBuilder.php
+++ b/core/lib/Drupal/Core/ProxyBuilder/ProxyBuilder.php
@@ -5,7 +5,7 @@ namespace Drupal\Core\ProxyBuilder;
use Drupal\Component\ProxyBuilder\ProxyBuilder as BaseProxyBuilder;
/**
- * Extend the component proxy builder by using the DependencySerialziationTrait.
+ * Extend the component proxy builder by using the DependencySerializationTrait.
*/
class ProxyBuilder extends BaseProxyBuilder {
diff --git a/core/lib/Drupal/Core/Render/Element/RenderElement.php b/core/lib/Drupal/Core/Render/Element/RenderElement.php
index 5a26db0..3581458 100644
--- a/core/lib/Drupal/Core/Render/Element/RenderElement.php
+++ b/core/lib/Drupal/Core/Render/Element/RenderElement.php
@@ -32,7 +32,7 @@ use Drupal\Core\Url;
* strings, if they are literals provided by your module, should be
* internationalized and translated; see the
* @link i18n Internationalization topic @endlink for more information. Note
- * that although in the properies list that follows, they are designated to be
+ * that although in the properties list that follows, they are designated to be
* of type string, they would generally end up being
* \Drupal\Core\StringTranslation\TranslatableMarkup objects instead.
*
diff --git a/core/lib/Drupal/Core/Session/SessionConfiguration.php b/core/lib/Drupal/Core/Session/SessionConfiguration.php
index 49dc63e..bbdde7c 100644
--- a/core/lib/Drupal/Core/Session/SessionConfiguration.php
+++ b/core/lib/Drupal/Core/Session/SessionConfiguration.php
@@ -106,7 +106,7 @@ class SessionConfiguration implements SessionConfigurationInterface {
* Return the session cookie domain.
*
* The Set-Cookie response header and its domain attribute are defined in RFC
- * 2109, RFC 2965 and RFC 6265 each one superseeding the previous version.
+ * 2109, RFC 2965 and RFC 6265 each one superseding the previous version.
*
* @see http://tools.ietf.org/html/rfc2109
* @see http://tools.ietf.org/html/rfc2965
diff --git a/core/lib/Drupal/Core/StreamWrapper/StreamWrapperInterface.php b/core/lib/Drupal/Core/StreamWrapper/StreamWrapperInterface.php
index 1845b87..84ab52c 100644
--- a/core/lib/Drupal/Core/StreamWrapper/StreamWrapperInterface.php
+++ b/core/lib/Drupal/Core/StreamWrapper/StreamWrapperInterface.php
@@ -82,7 +82,7 @@ interface StreamWrapperInterface extends PhpStreamWrapperInterface {
const READ_VISIBLE = 0x0014;
/**
- * This is the default 'type' falg. This does not include
+ * This is the default 'type' flag. This does not include
* StreamWrapperInterface::LOCAL, because PHP grants a greater trust level to
* local files (for example, they can be used in an "include" statement,
* regardless of the "allow_url_include" setting), so stream wrappers need to
diff --git a/core/lib/Drupal/Core/TypedData/TypedDataManager.php b/core/lib/Drupal/Core/TypedData/TypedDataManager.php
index 228722f..9ac018c 100644
--- a/core/lib/Drupal/Core/TypedData/TypedDataManager.php
+++ b/core/lib/Drupal/Core/TypedData/TypedDataManager.php
@@ -188,7 +188,7 @@ class TypedDataManager extends DefaultPluginManager implements TypedDataManagerI
throw new \InvalidArgumentException("Property $property_name is unknown.");
}
// Create the prototype without any value, but with initial parenting
- // so that constructors can set up the objects correclty.
+ // so that constructors can set up the objects correctly.
$this->prototypes[$key] = $this->create($definition, NULL, $property_name, $object);
}
diff --git a/core/lib/Drupal/Core/Update/UpdateRegistry.php b/core/lib/Drupal/Core/Update/UpdateRegistry.php
index a4e0081..76ac81c 100644
--- a/core/lib/Drupal/Core/Update/UpdateRegistry.php
+++ b/core/lib/Drupal/Core/Update/UpdateRegistry.php
@@ -197,7 +197,7 @@ class UpdateRegistry {
}
/**
- * Registers that update fucntions got executed.
+ * Registers that update functions were executed.
*
* @param string[] $function_names
* The executed update functions.
diff --git a/core/lib/Drupal/Core/Updater/Module.php b/core/lib/Drupal/Core/Updater/Module.php
index 35232b3..4829c53 100644
--- a/core/lib/Drupal/Core/Updater/Module.php
+++ b/core/lib/Drupal/Core/Updater/Module.php
@@ -105,7 +105,7 @@ class Module extends Updater implements UpdaterInterface {
* {@inheritdoc}
*/
public function postInstallTasks() {
- // Since this is being called outsite of the primary front controller,
+ // Since this is being called outside of the primary front controller,
// the base_url needs to be set explicitly to ensure that links are
// relative to the site root.
// @todo Simplify with https://www.drupal.org/node/2548095
diff --git a/core/lib/Drupal/Core/Updater/Theme.php b/core/lib/Drupal/Core/Updater/Theme.php
index 7ac70f0..4b6cd40 100644
--- a/core/lib/Drupal/Core/Updater/Theme.php
+++ b/core/lib/Drupal/Core/Updater/Theme.php
@@ -87,7 +87,7 @@ class Theme extends Updater implements UpdaterInterface {
* {@inheritdoc}
*/
public function postInstallTasks() {
- // Since this is being called outsite of the primary front controller,
+ // Since this is being called outside of the primary front controller,
// the base_url needs to be set explicitly to ensure that links are
// relative to the site root.
// @todo Simplify with https://www.drupal.org/node/2548095
diff --git a/core/misc/announce.es6.js b/core/misc/announce.es6.js
index f8ab348..2d852f7 100644
--- a/core/misc/announce.es6.js
+++ b/core/misc/announce.es6.js
@@ -28,7 +28,7 @@
* @type {Drupal~behavior}
*
* @prop {Drupal~behaviorAttach} attach
- * Attaches the behavior for drupalAnnouce.
+ * Attaches the behavior for drupalAnnounce.
*/
Drupal.behaviors.drupalAnnounce = {
attach(context) {
diff --git a/core/misc/autocomplete.es6.js b/core/misc/autocomplete.es6.js
index 17993cf..65f6332 100644
--- a/core/misc/autocomplete.es6.js
+++ b/core/misc/autocomplete.es6.js
@@ -218,7 +218,7 @@
.find('input.form-autocomplete')
.once('autocomplete');
if ($autocomplete.length) {
- // Allow options to be overriden per instance.
+ // Allow options to be overridden per instance.
const blacklist = $autocomplete.attr(
'data-autocomplete-first-character-blacklist',
);
diff --git a/core/modules/aggregator/src/ItemsImporter.php b/core/modules/aggregator/src/ItemsImporter.php
index aa18d65..156c7fb 100644
--- a/core/modules/aggregator/src/ItemsImporter.php
+++ b/core/modules/aggregator/src/ItemsImporter.php
@@ -94,7 +94,7 @@ class ItemsImporter implements ItemsImporterInterface {
watchdog_exception('aggregator', $e);
}
- // Store instances in an array so we dont have to instantiate new objects.
+ // Store instances in an array so we don't have to instantiate new objects.
$processor_instances = [];
foreach ($this->config->get('processors') as $processor) {
try {
diff --git a/core/modules/ban/src/Plugin/migrate/destination/BlockedIp.php b/core/modules/ban/src/Plugin/migrate/destination/BlockedIp.php
index 7c570bb..203905f 100644
--- a/core/modules/ban/src/Plugin/migrate/destination/BlockedIp.php
+++ b/core/modules/ban/src/Plugin/migrate/destination/BlockedIp.php
@@ -33,7 +33,7 @@ class BlockedIP extends DestinationBase implements ContainerFactoryPluginInterfa
* @param string $plugin_id
* The plugin ID.
* @param mixed $plugin_definition
- * The plugin definiiton.
+ * The plugin definition.
* @param \Drupal\migrate\Plugin\MigrationInterface $migration
* The current migration.
* @param \Drupal\ban\BanIpManagerInterface $ban_manager
diff --git a/core/modules/book/tests/src/Functional/BookTest.php b/core/modules/book/tests/src/Functional/BookTest.php
index d02dfd5..6fe03de 100644
--- a/core/modules/book/tests/src/Functional/BookTest.php
+++ b/core/modules/book/tests/src/Functional/BookTest.php
@@ -177,7 +177,7 @@ class BookTest extends BrowserTestBase {
$this->checkBookNode($other_book, [$node], FALSE, FALSE, $node, []);
$this->checkBookNode($node, NULL, $other_book, $other_book, FALSE, [$other_book]);
- // Test that we can save a book programatically.
+ // Test that we can save a book programmatically.
$this->drupalLogin($this->bookAuthor);
$book = $this->createBookNode('new');
$book->save();
@@ -282,7 +282,7 @@ class BookTest extends BrowserTestBase {
$nodes[$child] = $this->createBookNode($book->id(), $nodes[$parent]->id());
}
$this->drupalGet($nodes[0]->toUrl('edit-form'));
- // Snice Node 0 has children 2 levels deep, nodes 10 and 11 should not
+ // Since Node 0 has children 2 levels deep, nodes 10 and 11 should not
// appear in the selector.
$this->assertNoOption('edit-book-pid', $nodes[10]->id());
$this->assertNoOption('edit-book-pid', $nodes[11]->id());
diff --git a/core/modules/ckeditor/js/ckeditor.es6.js b/core/modules/ckeditor/js/ckeditor.es6.js
index 2ce0949..7f725db 100644
--- a/core/modules/ckeditor/js/ckeditor.es6.js
+++ b/core/modules/ckeditor/js/ckeditor.es6.js
@@ -68,7 +68,7 @@
* Reacts on a change in the editor element.
*
* @param {HTMLElement} element
- * The element where the change occured.
+ * The element where the change occurred.
* @param {function} callback
* Callback called with the value of the editor.
*
diff --git a/core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/LlamaContextualAndButton.php b/core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/LlamaContextualAndButton.php
index 2894fc9..450a396 100644
--- a/core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/LlamaContextualAndButton.php
+++ b/core/modules/ckeditor/tests/modules/src/Plugin/CKEditorPlugin/LlamaContextualAndButton.php
@@ -9,7 +9,7 @@ use Drupal\Core\Form\FormStateInterface;
use Drupal\editor\Entity\Editor;
/**
- * Defines a "LlamaContextualAndbutton" plugin, with a contextually OR toolbar
+ * Defines a "LlamaContextualAndButton" plugin, with a contextually OR toolbar
* builder-enabled "llama" feature.
*
* @CKEditorPlugin(
diff --git a/core/modules/comment/src/CommentFieldItemList.php b/core/modules/comment/src/CommentFieldItemList.php
index 7a4cdad..73215e8 100644
--- a/core/modules/comment/src/CommentFieldItemList.php
+++ b/core/modules/comment/src/CommentFieldItemList.php
@@ -50,7 +50,7 @@ class CommentFieldItemList extends FieldItemList {
return $return_as_object ? $result : $result->isAllowed();
}
if ($operation === 'view') {
- // Only users with either post comments or access comments permisison can
+ // Only users with "post comments" or "access comments" permission can
// view the field value. The formatter,
// Drupal\comment\Plugin\Field\FieldFormatter\CommentDefaultFormatter,
// takes care of showing the thread and form based on individual
diff --git a/core/modules/comment/tests/src/Functional/Hal/CommentHalJsonAnonTest.php b/core/modules/comment/tests/src/Functional/Hal/CommentHalJsonAnonTest.php
index f9e9958..723df95 100644
--- a/core/modules/comment/tests/src/Functional/Hal/CommentHalJsonAnonTest.php
+++ b/core/modules/comment/tests/src/Functional/Hal/CommentHalJsonAnonTest.php
@@ -14,7 +14,7 @@ class CommentHalJsonAnonTest extends CommentHalJsonTestBase {
/**
* {@inheritdoc}
*
- * Anononymous users cannot edit their own comments.
+ * Anonymous users cannot edit their own comments.
*
* @see \Drupal\comment\CommentAccessControlHandler::checkAccess
*
diff --git a/core/modules/comment/tests/src/Functional/Rest/CommentJsonAnonTest.php b/core/modules/comment/tests/src/Functional/Rest/CommentJsonAnonTest.php
index ffced7a..54925dd 100644
--- a/core/modules/comment/tests/src/Functional/Rest/CommentJsonAnonTest.php
+++ b/core/modules/comment/tests/src/Functional/Rest/CommentJsonAnonTest.php
@@ -24,7 +24,7 @@ class CommentJsonAnonTest extends CommentResourceTestBase {
/**
* {@inheritdoc}
*
- * Anononymous users cannot edit their own comments.
+ * Anonymous users cannot edit their own comments.
*
* @see \Drupal\comment\CommentAccessControlHandler::checkAccess
*
diff --git a/core/modules/comment/tests/src/Functional/Rest/CommentResourceTestBase.php b/core/modules/comment/tests/src/Functional/Rest/CommentResourceTestBase.php
index 7d1abdb..bd71e4f 100644
--- a/core/modules/comment/tests/src/Functional/Rest/CommentResourceTestBase.php
+++ b/core/modules/comment/tests/src/Functional/Rest/CommentResourceTestBase.php
@@ -60,7 +60,7 @@ abstract class CommentResourceTestBase extends EntityResourceTestBase {
$this->grantPermissionsToTestedRole(['post comments']);
break;
case 'PATCH':
- // Anononymous users are not ever allowed to edit their own comments. To
+ // Anonymous users are not ever allowed to edit their own comments. To
// be able to test PATCHing comments as the anonymous user, the more
// permissive 'administer comments' permission must be granted.
// @see \Drupal\comment\CommentAccessControlHandler::checkAccess
diff --git a/core/modules/comment/tests/src/Functional/Rest/CommentXmlAnonTest.php b/core/modules/comment/tests/src/Functional/Rest/CommentXmlAnonTest.php
index c2e529e..22c1b85 100644
--- a/core/modules/comment/tests/src/Functional/Rest/CommentXmlAnonTest.php
+++ b/core/modules/comment/tests/src/Functional/Rest/CommentXmlAnonTest.php
@@ -26,7 +26,7 @@ class CommentXmlAnonTest extends CommentResourceTestBase {
/**
* {@inheritdoc}
*
- * Anononymous users cannot edit their own comments.
+ * Anonymous users cannot edit their own comments.
*
* @see \Drupal\comment\CommentAccessControlHandler::checkAccess
*
diff --git a/core/modules/config/tests/src/Kernel/ConfigUninstallViaCliImportTest.php b/core/modules/config/tests/src/Kernel/ConfigUninstallViaCliImportTest.php
index 0ab0fd1..722546f 100644
--- a/core/modules/config/tests/src/Kernel/ConfigUninstallViaCliImportTest.php
+++ b/core/modules/config/tests/src/Kernel/ConfigUninstallViaCliImportTest.php
@@ -55,7 +55,7 @@ class ConfigUninstallViaCliImportTest extends KernelTestBase {
}
/**
- * Tests that the config mopdule can be uninstalled via CLI config import.
+ * Tests that the config module can be uninstalled via CLI config import.
*
* @see \Drupal\config\ConfigSubscriber
*/
diff --git a/core/modules/config_translation/src/FormElement/ElementInterface.php b/core/modules/config_translation/src/FormElement/ElementInterface.php
index 936b557..8df5c01 100644
--- a/core/modules/config_translation/src/FormElement/ElementInterface.php
+++ b/core/modules/config_translation/src/FormElement/ElementInterface.php
@@ -23,7 +23,7 @@ interface ElementInterface {
public static function create(TypedDataInterface $schema);
/**
- * Builds a render array containg the source and translation form elements.
+ * Builds a render array containing the source and translation form elements.
*
* @param \Drupal\Core\Language\LanguageInterface $source_language
* The source language of the configuration object.
diff --git a/core/modules/content_translation/tests/src/Kernel/ContentTranslationSyncUnitTest.php b/core/modules/content_translation/tests/src/Kernel/ContentTranslationSyncUnitTest.php
index 5c4784a..01e1a0d 100644
--- a/core/modules/content_translation/tests/src/Kernel/ContentTranslationSyncUnitTest.php
+++ b/core/modules/content_translation/tests/src/Kernel/ContentTranslationSyncUnitTest.php
@@ -249,7 +249,7 @@ class ContentTranslationSyncUnitTest extends KernelTestBase {
for ($delta = 0; $delta < $this->cardinality; $delta++) {
foreach ($this->columns as $column) {
// If the column is synchronized, the value should have been synced,
- // for unsychronized columns, the value must not change.
+ // for unsynchronized columns, the value must not change.
$expected_value = in_array($column, $this->synchronized) ? $changed_items[$delta][$column] : $this->unchangedFieldValues[$langcode][$delta][$column];
$this->assertEqual($field_values[$langcode][$delta][$column], $expected_value, "Differing Item $delta column $column for langcode $langcode synced correctly");
}
diff --git a/core/modules/contextual/js/toolbar/views/AuralView.es6.js b/core/modules/contextual/js/toolbar/views/AuralView.es6.js
index 3d34335..0fb25e1 100644
--- a/core/modules/contextual/js/toolbar/views/AuralView.es6.js
+++ b/core/modules/contextual/js/toolbar/views/AuralView.es6.js
@@ -96,9 +96,9 @@
* The keypress event.
*/
onKeypress(event) {
- // The first tab key press is tracked so that an annoucement about tabbing
- // constraints can be raised if edit mode is enabled when the page is
- // loaded.
+ // The first tab key press is tracked so that an announcement about
+ // tabbing constraints can be raised if edit mode is enabled when the page
+ // is loaded.
if (
!this.announcedOnce &&
event.keyCode === 9 &&
diff --git a/core/modules/datetime/src/Plugin/views/filter/Date.php b/core/modules/datetime/src/Plugin/views/filter/Date.php
index 1421520..41c4726 100644
--- a/core/modules/datetime/src/Plugin/views/filter/Date.php
+++ b/core/modules/datetime/src/Plugin/views/filter/Date.php
@@ -50,7 +50,7 @@ class Date extends NumericDate implements ContainerFactoryPluginInterface {
protected $calculateOffset = TRUE;
/**
- * The request stack used to determin current time.
+ * The request stack used to determine current time.
*
* @var \Symfony\Component\HttpFoundation\RequestStack
*/
diff --git a/core/modules/datetime/tests/src/Functional/DateTimeFieldTest.php b/core/modules/datetime/tests/src/Functional/DateTimeFieldTest.php
index 89a7605..a994cc8 100644
--- a/core/modules/datetime/tests/src/Functional/DateTimeFieldTest.php
+++ b/core/modules/datetime/tests/src/Functional/DateTimeFieldTest.php
@@ -171,7 +171,7 @@ class DateTimeFieldTest extends DateTestBase {
// past. First update the test entity so that the date difference always
// has the same interval. Since the database always stores UTC, and the
// interval will use this, force the test date to use UTC and not the local
- // or user timezome.
+ // or user timezone.
$timestamp = REQUEST_TIME - 87654321;
$entity = EntityTest::load($id);
$field_name = $this->fieldStorage->getName();
@@ -201,7 +201,7 @@ class DateTimeFieldTest extends DateTestBase {
// future. First update the test entity so that the date difference always
// has the same interval. Since the database always stores UTC, and the
// interval will use this, force the test date to use UTC and not the local
- // or user timezome.
+ // or user timezone.
$timestamp = REQUEST_TIME + 87654321;
$entity = EntityTest::load($id);
$field_name = $this->fieldStorage->getName();
@@ -323,7 +323,7 @@ class DateTimeFieldTest extends DateTestBase {
// past. First update the test entity so that the date difference always
// has the same interval. Since the database always stores UTC, and the
// interval will use this, force the test date to use UTC and not the local
- // or user timezome.
+ // or user timezone.
$timestamp = REQUEST_TIME - 87654321;
$entity = EntityTest::load($id);
$field_name = $this->fieldStorage->getName();
@@ -350,7 +350,7 @@ class DateTimeFieldTest extends DateTestBase {
// future. First update the test entity so that the date difference always
// has the same interval. Since the database always stores UTC, and the
// interval will use this, force the test date to use UTC and not the local
- // or user timezome.
+ // or user timezone.
$timestamp = REQUEST_TIME + 87654321;
$entity = EntityTest::load($id);
$field_name = $this->fieldStorage->getName();
diff --git a/core/modules/dblog/tests/src/Functional/Update/DblogFiltersAndFieldsUpgradeTest.php b/core/modules/dblog/tests/src/Functional/Update/DblogFiltersAndFieldsUpgradeTest.php
index 6610363..8c33494 100644
--- a/core/modules/dblog/tests/src/Functional/Update/DblogFiltersAndFieldsUpgradeTest.php
+++ b/core/modules/dblog/tests/src/Functional/Update/DblogFiltersAndFieldsUpgradeTest.php
@@ -65,7 +65,7 @@ class DblogFiltersAndFieldsUpgradeTest extends UpdatePathTestBase {
// Now save the view. This trigger dblog_view_presave().
$view->save();
- // Finally check the same convertion proccess ran.
+ // Finally check the same conversion process ran.
$data = $view->storage->toArray();
$fields = $data['display']['default']['display_options']['fields'];
$filters = $data['display']['default']['display_options']['filters'];
diff --git a/core/modules/dblog/tests/src/Functional/Update/DblogNoLogsAvailableUpgradeTest.php b/core/modules/dblog/tests/src/Functional/Update/DblogNoLogsAvailableUpgradeTest.php
index e3545d9..5002f25 100644
--- a/core/modules/dblog/tests/src/Functional/Update/DblogNoLogsAvailableUpgradeTest.php
+++ b/core/modules/dblog/tests/src/Functional/Update/DblogNoLogsAvailableUpgradeTest.php
@@ -6,7 +6,7 @@ use Drupal\FunctionalTests\Update\UpdatePathTestBase;
use Drupal\views\Views;
/**
- * Test the upgrade path of changing the emtpy text area for watchdog view.
+ * Test the upgrade path of changing the empty text area for watchdog view.
*
* @see dblog_update_8600()
*
diff --git a/core/modules/dblog/tests/src/Functional/Update/DblogRecentLogsUsingViewsUpdateTest.php b/core/modules/dblog/tests/src/Functional/Update/DblogRecentLogsUsingViewsUpdateTest.php
index 37e1b09..3f54207 100644
--- a/core/modules/dblog/tests/src/Functional/Update/DblogRecentLogsUsingViewsUpdateTest.php
+++ b/core/modules/dblog/tests/src/Functional/Update/DblogRecentLogsUsingViewsUpdateTest.php
@@ -5,7 +5,7 @@ namespace Drupal\Tests\dblog\Functional\Update;
use Drupal\FunctionalTests\Update\UpdatePathTestBase;
/**
- * Ensures that update hook that creates the watchdog view ran sucessfully.
+ * Ensures that update hook that creates the watchdog view ran successfully.
*
* @group Update
* @group legacy
@@ -25,7 +25,7 @@ class DblogRecentLogsUsingViewsUpdateTest extends UpdatePathTestBase {
* Ensures that update hook is run for dblog module.
*/
public function testUpdate() {
- // Make sure the watchog view doesn't exist before the updates.
+ // Make sure the watchdog view doesn't exist before the updates.
$view = \Drupal::entityTypeManager()->getStorage('view')->load('watchdog');
$this->assertNull($view);
diff --git a/core/modules/field/field.api.php b/core/modules/field/field.api.php
index 64e2893..5115e42 100644
--- a/core/modules/field/field.api.php
+++ b/core/modules/field/field.api.php
@@ -292,7 +292,7 @@ function hook_field_widget_multivalue_WIDGET_TYPE_form_alter(array &$elements, \
// Code here will only act on widgets of type WIDGET_TYPE. For example,
// hook_field_widget_multivalue_mymodule_autocomplete_form_alter() will only
// act on widgets of type 'mymodule_autocomplete'.
- // Change the autcomplete route for each autocomplete element within the
+ // Change the autocomplete route for each autocomplete element within the
// multivalue widget.
foreach (Element::children($elements) as $delta => $element) {
$elements[$delta]['#autocomplete_route_name'] = 'mymodule.autocomplete_route';
diff --git a/core/modules/field_ui/src/Tests/ManageDisplayTest.php b/core/modules/field_ui/src/Tests/ManageDisplayTest.php
index 783e7fe..4975299 100644
--- a/core/modules/field_ui/src/Tests/ManageDisplayTest.php
+++ b/core/modules/field_ui/src/Tests/ManageDisplayTest.php
@@ -487,7 +487,7 @@ class ManageDisplayTest extends WebTestBase {
}
/**
- * Asserts that a string is (not) found in the rendered nodein a view mode.
+ * Asserts that a string is (not) found in the rendered node in a view mode.
*
* This helper function is used by assertNodeViewText() and
* assertNodeViewNoText().
diff --git a/core/modules/file/tests/src/Functional/FileManagedFileElementTest.php b/core/modules/file/tests/src/Functional/FileManagedFileElementTest.php
index a3c7a0c..94d00ef 100644
--- a/core/modules/file/tests/src/Functional/FileManagedFileElementTest.php
+++ b/core/modules/file/tests/src/Functional/FileManagedFileElementTest.php
@@ -191,7 +191,7 @@ class FileManagedFileElementTest extends FileFieldTestBase {
$this->assertNoText('The file used in the Managed file &amp; butter field may not be referenced.');
$this->assertText('The file ids are ' . $file->id());
- // Enable marking unused files as tempory, unused permanent files must not
+ // Enable marking unused files as temporary, unused permanent files must not
// be referenced now.
$this->config('file.settings')
->set('make_unused_managed_files_temporary', TRUE)
diff --git a/core/modules/filter/tests/src/Unit/FilterHtmlTest.php b/core/modules/filter/tests/src/Unit/FilterHtmlTest.php
index 664c2a3..f8285ec 100644
--- a/core/modules/filter/tests/src/Unit/FilterHtmlTest.php
+++ b/core/modules/filter/tests/src/Unit/FilterHtmlTest.php
@@ -66,11 +66,11 @@ class FilterHtmlTest extends UnitTestCase {
['<code class="invalid alpaca">foreach ($a as $b) {}</code>', '<code>foreach ($a as $b) {}</code>'],
['<h3 class="big">a heading</h3>', '<h3>a heading</h3>'],
['<h3 id="first">a heading</h3>', '<h3 id="first">a heading</h3>'],
- // Wilcard value. Case matters, so upper case doesn't match.
+ // Wildcard value. Case matters, so upper case doesn't match.
['<code class="align-left bold">foreach ($a as $b) {}</code>', '<code class="align-left">foreach ($a as $b) {}</code>'],
['<code class="align-right ">foreach ($a as $b) {}</code>', '<code class="align-right">foreach ($a as $b) {}</code>'],
['<code class="Align-right ">foreach ($a as $b) {}</code>', '<code>foreach ($a as $b) {}</code>'],
- // Wilcard name, case is ignored.
+ // Wildcard name, case is ignored.
['<ol style="display: none;" llama-wim="noble majestic"></ol>', '<ol llama-wim="noble majestic"></ol>'],
['<ol style="display: none;" LlamA-Wim="majestic"></ol>', '<ol llama-wim="majestic"></ol>'],
['<ol style="display: none;" llama-="noble majestic"></ol>', '<ol llama-="noble majestic"></ol>'],
diff --git a/core/modules/hal/src/Normalizer/ContentEntityNormalizer.php b/core/modules/hal/src/Normalizer/ContentEntityNormalizer.php
index 4a9f7c4..c8ceb1c 100644
--- a/core/modules/hal/src/Normalizer/ContentEntityNormalizer.php
+++ b/core/modules/hal/src/Normalizer/ContentEntityNormalizer.php
@@ -126,7 +126,7 @@ class ContentEntityNormalizer extends NormalizerBase {
// Figure out the language to use.
if (isset($data[$default_langcode_key])) {
- // Find the field item for which the default_lancode value is set to 1 and
+ // Find the field item for which the default_langcode value is set to 1 and
// set the langcode the right default language.
foreach ($data[$default_langcode_key] as $item) {
if (!empty($item['value']) && isset($item['lang'])) {
diff --git a/core/modules/hal/src/Normalizer/EntityReferenceItemNormalizer.php b/core/modules/hal/src/Normalizer/EntityReferenceItemNormalizer.php
index a9fc7e6..4b9565b 100644
--- a/core/modules/hal/src/Normalizer/EntityReferenceItemNormalizer.php
+++ b/core/modules/hal/src/Normalizer/EntityReferenceItemNormalizer.php
@@ -127,7 +127,7 @@ class EntityReferenceItemNormalizer extends FieldItemNormalizer implements UuidR
$target_entity_type_id = $item->getFieldDefinition()->getSetting('target_type');
// If the entity type is the same as the parent, we can check that. This is
- // just a shortcut to avoid getting the entity type defintition and checking
+ // just a shortcut to avoid getting the entity type definition and checking
// the class.
if ($target_entity_type_id === $referencing_entity->getEntityTypeId()) {
return $referencing_entity instanceof FieldableEntityInterface;
diff --git a/core/modules/image/tests/src/Functional/ImageStylesPathAndUrlTest.php b/core/modules/image/tests/src/Functional/ImageStylesPathAndUrlTest.php
index c5b81e7..c905c04 100644
--- a/core/modules/image/tests/src/Functional/ImageStylesPathAndUrlTest.php
+++ b/core/modules/image/tests/src/Functional/ImageStylesPathAndUrlTest.php
@@ -287,7 +287,7 @@ class ImageStylesPathAndUrlTest extends BrowserTestBase {
$this->drupalGet($generate_url);
$this->assertResponse(200, 'Image was accessible at the URL with a missing token.');
- // Stop supressing the security token in the URL.
+ // Stop suppressing the security token in the URL.
$this->config('image.settings')->set('suppress_itok_output', FALSE)->save();
// Ensure allow_insecure_derivatives is enabled.
$this->assertEqual($this->config('image.settings')
diff --git a/core/modules/language/language.module b/core/modules/language/language.module
index 0ce68d7..e4c1320 100644
--- a/core/modules/language/language.module
+++ b/core/modules/language/language.module
@@ -204,7 +204,7 @@ function language_configuration_element_submit(&$form, FormStateInterface $form_
$config->setLanguageAlterable($form_state->getValue([$element_name, 'language_alterable']));
$config->save();
- // Set the form_state languaged with the updated bundle.
+ // Set the form_state language with the updated bundle.
$form_state->set('language', $language);
}
}
diff --git a/core/modules/language/src/Config/LanguageConfigFactoryOverride.php b/core/modules/language/src/Config/LanguageConfigFactoryOverride.php
index 4c60a72..11fcb92 100644
--- a/core/modules/language/src/Config/LanguageConfigFactoryOverride.php
+++ b/core/modules/language/src/Config/LanguageConfigFactoryOverride.php
@@ -75,7 +75,7 @@ class LanguageConfigFactoryOverride extends ConfigFactoryOverrideBase implements
$this->baseStorage = $storage;
$this->eventDispatcher = $event_dispatcher;
$this->typedConfigManager = $typed_config;
- // Prior to negiotiation the override language should be the default
+ // Prior to negotiation the override language should be the default
// language.
$this->language = $default_language->get();
}
diff --git a/core/modules/locale/locale.libraries.yml b/core/modules/locale/locale.libraries.yml
index 9711d01..e01d0d6 100644
--- a/core/modules/locale/locale.libraries.yml
+++ b/core/modules/locale/locale.libraries.yml
@@ -25,6 +25,6 @@ translations:
# any time.
js:
# This file does not actually exist; it's a placeholder file that will be
- # overriden by locale_js_alter(), to use the file that contains the actual
+ # overridden by locale_js_alter(), to use the file that contains the actual
# translations, for the language used in the current request.
locale.translation.js: {}
diff --git a/core/modules/media/tests/src/FunctionalJavascript/MediaDisplayTest.php b/core/modules/media/tests/src/FunctionalJavascript/MediaDisplayTest.php
index 19ebf9d..8a55c50 100644
--- a/core/modules/media/tests/src/FunctionalJavascript/MediaDisplayTest.php
+++ b/core/modules/media/tests/src/FunctionalJavascript/MediaDisplayTest.php
@@ -125,7 +125,7 @@ class MediaDisplayTest extends MediaJavascriptTestBase {
]);
$node_type->save();
- // Reference the created media using an entity_refernce field and make sure
+ // Reference the created media using an entity_reference field and make sure
// the output is what we expect.
$storage = FieldStorageConfig::create([
'entity_type' => 'node',
diff --git a/core/modules/migrate/src/Plugin/Migration.php b/core/modules/migrate/src/Plugin/Migration.php
index ee499b0..20b8ae8 100644
--- a/core/modules/migrate/src/Plugin/Migration.php
+++ b/core/modules/migrate/src/Plugin/Migration.php
@@ -216,7 +216,7 @@ class Migration extends PluginBase implements MigrationInterface, RequirementsIn
protected $sourcePluginManager;
/**
- * Thep process plugin manager.
+ * The process plugin manager.
*
* @var \Drupal\migrate\Plugin\MigratePluginManager
*/
diff --git a/core/modules/migrate/src/Plugin/migrate/source/DummyQueryTrait.php b/core/modules/migrate/src/Plugin/migrate/source/DummyQueryTrait.php
index efe56b4..51a456a 100644
--- a/core/modules/migrate/src/Plugin/migrate/source/DummyQueryTrait.php
+++ b/core/modules/migrate/src/Plugin/migrate/source/DummyQueryTrait.php
@@ -16,7 +16,7 @@ trait DummyQueryTrait {
* {@inheritdoc}
*/
public function query() {
- // Pass an arbritrary table name - the query should never be executed
+ // Pass an arbitrary table name - the query should never be executed
// anyway.
$query = $this->select(uniqid(), 's')
->range(0, 1);
diff --git a/core/modules/migrate/tests/src/Unit/process/CallbackTest.php b/core/modules/migrate/tests/src/Unit/process/CallbackTest.php
index e7d1718..6d894c0 100644
--- a/core/modules/migrate/tests/src/Unit/process/CallbackTest.php
+++ b/core/modules/migrate/tests/src/Unit/process/CallbackTest.php
@@ -34,7 +34,7 @@ class CallbackTest extends MigrateProcessTestCase {
}
/**
- * Test callback excpetions.
+ * Test callback exceptions.
*
* @dataProvider providerCallbackExceptions
*/
diff --git a/core/modules/migrate_drupal/src/Plugin/MigrationWithFollowUpInterface.php b/core/modules/migrate_drupal/src/Plugin/MigrationWithFollowUpInterface.php
index 93ef8f9..02db0d4 100644
--- a/core/modules/migrate_drupal/src/Plugin/MigrationWithFollowUpInterface.php
+++ b/core/modules/migrate_drupal/src/Plugin/MigrationWithFollowUpInterface.php
@@ -28,7 +28,7 @@ interface MigrationWithFollowUpInterface {
/**
* Generates follow-up migrations.
*
- * When the migration implementing this interface has been succesfully
+ * When the migration implementing this interface has been successfully
* executed, this method will be used to generate the follow-up migrations
* which depends on the now migrated data.
*
diff --git a/core/modules/migrate_drupal/tests/src/Kernel/d6/MigrateDrupal6AuditIdsTest.php b/core/modules/migrate_drupal/tests/src/Kernel/d6/MigrateDrupal6AuditIdsTest.php
index 961a5c5..a02853f 100644
--- a/core/modules/migrate_drupal/tests/src/Kernel/d6/MigrateDrupal6AuditIdsTest.php
+++ b/core/modules/migrate_drupal/tests/src/Kernel/d6/MigrateDrupal6AuditIdsTest.php
@@ -59,7 +59,7 @@ class MigrateDrupal6AuditIdsTest extends MigrateDrupal6TestBase {
$node->moderation_state->value = 'published';
$node->save();
- // Insert data in the d6_node:page migration mappping table to simulate a
+ // Insert data in the d6_node:page migration mapping table to simulate a
// previously migrated node.
$id_map = $this->getMigration('d6_node:page')->getIdMap();
$table_name = $id_map->mapTableName();
@@ -158,8 +158,8 @@ class MigrateDrupal6AuditIdsTest extends MigrateDrupal6TestBase {
$node->setNewRevision(TRUE);
$node->save();
- // Insert data in the d6_node_revision:page migration mappping table to
- // simulate a previously migrated node revison.
+ // Insert data in the d6_node_revision:page migration mapping table to
+ // simulate a previously migrated node revision.
$id_map = $this->getMigration('d6_node_revision:page')->getIdMap();
$table_name = $id_map->mapTableName();
$id_map->getDatabase()->insert($table_name)
diff --git a/core/modules/migrate_drupal/tests/src/Kernel/d7/MigrateDrupal7AuditIdsTest.php b/core/modules/migrate_drupal/tests/src/Kernel/d7/MigrateDrupal7AuditIdsTest.php
index 3859157..1693ce1 100644
--- a/core/modules/migrate_drupal/tests/src/Kernel/d7/MigrateDrupal7AuditIdsTest.php
+++ b/core/modules/migrate_drupal/tests/src/Kernel/d7/MigrateDrupal7AuditIdsTest.php
@@ -59,7 +59,7 @@ class MigrateDrupal7AuditIdsTest extends MigrateDrupal7TestBase {
$node->moderation_state->value = 'published';
$node->save();
- // Insert data in the d7_node:page migration mappping table to simulate a
+ // Insert data in the d7_node:page migration mapping table to simulate a
// previously migrated node.
$id_map = $this->getMigration('d7_node:page')->getIdMap();
$table_name = $id_map->mapTableName();
@@ -157,8 +157,8 @@ class MigrateDrupal7AuditIdsTest extends MigrateDrupal7TestBase {
$node->setNewRevision(TRUE);
$node->save();
- // Insert data in the d7_node_revision:page migration mappping table to
- // simulate a previously migrated node revison.
+ // Insert data in the d7_node_revision:page migration mapping table to
+ // simulate a previously migrated node revision.
$id_map = $this->getMigration('d7_node_revision:page')->getIdMap();
$table_name = $id_map->mapTableName();
$id_map->getDatabase()->insert($table_name)
diff --git a/core/modules/node/tests/src/Functional/NodeEditFormTest.php b/core/modules/node/tests/src/Functional/NodeEditFormTest.php
index c15ca70..17f0734 100644
--- a/core/modules/node/tests/src/Functional/NodeEditFormTest.php
+++ b/core/modules/node/tests/src/Functional/NodeEditFormTest.php
@@ -165,7 +165,7 @@ class NodeEditFormTest extends NodeTestBase {
$this->drupalGet('node/' . $node->id() . '/edit');
$this->assertNoFieldByName('uid[0][target_id]');
- // Now test with the Autcomplete (Tags) field widget.
+ // Now test with the Autocomplete (Tags) field widget.
/** @var \Drupal\Core\Entity\Display\EntityFormDisplayInterface $form_display */
$form_display = \Drupal::entityManager()->getStorage('entity_form_display')->load('node.page.default');
$widget = $form_display->getComponent('uid');
diff --git a/core/modules/path/src/Plugin/Field/FieldType/PathFieldItemList.php b/core/modules/path/src/Plugin/Field/FieldType/PathFieldItemList.php
index 1a5fbe0..41cc994 100644
--- a/core/modules/path/src/Plugin/Field/FieldType/PathFieldItemList.php
+++ b/core/modules/path/src/Plugin/Field/FieldType/PathFieldItemList.php
@@ -26,7 +26,7 @@ class PathFieldItemList extends FieldItemList {
$entity = $this->getEntity();
if (!$entity->isNew()) {
- // @todo Support loading languge neutral aliases in
+ // @todo Support loading language neutral aliases in
// https://www.drupal.org/node/2511968.
$alias = \Drupal::service('path.alias_storage')->load([
'source' => '/' . $entity->toUrl()->getInternalPath(),
diff --git a/core/modules/rest/tests/src/Functional/Views/StyleSerializerTest.php b/core/modules/rest/tests/src/Functional/Views/StyleSerializerTest.php
index 269b96b..b86ede1 100644
--- a/core/modules/rest/tests/src/Functional/Views/StyleSerializerTest.php
+++ b/core/modules/rest/tests/src/Functional/Views/StyleSerializerTest.php
@@ -661,7 +661,7 @@ class StyleSerializerTest extends ViewTestBase {
}
// Test that multiple raw body fields are shown.
- // Make the body field unlimited cardinatlity.
+ // Set the body field to unlimited cardinality.
$storage_definition = $node->getFieldDefinition('body')->getFieldStorageDefinition();
$storage_definition->setCardinality(FieldStorageDefinitionInterface::CARDINALITY_UNLIMITED);
$storage_definition->save();
diff --git a/core/modules/search/search.module b/core/modules/search/search.module
index c7707fd..06d0d72 100644
--- a/core/modules/search/search.module
+++ b/core/modules/search/search.module
@@ -510,7 +510,7 @@ function search_index($type, $sid, $langcode, $text) {
foreach ($words as $word) {
// Add word to accumulator
$accum .= $word . ' ';
- // Check wordlength
+ // Check word length.
if (is_numeric($word) || mb_strlen($word) >= $minimum_word_size) {
if (!isset($scored_words[$word])) {
$scored_words[$word] = 0;
diff --git a/core/modules/simpletest/src/TestBase.php b/core/modules/simpletest/src/TestBase.php
index 9675bdc..1c7982f 100644
--- a/core/modules/simpletest/src/TestBase.php
+++ b/core/modules/simpletest/src/TestBase.php
@@ -28,7 +28,7 @@ abstract class TestBase {
use TestSetupTrait;
use RandomGeneratorTrait;
use GeneratePermutationsTrait;
- // For backwards compatibility switch the visbility of the methods to public.
+ // For backwards compatibility switch the visibility of the methods to public.
use ConfigTestTrait {
configImporter as public;
copyConfig as public;
diff --git a/core/modules/simpletest/src/Tests/InstallationProfileModuleTestsTest.php b/core/modules/simpletest/src/Tests/InstallationProfileModuleTestsTest.php
index 7a7a036..113748f 100644
--- a/core/modules/simpletest/src/Tests/InstallationProfileModuleTestsTest.php
+++ b/core/modules/simpletest/src/Tests/InstallationProfileModuleTestsTest.php
@@ -19,7 +19,7 @@ class InstallationProfileModuleTestsTest extends WebTestBase {
public static $modules = ['simpletest'];
/**
- * An administrative user with permission to adminsiter unit tests.
+ * An administrative user with permission to administer unit tests.
*
* @var \Drupal\user\UserInterface
*/
diff --git a/core/modules/system/src/Tests/Session/SessionHttpsTest.php b/core/modules/system/src/Tests/Session/SessionHttpsTest.php
index 6ba70da..9a4666f 100644
--- a/core/modules/system/src/Tests/Session/SessionHttpsTest.php
+++ b/core/modules/system/src/Tests/Session/SessionHttpsTest.php
@@ -190,7 +190,7 @@ class SessionHttpsTest extends WebTestBase {
}
// The mock front controllers (http.php and https.php) add the script name
- // to $_SERVER['REQEUST_URI'] and friends. Therefore it is necessary to
+ // to $_SERVER['REQUEST_URI'] and friends. Therefore it is necessary to
// strip that also.
$base_url .= 'index.php/';
diff --git a/core/modules/system/tests/modules/accept_header_routing_test/src/AcceptHeaderMiddleware.php b/core/modules/system/tests/modules/accept_header_routing_test/src/AcceptHeaderMiddleware.php
index 1252f1b..f607a89 100644
--- a/core/modules/system/tests/modules/accept_header_routing_test/src/AcceptHeaderMiddleware.php
+++ b/core/modules/system/tests/modules/accept_header_routing_test/src/AcceptHeaderMiddleware.php
@@ -6,7 +6,7 @@ use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpKernel\HttpKernelInterface;
/**
- * Example implementation of accept header based content negotation.
+ * Example implementation of "accept header"-based content negotiation.
*/
class AcceptHeaderMiddleware implements HttpKernelInterface {
diff --git a/core/modules/system/tests/modules/accept_header_routing_test/src/AcceptHeaderRoutingTestServiceProvider.php b/core/modules/system/tests/modules/accept_header_routing_test/src/AcceptHeaderRoutingTestServiceProvider.php
index 983a60c..8d8fefe 100644
--- a/core/modules/system/tests/modules/accept_header_routing_test/src/AcceptHeaderRoutingTestServiceProvider.php
+++ b/core/modules/system/tests/modules/accept_header_routing_test/src/AcceptHeaderRoutingTestServiceProvider.php
@@ -14,7 +14,7 @@ class AcceptHeaderRoutingTestServiceProvider implements ServiceModifierInterface
* {@inheritdoc}
*/
public function alter(ContainerBuilder $container) {
- // Remove the basic content negotation middleware and replace it with a
+ // Remove the basic content negotiation middleware and replace it with a
// basic header based one.
$container->register('http_middleware.negotiation', 'Drupal\accept_header_routing_test\AcceptHeaderMiddleware')
->addTag('http_middleware', ['priority' => 400]);
diff --git a/core/modules/system/tests/modules/conneg_test/src/Controller/TestController.php b/core/modules/system/tests/modules/conneg_test/src/Controller/TestController.php
index 4638b09..c26c01c 100644
--- a/core/modules/system/tests/modules/conneg_test/src/Controller/TestController.php
+++ b/core/modules/system/tests/modules/conneg_test/src/Controller/TestController.php
@@ -7,7 +7,7 @@ use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
/**
- * Test controller for content negotation tests.
+ * Test controller for content negotiation tests.
*/
class TestController {
diff --git a/core/modules/system/tests/modules/entity_test/src/EntityTestAccessControlHandler.php b/core/modules/system/tests/modules/entity_test/src/EntityTestAccessControlHandler.php
index 1bd49dd..2076652 100644
--- a/core/modules/system/tests/modules/entity_test/src/EntityTestAccessControlHandler.php
+++ b/core/modules/system/tests/modules/entity_test/src/EntityTestAccessControlHandler.php
@@ -36,7 +36,7 @@ class EntityTestAccessControlHandler extends EntityAccessControlHandler {
/** @var \Drupal\entity_test\Entity\EntityTest $entity */
// Always forbid access to entities with the label 'forbid_access', used for
- // \Drupal\system\Tests\Entity\EntityAccessHControlandlerTest::testDefaultEntityAccess().
+ // \Drupal\system\Tests\Entity\EntityAccessControlHandlerTest::testDefaultEntityAccess().
if ($entity->label() == 'forbid_access') {
return AccessResult::forbidden();
}
diff --git a/core/modules/system/tests/modules/system_test/src/Controller/SystemTestController.php b/core/modules/system/tests/modules/system_test/src/Controller/SystemTestController.php
index 3f48975..cfd0f2f 100644
--- a/core/modules/system/tests/modules/system_test/src/Controller/SystemTestController.php
+++ b/core/modules/system/tests/modules/system_test/src/Controller/SystemTestController.php
@@ -287,7 +287,7 @@ class SystemTestController extends ControllerBase {
}
/**
- * A plain Symfony reponse with Cache-Control: public, max-age=60.
+ * A plain Symfony response with Cache-Control: public, max-age=60.
*/
public function respondWithPublicResponse() {
return (new Response('test'))->setPublic()->setMaxAge(60);
diff --git a/core/modules/system/tests/modules/theme_test/src/EventSubscriber/ThemeTestSubscriber.php b/core/modules/system/tests/modules/theme_test/src/EventSubscriber/ThemeTestSubscriber.php
index 99fe192..38fee50 100644
--- a/core/modules/system/tests/modules/theme_test/src/EventSubscriber/ThemeTestSubscriber.php
+++ b/core/modules/system/tests/modules/theme_test/src/EventSubscriber/ThemeTestSubscriber.php
@@ -17,7 +17,7 @@ class ThemeTestSubscriber implements EventSubscriberInterface {
/**
* The used container.
*
- * @todo This variable is never initialzed, so we don't know what it is.
+ * @todo This variable is never initialized, so we don't know what it is.
* See https://www.drupal.org/node/2721315
*/
protected $container;
diff --git a/core/modules/system/tests/src/Functional/File/FileSaveHtaccessLoggingTest.php b/core/modules/system/tests/src/Functional/File/FileSaveHtaccessLoggingTest.php
index 442591d..003373d 100644
--- a/core/modules/system/tests/src/Functional/File/FileSaveHtaccessLoggingTest.php
+++ b/core/modules/system/tests/src/Functional/File/FileSaveHtaccessLoggingTest.php
@@ -6,7 +6,7 @@ use Drupal\Component\PhpStorage\FileStorage;
use Drupal\Tests\BrowserTestBase;
/**
- * Tests the log message added by file_save_htacess().
+ * Tests the log message added by file_save_htaccess().
*
* @group File
*/
diff --git a/core/modules/system/tests/src/Functional/Menu/MenuAccessTest.php b/core/modules/system/tests/src/Functional/Menu/MenuAccessTest.php
index 10af396..7d3c0a4 100644
--- a/core/modules/system/tests/src/Functional/Menu/MenuAccessTest.php
+++ b/core/modules/system/tests/src/Functional/Menu/MenuAccessTest.php
@@ -38,7 +38,7 @@ class MenuAccessTest extends BrowserTestBase {
// Test that there's link rendered on the route.
$this->drupalGet('menu_test_access_check_session');
$this->assertLink('Test custom route access check');
- // Page still accessible but thre should not be menu link.
+ // Page is still accessible but there should be no menu link.
$this->drupalGet('menu_test_access_check_session');
$this->assertResponse(200);
$this->assertNoLink('Test custom route access check');
diff --git a/core/modules/system/tests/src/Functional/Update/FilterHtmlUpdateTest.php b/core/modules/system/tests/src/Functional/Update/FilterHtmlUpdateTest.php
index 01edaab..ea591fc 100644
--- a/core/modules/system/tests/src/Functional/Update/FilterHtmlUpdateTest.php
+++ b/core/modules/system/tests/src/Functional/Update/FilterHtmlUpdateTest.php
@@ -6,7 +6,7 @@ use Drupal\filter\Entity\FilterFormat;
use Drupal\FunctionalTests\Update\UpdatePathTestBase;
/**
- * Tests that the allowed html configutations are updated with attributes.
+ * Tests that the allowed html configurations are updated with attributes.
*
* @group Entity
* @group legacy
diff --git a/core/modules/taxonomy/src/Entity/Vocabulary.php b/core/modules/taxonomy/src/Entity/Vocabulary.php
index ec8b866..2f2833a 100644
--- a/core/modules/taxonomy/src/Entity/Vocabulary.php
+++ b/core/modules/taxonomy/src/Entity/Vocabulary.php
@@ -87,7 +87,7 @@ class Vocabulary extends ConfigEntityBundleBase implements VocabularyInterface {
* Possible values:
* - VocabularyInterface::HIERARCHY_DISABLED: No parents.
* - VocabularyInterface::HIERARCHY_SINGLE: Single parent.
- * - VocabularyInterface::HIERARCHY_MULTIPL: Multiple parents.
+ * - VocabularyInterface::HIERARCHY_MULTIPLE: Multiple parents.
*
* @var int
*/
diff --git a/core/modules/taxonomy/tests/src/Kernel/Migrate/d7/MigrateTaxonomyTermTest.php b/core/modules/taxonomy/tests/src/Kernel/Migrate/d7/MigrateTaxonomyTermTest.php
index e424659..85a64b0 100644
--- a/core/modules/taxonomy/tests/src/Kernel/Migrate/d7/MigrateTaxonomyTermTest.php
+++ b/core/modules/taxonomy/tests/src/Kernel/Migrate/d7/MigrateTaxonomyTermTest.php
@@ -142,7 +142,7 @@ class MigrateTaxonomyTermTest extends MigrateDrupal7TestBase {
* Assert that a term is present in the tree storage, with the right parents.
*
* @param string $vid
- * Vocabular ID.
+ * Vocabulary ID.
* @param int $tid
* ID of the term to check.
* @param array $parent_ids
diff --git a/core/modules/update/update.authorize.inc b/core/modules/update/update.authorize.inc
index 664f25f..fea365a 100644
--- a/core/modules/update/update.authorize.inc
+++ b/core/modules/update/update.authorize.inc
@@ -253,7 +253,7 @@ function update_authorize_update_batch_finished($success, $results) {
'#type' => 'link',
'#url' => $url,
'#title' => t('Run database updates'),
- // Since this is being called outsite of the primary front controller,
+ // Since this is being called outside of the primary front controller,
// the base_url needs to be set explicitly to ensure that links are
// relative to the site root.
// @todo Simplify with https://www.drupal.org/node/2548095
diff --git a/core/modules/user/src/Plugin/Block/UserLoginBlock.php b/core/modules/user/src/Plugin/Block/UserLoginBlock.php
index 8649494..8da11e7 100644
--- a/core/modules/user/src/Plugin/Block/UserLoginBlock.php
+++ b/core/modules/user/src/Plugin/Block/UserLoginBlock.php
@@ -96,7 +96,7 @@ class UserLoginBlock extends BlockBase implements ContainerFactoryPluginInterfac
// will be replaced at the very last moment. This ensures forms with
// dynamically generated action URLs don't have poor cacheability.
// Use the proper API to generate the placeholder, when we have one. See
- // https://www.drupal.org/node/2562341. The placholder uses a fixed string
+ // https://www.drupal.org/node/2562341. The placeholder uses a fixed string
// that is
// Crypt::hashBase64('\Drupal\user\Plugin\Block\UserLoginBlock::build');
// This is based on the implementation in
diff --git a/core/modules/user/src/Plugin/migrate/process/UserLangcode.php b/core/modules/user/src/Plugin/migrate/process/UserLangcode.php
index 5373dad..174c8a5 100644
--- a/core/modules/user/src/Plugin/migrate/process/UserLangcode.php
+++ b/core/modules/user/src/Plugin/migrate/process/UserLangcode.php
@@ -33,7 +33,7 @@ class UserLangcode extends ProcessPluginBase implements ContainerFactoryPluginIn
* @param string $plugin_id
* The plugin ID.
* @param mixed $plugin_definition
- * The plugin definiiton.
+ * The plugin definition.
* @param \Drupal\Core\Language\LanguageManager $language_manager
* The language manager service.
*/
diff --git a/core/modules/user/user.views_execution.inc b/core/modules/user/user.views_execution.inc
index 255fbf2..e0c5c0c 100644
--- a/core/modules/user/user.views_execution.inc
+++ b/core/modules/user/user.views_execution.inc
@@ -10,7 +10,7 @@ use Drupal\views\ViewExecutable;
/**
* Implements hook_views_query_substitutions().
*
- * Allow replacement of current userid so we can cache these queries.
+ * Allow replacement of current user ID so we can cache these queries.
*/
function user_views_query_substitutions(ViewExecutable $view) {
return ['***CURRENT_USER***' => \Drupal::currentUser()->id()];
diff --git a/core/modules/views/src/Plugin/views/field/MultiItemsFieldHandlerInterface.php b/core/modules/views/src/Plugin/views/field/MultiItemsFieldHandlerInterface.php
index 4949548..27f8b18 100644
--- a/core/modules/views/src/Plugin/views/field/MultiItemsFieldHandlerInterface.php
+++ b/core/modules/views/src/Plugin/views/field/MultiItemsFieldHandlerInterface.php
@@ -5,7 +5,7 @@ namespace Drupal\views\Plugin\views\field;
use Drupal\views\ResultRow;
/**
- * Defines a field hander which renders multiple items per row.
+ * Defines a field handler which renders multiple items per row.
*/
interface MultiItemsFieldHandlerInterface extends FieldHandlerInterface {
diff --git a/core/modules/views/src/Tests/FieldApiDataTest.php b/core/modules/views/src/Tests/FieldApiDataTest.php
index b20a871..635ddb3 100644
--- a/core/modules/views/src/Tests/FieldApiDataTest.php
+++ b/core/modules/views/src/Tests/FieldApiDataTest.php
@@ -263,7 +263,7 @@ class FieldApiDataTest extends FieldTestBase {
}
/**
- * Tests filtering entries with different translatabilty.
+ * Tests filtering entries with different translatability.
*/
public function testEntityFieldFilter() {
$map = [
diff --git a/core/modules/views/src/Tests/ViewKernelTestBase.php b/core/modules/views/src/Tests/ViewKernelTestBase.php
index 5a23285..ed666ec 100644
--- a/core/modules/views/src/Tests/ViewKernelTestBase.php
+++ b/core/modules/views/src/Tests/ViewKernelTestBase.php
@@ -32,7 +32,7 @@ abstract class ViewKernelTestBase extends KernelTestBase {
* {@inheritdoc}
*
* @param bool $import_test_views
- * Should the views specififed on the test class be imported. If you need
+ * Should the views specified on the test class be imported. If you need
* to setup some additional stuff, like fields, you need to call false and
* then call createTestViews for your own.
*/
diff --git a/core/modules/views/src/ViewExecutable.php b/core/modules/views/src/ViewExecutable.php
index 27f73e1..1adaf55 100644
--- a/core/modules/views/src/ViewExecutable.php
+++ b/core/modules/views/src/ViewExecutable.php
@@ -1522,7 +1522,7 @@ class ViewExecutable {
// Let modules modify the view just prior to rendering it.
$module_handler->invokeAll('views_pre_render', [$this]);
- // Let the themes play too, because pre render is a very themey thing.
+ // Let the themes play too, because prerender is a very themey thing.
foreach ($themes as $theme_name) {
$function = $theme_name . '_views_pre_render';
if (function_exists($function)) {
diff --git a/core/modules/views/tests/src/Functional/Handler/FieldWebTest.php b/core/modules/views/tests/src/Functional/Handler/FieldWebTest.php
index eda5b81..816fce1 100644
--- a/core/modules/views/tests/src/Functional/Handler/FieldWebTest.php
+++ b/core/modules/views/tests/src/Functional/Handler/FieldWebTest.php
@@ -339,7 +339,7 @@ class FieldWebTest extends ViewTestBase {
$this->assertSubString($output, UrlHelper::encodePath('Drupal Has A Great Community'));
unset($id_field->options['alter']['path_case']);
- // Tests the linkclass setting and see whether it actually exists in the
+ // Tests the link_class setting and see whether it actually exists in the
// output.
$id_field->options['alter']['link_class'] = $class = $this->randomMachineName();
$output = $renderer->executeInRenderContext(new RenderContext(), function () use ($id_field, $row) {
diff --git a/core/modules/views/tests/src/Functional/Plugin/DisplayEntityReferenceTest.php b/core/modules/views/tests/src/Functional/Plugin/DisplayEntityReferenceTest.php
index 499d1b2..6941092 100644
--- a/core/modules/views/tests/src/Functional/Plugin/DisplayEntityReferenceTest.php
+++ b/core/modules/views/tests/src/Functional/Plugin/DisplayEntityReferenceTest.php
@@ -213,7 +213,7 @@ class DisplayEntityReferenceTest extends ViewTestBase {
$this->drupalPostForm('admin/structure/views/nojs/display/test_display_entity_reference/entity_reference_1/style_options', ['style_options[search_fields][uid]' => 'uid'], t('Apply'));
$this->drupalPostForm(NULL, [], t('Save'));
- // Test that the search still works with the ralated field.
+ // Test that the search still works with the related field.
$view = Views::getView('test_display_entity_reference');
$view->setDisplay('entity_reference_1');
diff --git a/core/modules/views/tests/src/Kernel/ViewExecutableTest.php b/core/modules/views/tests/src/Kernel/ViewExecutableTest.php
index 1290d54..cb548c0 100644
--- a/core/modules/views/tests/src/Kernel/ViewExecutableTest.php
+++ b/core/modules/views/tests/src/Kernel/ViewExecutableTest.php
@@ -136,7 +136,7 @@ class ViewExecutableTest extends ViewsKernelTestBase {
// Test the initStyle() method.
$view->initStyle();
$this->assertTrue($view->style_plugin instanceof DefaultStyle, 'Make sure a reference to the style plugin is set.');
- // Test the plugin has been inited and view have references to the view and
+ // Test the plugin has been invited and view have references to the view and
// display handler.
$this->assertEqual(spl_object_hash($view->style_plugin->view), $view_hash);
$this->assertEqual(spl_object_hash($view->style_plugin->displayHandler), $display_hash);
diff --git a/core/modules/views_ui/js/views-admin.es6.js b/core/modules/views_ui/js/views-admin.es6.js
index f265b2c..758d8d1 100644
--- a/core/modules/views_ui/js/views-admin.es6.js
+++ b/core/modules/views_ui/js/views-admin.es6.js
@@ -642,7 +642,7 @@
* @type {Drupal~behavior}
*
* @prop {Drupal~behaviorAttach} attach
- * Attach handlers to make it possible to rearange the filters in the form
+ * Attach handlers to make it possible to rearrange the filters in the form
* in question.
* @see Drupal.viewsUi.RearrangeFilterHandler
*/
diff --git a/core/modules/views_ui/tests/src/Functional/TranslatedViewTest.php b/core/modules/views_ui/tests/src/Functional/TranslatedViewTest.php
index 7238ffa..a8d3c8b 100644
--- a/core/modules/views_ui/tests/src/Functional/TranslatedViewTest.php
+++ b/core/modules/views_ui/tests/src/Functional/TranslatedViewTest.php
@@ -63,7 +63,7 @@ class TranslatedViewTest extends UITestBase {
$translation_url = 'admin/structure/views/view/files/translate/fr/add';
$edit_url = 'admin/structure/views/view/files';
- // Check origial string.
+ // Check the original string.
$this->drupalGet($edit_url);
$this->assertTitle('Files (File) | Drupal');
diff --git a/core/modules/views_ui/tests/src/FunctionalJavascript/DisplayTest.php b/core/modules/views_ui/tests/src/FunctionalJavascript/DisplayTest.php
index 7dcaccd..df3134f 100644
--- a/core/modules/views_ui/tests/src/FunctionalJavascript/DisplayTest.php
+++ b/core/modules/views_ui/tests/src/FunctionalJavascript/DisplayTest.php
@@ -63,7 +63,7 @@ class DisplayTest extends WebDriverTestBase {
// Wait for the animation to complete.
$this->assertSession()->assertWaitOnAjaxRequest();
- // Add the diplay.
+ // Add the display.
$page->find('css', '#edit-displays-top-add-display-block')->click();
$element = $page->findById('views-display-menu-tabs')->findLink('Block');
diff --git a/core/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php b/core/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php
index 49a9ac3..fb56445 100644
--- a/core/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php
+++ b/core/tests/Drupal/FunctionalTests/BrowserTestBaseTest.php
@@ -576,7 +576,7 @@ class BrowserTestBaseTest extends BrowserTestBase {
$this->assertFieldChecked('edit-checkbox-enabled');
$this->assertNoFieldChecked('edit-checkbox-disabled');
- // Test that the assertion fails correctly with non-existant field id.
+ // Test that the assertion fails correctly with non-existent field id.
try {
$this->assertNoFieldChecked('incorrect_checkbox_id');
$this->fail('The "incorrect_checkbox_id" field was found');
diff --git a/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingSettingsMismatchProfileTest.php b/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingSettingsMismatchProfileTest.php
index 18dd66d..9ec2c76 100644
--- a/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingSettingsMismatchProfileTest.php
+++ b/core/tests/Drupal/FunctionalTests/Installer/InstallerExistingSettingsMismatchProfileTest.php
@@ -69,7 +69,7 @@ class InstallerExistingSettingsMismatchProfileTest extends InstallerTestBase {
* {@inheritdoc}
*/
protected function setUpLanguage() {
- // This step is skipped, because there is a lagcode as a query param.
+ // This step is skipped, because there is a langcode as a query param.
}
/**
diff --git a/core/tests/Drupal/KernelTests/Core/Config/ConfigImporterTest.php b/core/tests/Drupal/KernelTests/Core/Config/ConfigImporterTest.php
index 41795e8..c8eb231 100644
--- a/core/tests/Drupal/KernelTests/Core/Config/ConfigImporterTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Config/ConfigImporterTest.php
@@ -623,7 +623,7 @@ class ConfigImporterTest extends KernelTestBase {
}
}
- // Make a config entity have mulitple unmet dependencies.
+ // Make a config entity have multiple unmet dependencies.
$config_entity_data = $sync->read('config_test.dynamic.dotted.default');
$config_entity_data['dependencies'] = ['module' => ['unknown', 'dblog']];
$sync->write('config_test.dynamic.dotted.module', $config_entity_data);
@@ -848,7 +848,7 @@ class ConfigImporterTest extends KernelTestBase {
}
/**
- * Helper meothd to test custom config installer steps.
+ * Helper method to test custom config installer steps.
*
* @param array $context
* Batch context.
diff --git a/core/tests/Drupal/KernelTests/Core/Database/PrefixInfoTest.php b/core/tests/Drupal/KernelTests/Core/Database/PrefixInfoTest.php
index 16fd053..ea5e8a9 100644
--- a/core/tests/Drupal/KernelTests/Core/Database/PrefixInfoTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Database/PrefixInfoTest.php
@@ -30,7 +30,7 @@ class PrefixInfoTest extends DatabaseTestBase {
$db1_schema = $db1_connection->schema();
$db2_connection = Database::getConnection('default', 'extra');
- // Get the prefix info for the first databse.
+ // Get the prefix info for the first database.
$method = new \ReflectionMethod($db1_schema, 'getPrefixInfo');
$method->setAccessible(TRUE);
$db1_info = $method->invoke($db1_schema);
diff --git a/core/tests/Drupal/KernelTests/Core/Entity/EntityDecoupledTranslationRevisionsTest.php b/core/tests/Drupal/KernelTests/Core/Entity/EntityDecoupledTranslationRevisionsTest.php
index d4fbcfc..8fa31c3 100644
--- a/core/tests/Drupal/KernelTests/Core/Entity/EntityDecoupledTranslationRevisionsTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Entity/EntityDecoupledTranslationRevisionsTest.php
@@ -57,7 +57,7 @@ class EntityDecoupledTranslationRevisionsTest extends EntityKernelTestBase {
protected $previousRevisionId = [];
/**
- * The previous unstranslatable field value.
+ * The previous untranslatable field value.
*
* @var string[]
*/
diff --git a/core/tests/Drupal/KernelTests/Core/Entity/EntityQueryTest.php b/core/tests/Drupal/KernelTests/Core/Entity/EntityQueryTest.php
index a47d9a9..d1c5e68 100644
--- a/core/tests/Drupal/KernelTests/Core/Entity/EntityQueryTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Entity/EntityQueryTest.php
@@ -630,7 +630,7 @@ class EntityQueryTest extends EntityKernelTestBase {
->condition("$figures.%delta", 1)
->sort('id')
->execute();
- // Entity needs to have atleast two figures.
+ // Entity needs to have at least two figures.
$this->assertResult(3, 7, 11, 15);
// Numeric delta on single value base field should return results only if
diff --git a/core/tests/Drupal/KernelTests/Core/Entity/RevisionableContentEntityBaseTest.php b/core/tests/Drupal/KernelTests/Core/Entity/RevisionableContentEntityBaseTest.php
index 74b2d6e..0b5d7b1 100644
--- a/core/tests/Drupal/KernelTests/Core/Entity/RevisionableContentEntityBaseTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Entity/RevisionableContentEntityBaseTest.php
@@ -154,12 +154,12 @@ class RevisionableContentEntityBaseTest extends EntityKernelTestBase {
}
/**
- * Asserts the ammount of items on entity related tables.
+ * Asserts the amount of items on entity related tables.
*
* @param int $count
* The number of items expected to be in revisions related tables.
* @param \Drupal\Core\Entity\EntityTypeInterface $definition
- * The definition and metada of the entity being tested.
+ * The definition and metadata of the entity being tested.
*/
protected function assertItemsTableCount($count, EntityTypeInterface $definition) {
$this->assertEqual(1, db_query('SELECT COUNT(*) FROM {' . $definition->getBaseTable() . '}')->fetchField());
diff --git a/core/tests/Drupal/KernelTests/Core/Entity/ValidReferenceConstraintValidatorTest.php b/core/tests/Drupal/KernelTests/Core/Entity/ValidReferenceConstraintValidatorTest.php
index be609d8..acd8b6b 100644
--- a/core/tests/Drupal/KernelTests/Core/Entity/ValidReferenceConstraintValidatorTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Entity/ValidReferenceConstraintValidatorTest.php
@@ -201,7 +201,7 @@ class ValidReferenceConstraintValidatorTest extends EntityKernelTestBase {
$violations = $referencing_entity->field_test->validate();
$this->assertCount(0, $violations);
- // Remove one of the referencable bundles and check that a pre-existing node
+ // Remove one of the referenceable bundles and check that a pre-existing node
// of that bundle can not be referenced anymore.
$field = FieldConfig::loadByName('entity_test', 'entity_test', 'field_test');
$field->setSetting('handler_settings', ['target_bundles' => ['article']]);
diff --git a/core/tests/Drupal/KernelTests/Core/File/MimeTypeTest.php b/core/tests/Drupal/KernelTests/Core/File/MimeTypeTest.php
index 4eca997..01bf221 100644
--- a/core/tests/Drupal/KernelTests/Core/File/MimeTypeTest.php
+++ b/core/tests/Drupal/KernelTests/Core/File/MimeTypeTest.php
@@ -53,7 +53,7 @@ class MimeTypeTest extends FileTestBase {
$this->assertIdentical($output, $expected, format_string('Mimetype (using default mappings) for %input is %output (expected: %expected).', ['%input' => $input, '%output' => $output, '%expected' => $expected]));
}
- // Now test the extension gusser by passing in a custom mapping.
+ // Now test the extension guesser by passing in a custom mapping.
$mapping = [
'mimetypes' => [
0 => 'application/java-archive',
diff --git a/core/tests/Drupal/KernelTests/Core/Form/FormValidationMessageOrderTest.php b/core/tests/Drupal/KernelTests/Core/Form/FormValidationMessageOrderTest.php
index 4e056cd..6755fd5 100644
--- a/core/tests/Drupal/KernelTests/Core/Form/FormValidationMessageOrderTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Form/FormValidationMessageOrderTest.php
@@ -8,7 +8,7 @@ use Drupal\Core\Form\FormStateInterface;
use Drupal\KernelTests\KernelTestBase;
/**
- * Tests form validation mesages are displayed in the same order as the fields.
+ * Tests form validation messages are displayed in the same order as the fields.
*
* @group Form
*/
diff --git a/core/tests/Drupal/KernelTests/Core/Path/AliasTest.php b/core/tests/Drupal/KernelTests/Core/Path/AliasTest.php
index 1f49b09..48d6b7d 100644
--- a/core/tests/Drupal/KernelTests/Core/Path/AliasTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Path/AliasTest.php
@@ -241,7 +241,7 @@ class AliasTest extends PathUnitTestBase {
// Lookup admin path in whitelist. It will query the DB and figure out
// that it indeed has an alias, and add it to the internal whitelist and
- // flag it to be peristed to cache.
+ // flag it to be persisted to cache.
$this->assertTrue($whitelist->get('admin'));
// Destruct the whitelist so it persists its cache.
diff --git a/core/tests/Drupal/KernelTests/Core/Routing/RouteProviderTest.php b/core/tests/Drupal/KernelTests/Core/Routing/RouteProviderTest.php
index 44efa16..5f23e0b 100644
--- a/core/tests/Drupal/KernelTests/Core/Routing/RouteProviderTest.php
+++ b/core/tests/Drupal/KernelTests/Core/Routing/RouteProviderTest.php
@@ -97,7 +97,7 @@ class RouteProviderTest extends KernelTestBase {
public function register(ContainerBuilder $container) {
parent::register($container);
- // Readd the incoming path alias for these tests.
+ // Read the incoming path alias for these tests.
if ($container->hasDefinition('path_processor_alias')) {
$definition = $container->getDefinition('path_processor_alias');
$definition->addTag('path_processor_inbound');
diff --git a/core/tests/Drupal/Tests/BrowserTestBase.php b/core/tests/Drupal/Tests/BrowserTestBase.php
index 3512520..a60758f 100644
--- a/core/tests/Drupal/Tests/BrowserTestBase.php
+++ b/core/tests/Drupal/Tests/BrowserTestBase.php
@@ -124,7 +124,7 @@ abstract class BrowserTestBase extends TestCase {
/*
* Mink class for the default driver to use.
*
- * Shoud be a fully qualified class name that implements
+ * Should be a fully-qualified class name that implements
* Behat\Mink\Driver\DriverInterface.
*
* Value can be overridden using the environment variable MINK_DRIVER_CLASS.
diff --git a/core/tests/Drupal/Tests/Component/Datetime/DateTimePlusTest.php b/core/tests/Drupal/Tests/Component/Datetime/DateTimePlusTest.php
index 08eb206..37b353b 100644
--- a/core/tests/Drupal/Tests/Component/Datetime/DateTimePlusTest.php
+++ b/core/tests/Drupal/Tests/Component/Datetime/DateTimePlusTest.php
@@ -807,7 +807,7 @@ class DateTimePlusTest extends TestCase {
public function testValidateFormat() {
// Check that an input that does not strictly follow the input format will
// produce the desired date. In this case the year string '11' doesn't
- // precisely match the 'Y' formater parameter, but PHP will parse it
+ // precisely match the 'Y' formatter parameter, but PHP will parse it
// regardless. However, when formatted with the same string, the year will
// be output with four digits. With the ['validate_format' => FALSE]
// $settings, this will not thrown an exception.
diff --git a/core/tests/Drupal/Tests/Component/Transliteration/PhpTransliterationTest.php b/core/tests/Drupal/Tests/Component/Transliteration/PhpTransliterationTest.php
index dc71bd4..924f3e9 100644
--- a/core/tests/Drupal/Tests/Component/Transliteration/PhpTransliterationTest.php
+++ b/core/tests/Drupal/Tests/Component/Transliteration/PhpTransliterationTest.php
@@ -106,7 +106,7 @@ class PhpTransliterationTest extends TestCase {
// 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('&#x446;', ENT_NOQUOTES, 'UTF-8');
// This is a Canadian Aboriginal character like a triangle. See
diff --git a/core/tests/Drupal/Tests/Core/Asset/CssOptimizerUnitTest.php b/core/tests/Drupal/Tests/Core/Asset/CssOptimizerUnitTest.php
index 5b71a1c..f39a938 100644
--- a/core/tests/Drupal/Tests/Core/Asset/CssOptimizerUnitTest.php
+++ b/core/tests/Drupal/Tests/Core/Asset/CssOptimizerUnitTest.php
@@ -107,7 +107,7 @@ class CssOptimizerUnitTest extends UnitTestCase {
str_replace('url(../images/icon.png)', 'url(' . file_url_transform_relative(file_create_url($path . 'images/icon.png')) . ')', file_get_contents($absolute_path . 'css_subfolder/css_input_with_import.css.optimized.css')),
],
// File. Tests:
- // - Any @charaset declaration at the beginning of a file should be
+ // - Any @charset declaration at the beginning of a file should be
// removed without breaking subsequent CSS.
[
[
diff --git a/core/tests/Drupal/Tests/Core/DrupalKernel/ValidateHostnameTest.php b/core/tests/Drupal/Tests/Core/DrupalKernel/ValidateHostnameTest.php
index 96281ba..2010f49 100644
--- a/core/tests/Drupal/Tests/Core/DrupalKernel/ValidateHostnameTest.php
+++ b/core/tests/Drupal/Tests/Core/DrupalKernel/ValidateHostnameTest.php
@@ -50,7 +50,7 @@ class ValidateHostnameTest extends UnitTestCase {
$data[] = ['72.21.91.99:80', 'Properly formed HTTP_HOST with IPv4 address valid.', TRUE];
$data[] = ['2607:f8b0:4004:803::1002:80', 'Properly formed HTTP_HOST with IPv6 address valid.', TRUE];
- // Verfies that the IPv6 loopback address is valid.
+ // Verifies that the IPv6 loopback address is valid.
$data[] = ['[::1]:80', 'HTTP_HOST containing IPv6 loopback is valid.', TRUE];
return $data;
diff --git a/core/tests/Drupal/Tests/Core/Form/FormStateDecoratorBaseTest.php b/core/tests/Drupal/Tests/Core/Form/FormStateDecoratorBaseTest.php
index 7335603..c677fd3 100644
--- a/core/tests/Drupal/Tests/Core/Form/FormStateDecoratorBaseTest.php
+++ b/core/tests/Drupal/Tests/Core/Form/FormStateDecoratorBaseTest.php
@@ -287,7 +287,7 @@ class FormStateDecoratorBaseTest extends UnitTestCase {
* @dataProvider providerLimitValidationErrors
*
* @param array[]|null $limit_validation_errors
- * Any valid vlaue for
+ * Any valid value for
* \Drupal\Core\Form\FormStateInterface::getLimitValidationErrors()'s
* return value;
*/
diff --git a/core/tests/Drupal/Tests/UiHelperTrait.php b/core/tests/Drupal/Tests/UiHelperTrait.php
index cc5a324..d0817f6 100644
--- a/core/tests/Drupal/Tests/UiHelperTrait.php
+++ b/core/tests/Drupal/Tests/UiHelperTrait.php
@@ -371,7 +371,7 @@ trait UiHelperTrait {
* Options to be passed to Url::fromUri().
*
* @return string
- * An absolute URL stsring.
+ * An absolute URL string.
*/
protected function buildUrl($path, array $options = []) {
if ($path instanceof Url) {
diff --git a/core/tests/Drupal/Tests/WebAssert.php b/core/tests/Drupal/Tests/WebAssert.php
index e3d06d8..19d9c2cc 100644
--- a/core/tests/Drupal/Tests/WebAssert.php
+++ b/core/tests/Drupal/Tests/WebAssert.php
@@ -167,7 +167,7 @@ class WebAssert extends MinkWebAssert {
* @param string $select
* One of id|name|label|value for the select field.
* @param string $option
- * The option value that shoulkd not exist.
+ * The option value that should not exist.
* @param \Behat\Mink\Element\TraversableElement $container
* (optional) The document to check against. Defaults to the current page.
*
diff --git a/core/themes/seven/css/components/tabs.css b/core/themes/seven/css/components/tabs.css
index f8b9966..c8d0007 100644
--- a/core/themes/seven/css/components/tabs.css
+++ b/core/themes/seven/css/components/tabs.css
@@ -59,7 +59,7 @@ li.tabs__tab {
display: block;
padding: 0;
}
-/* This is required to win over specifity of [dir="rtl"] .tabs__tab */
+/* This is required to win over specificity of [dir="rtl"] .tabs__tab */
[dir="rtl"] li.tabs__tab {
padding-left: 0;
padding-right: 0;
@@ -195,7 +195,7 @@ li.tabs__tab a {
}
[dir="rtl"] .is-horizontal .tabs__tab {
float: right;
- /* This is required to win over specifity of [dir="rtl"] .tabs > li */
+ /* This is required to win over specificity of [dir="rtl"] .tabs > li */
margin-left: 0;
}
.is-horizontal .tabs__tab + .tabs__tab {
@@ -336,7 +336,7 @@ li.tabs__tab a {
padding: 0;
}
/**
- * 1. This is required to win over specifity of
+ * 1. This is required to win over specificity of
* [dir="rtl"] .tabs.secondary .tabs__tab:hover,
* [dir="rtl"] .tabs.secondary .tabs__tab:focus
*/
diff --git a/core/themes/seven/css/components/views-ui.css b/core/themes/seven/css/components/views-ui.css
index 714819e..635d89e 100644
--- a/core/themes/seven/css/components/views-ui.css
+++ b/core/themes/seven/css/components/views-ui.css
@@ -59,7 +59,7 @@ details.fieldset-no-legend {
/* @group Dependent options
*/
-/* This is necessary to supercede the Seven .form-item
+/* This is necessary to supersede the Seven .form-item
* reset declaration that sets the margin to zero.
*/
.form-item-options-expose-required,