diff --git a/core/includes/common.inc b/core/includes/common.inc index 037c5b0..3adbada 100644 --- a/core/includes/common.inc +++ b/core/includes/common.inc @@ -203,7 +203,7 @@ function valid_email_address($mail) { * @return string * A URI stripped of dangerous protocols and encoded for output to an HTML * attribute value. Because it is already encoded, it should not be set as a - * value within a $attributes array passed to Drupal\Core\Template\Attribute, + * value within an $attributes array passed to Drupal\Core\Template\Attribute, * because Drupal\Core\Template\Attribute expects those values to be * plain-text strings. To pass a filtered URI to * Drupal\Core\Template\Attribute, call diff --git a/core/lib/Drupal/Component/Plugin/Exception/PluginNotFoundException.php b/core/lib/Drupal/Component/Plugin/Exception/PluginNotFoundException.php index fa83e01..3c78fa9 100644 --- a/core/lib/Drupal/Component/Plugin/Exception/PluginNotFoundException.php +++ b/core/lib/Drupal/Component/Plugin/Exception/PluginNotFoundException.php @@ -8,7 +8,7 @@ class PluginNotFoundException extends PluginException { /** - * Construct an PluginNotFoundException exception. + * Construct a PluginNotFoundException exception. * * For the remaining parameters see \Exception. * diff --git a/core/lib/Drupal/Core/Config/ConfigFactoryInterface.php b/core/lib/Drupal/Core/Config/ConfigFactoryInterface.php index 00aae05..cccffeb 100644 --- a/core/lib/Drupal/Core/Config/ConfigFactoryInterface.php +++ b/core/lib/Drupal/Core/Config/ConfigFactoryInterface.php @@ -21,7 +21,7 @@ public function get($name); /** - * Returns an mutable configuration object for a given name. + * Returns a mutable configuration object for a given name. * * Should not be used for config that will have runtime effects. Therefore it * is always loaded override free. diff --git a/core/lib/Drupal/Core/Database/Database.php b/core/lib/Drupal/Core/Database/Database.php index 8fe1c45..3174125 100644 --- a/core/lib/Drupal/Core/Database/Database.php +++ b/core/lib/Drupal/Core/Database/Database.php @@ -35,8 +35,8 @@ const RETURN_INSERT_ID = 3; /** - * An nested array of all active connections. It is keyed by database name - * and target. + * A nested array of all active connections. It is keyed by database name and + * target. * * @var array */ diff --git a/core/lib/Drupal/Core/Database/Driver/pgsql/Select.php b/core/lib/Drupal/Core/Database/Driver/pgsql/Select.php index 3214b33..ac75180 100644 --- a/core/lib/Drupal/Core/Database/Driver/pgsql/Select.php +++ b/core/lib/Drupal/Core/Database/Driver/pgsql/Select.php @@ -99,9 +99,8 @@ public function orderBy($field, $direction = 'ASC') { } } - // If $field contains an characters which are not allowed in a field name - // it is considered an expression, these can't be handled automatically - // either. + // If $field contains a characters which are not allowed in a field name it + // is considered an expression, these can't be handled automatically either. if ($this->connection->escapeField($field) != $field) { return $this; } diff --git a/core/lib/Drupal/Core/Database/database.api.php b/core/lib/Drupal/Core/Database/database.api.php index 07e4343..6f31ee6 100644 --- a/core/lib/Drupal/Core/Database/database.api.php +++ b/core/lib/Drupal/Core/Database/database.api.php @@ -410,7 +410,7 @@ function hook_query_alter(Drupal\Core\Database\Query\AlterableInterface $query) * Perform alterations to a structured query for a given tag. * * @param $query - * An Query object describing the composite parts of a SQL query. + * A Query object describing the composite parts of a SQL query. * * @see hook_query_alter() * @see node_query_node_access_alter() diff --git a/core/lib/Drupal/Core/Entity/Exception/NoCorrespondingEntityClassException.php b/core/lib/Drupal/Core/Entity/Exception/NoCorrespondingEntityClassException.php index b50caea..4843527 100644 --- a/core/lib/Drupal/Core/Entity/Exception/NoCorrespondingEntityClassException.php +++ b/core/lib/Drupal/Core/Entity/Exception/NoCorrespondingEntityClassException.php @@ -12,7 +12,7 @@ class NoCorrespondingEntityClassException extends \Exception { /** - * Constructs an NoCorrespondingEntityClassException. + * Constructs a NoCorrespondingEntityClassException. * * @param string $class * The class which does not correspond to an entity type. diff --git a/core/lib/Drupal/Core/Extension/ThemeHandlerInterface.php b/core/lib/Drupal/Core/Extension/ThemeHandlerInterface.php index 91778e3..7bff9bd 100644 --- a/core/lib/Drupal/Core/Extension/ThemeHandlerInterface.php +++ b/core/lib/Drupal/Core/Extension/ThemeHandlerInterface.php @@ -40,7 +40,7 @@ public function install(array $theme_list, $install_dependencies = TRUE); * The themes to uninstall. * * @throws \InvalidArgumentException - * Thrown when you uninstall an not installed theme. + * Thrown when you uninstall a not installed theme. * * @see hook_themes_uninstalled() * diff --git a/core/lib/Drupal/Core/Extension/ThemeInstallerInterface.php b/core/lib/Drupal/Core/Extension/ThemeInstallerInterface.php index ad80762..746c329 100644 --- a/core/lib/Drupal/Core/Extension/ThemeInstallerInterface.php +++ b/core/lib/Drupal/Core/Extension/ThemeInstallerInterface.php @@ -35,7 +35,7 @@ public function install(array $theme_list, $install_dependencies = TRUE); * The themes to uninstall. * * @throws \InvalidArgumentException - * Thrown when you uninstall an not installed theme. + * Thrown when you uninstall a not installed theme. * * @see hook_themes_uninstalled() */ diff --git a/core/lib/Drupal/Core/Form/ConfirmFormBase.php b/core/lib/Drupal/Core/Form/ConfirmFormBase.php index 6de9fdf..7fb3cec 100644 --- a/core/lib/Drupal/Core/Form/ConfirmFormBase.php +++ b/core/lib/Drupal/Core/Form/ConfirmFormBase.php @@ -3,7 +3,7 @@ namespace Drupal\Core\Form; /** - * Provides an generic base class for a confirmation form. + * Provides a generic base class for a confirmation form. */ abstract class ConfirmFormBase extends FormBase implements ConfirmFormInterface { diff --git a/core/lib/Drupal/Core/Queue/QueueWorkerManager.php b/core/lib/Drupal/Core/Queue/QueueWorkerManager.php index d9a47b8..b1aa40f 100644 --- a/core/lib/Drupal/Core/Queue/QueueWorkerManager.php +++ b/core/lib/Drupal/Core/Queue/QueueWorkerManager.php @@ -17,7 +17,7 @@ class QueueWorkerManager extends DefaultPluginManager implements QueueWorkerManagerInterface { /** - * Constructs an QueueWorkerManager object. + * Constructs a QueueWorkerManager object. * * @param \Traversable $namespaces * An object that implements \Traversable which contains the root paths diff --git a/core/lib/Drupal/Core/TypedData/Plugin/DataType/BinaryData.php b/core/lib/Drupal/Core/TypedData/Plugin/DataType/BinaryData.php index e51e505..b7a719e 100644 --- a/core/lib/Drupal/Core/TypedData/Plugin/DataType/BinaryData.php +++ b/core/lib/Drupal/Core/TypedData/Plugin/DataType/BinaryData.php @@ -10,7 +10,7 @@ * * The plain value of binary data is a PHP file resource, see * http://php.net/manual/language.types.resource.php. For setting the value - * a PHP file resource or a (absolute) stream resource URI may be passed. + * a PHP file resource or an (absolute) stream resource URI may be passed. * * @DataType( * id = "binary", @@ -48,7 +48,7 @@ public function getValue() { /** * Overrides TypedData::setValue(). * - * Supports a PHP file resource or a (absolute) stream resource URI as value. + * Supports a PHP file resource or an (absolute) stream resource URI as value. */ public function setValue($value, $notify = TRUE) { if (!isset($value)) { diff --git a/core/lib/Drupal/Core/TypedData/Type/BinaryInterface.php b/core/lib/Drupal/Core/TypedData/Type/BinaryInterface.php index b8bdd3a..80f13c1 100644 --- a/core/lib/Drupal/Core/TypedData/Type/BinaryInterface.php +++ b/core/lib/Drupal/Core/TypedData/Type/BinaryInterface.php @@ -9,7 +9,7 @@ * * The plain value of binary data is a PHP file resource, see * http://php.net/manual/language.types.resource.php. For setting the value - * a PHP file resource or a (absolute) stream resource URI may be passed. + * a PHP file resource or an (absolute) stream resource URI may be passed. * * @ingroup typed_data */ diff --git a/core/lib/Drupal/Core/TypedData/TypedDataManagerInterface.php b/core/lib/Drupal/Core/TypedData/TypedDataManagerInterface.php index 20a4a76..960294e 100644 --- a/core/lib/Drupal/Core/TypedData/TypedDataManagerInterface.php +++ b/core/lib/Drupal/Core/TypedData/TypedDataManagerInterface.php @@ -146,7 +146,7 @@ public function getInstance(array $options); * The parent typed data object, implementing the TypedDataInterface and * either the ListInterface or the ComplexDataInterface. * @param string $property_name - * The name of the property to instantiate, or the delta of an list item. + * The name of the property to instantiate, or the delta of a list item. * @param mixed $value * (optional) The data value. If set, it has to match one of the supported * data type formats as documented by the data type classes. diff --git a/core/lib/Drupal/Core/Url.php b/core/lib/Drupal/Core/Url.php index 2ea7b76..61aea85 100644 --- a/core/lib/Drupal/Core/Url.php +++ b/core/lib/Drupal/Core/Url.php @@ -383,7 +383,7 @@ protected static function fromEntityUri(array $uri_parts, array $options, $uri) * An array of options, see \Drupal\Core\Url::fromUri() for details. * * @return \Drupal\Core\Url - * A new Url object for a 'internal:' URI. + * A new Url object for an 'internal:' URI. * * @throws \InvalidArgumentException * Thrown when the URI's path component doesn't have a leading slash. diff --git a/core/misc/autocomplete.js b/core/misc/autocomplete.js index 5a1c156..1359751 100644 --- a/core/misc/autocomplete.js +++ b/core/misc/autocomplete.js @@ -50,7 +50,7 @@ } /** - * Returns the last value of an multi-value textfield. + * Returns the last value of a multi-value textfield. * * @function Drupal.autocomplete.extractLastTerm * diff --git a/core/misc/date.js b/core/misc/date.js index 8b6b71c..037ff12 100644 --- a/core/misc/date.js +++ b/core/misc/date.js @@ -15,7 +15,7 @@ * @prop {Drupal~behaviorAttach} attach * Attaches the behavior. Accepts in `settings.date` an object listing * elements to process, keyed by the HTML ID of the form element containing - * the human-readable value. Each element is an datepicker settings object. + * the human-readable value. Each element is a datepicker settings object. * @prop {Drupal~behaviorDetach} detach * Detach the behavior destroying datepickers on effected elements. */ diff --git a/core/misc/dialog/dialog.ajax.js b/core/misc/dialog/dialog.ajax.js index 3f1b0c2..b74f1ed 100644 --- a/core/misc/dialog/dialog.ajax.js +++ b/core/misc/dialog/dialog.ajax.js @@ -55,7 +55,7 @@ * Scan a dialog for any primary buttons and move them to the button area. * * @param {jQuery} $dialog - * An jQuery object containing the element that is the dialog target. + * A jQuery object containing the element that is the dialog target. * * @return {Array} * An array of buttons that need to be added to the button area. diff --git a/core/modules/comment/src/Form/ConfirmDeleteMultiple.php b/core/modules/comment/src/Form/ConfirmDeleteMultiple.php index 662cfa4..63fedc4 100644 --- a/core/modules/comment/src/Form/ConfirmDeleteMultiple.php +++ b/core/modules/comment/src/Form/ConfirmDeleteMultiple.php @@ -29,7 +29,7 @@ class ConfirmDeleteMultiple extends ConfirmFormBase { protected $comments; /** - * Creates an new ConfirmDeleteMultiple form. + * Creates a new ConfirmDeleteMultiple form. * * @param \Drupal\comment\CommentStorageInterface $comment_storage * The comment storage. diff --git a/core/modules/comment/src/Plugin/migrate/destination/EntityComment.php b/core/modules/comment/src/Plugin/migrate/destination/EntityComment.php index a3e82af..c26bf9e 100644 --- a/core/modules/comment/src/Plugin/migrate/destination/EntityComment.php +++ b/core/modules/comment/src/Plugin/migrate/destination/EntityComment.php @@ -33,7 +33,7 @@ class EntityComment extends EntityContentBase { protected $stubCommentedEntityIds; /** - * Builds an comment entity destination. + * Builds a comment entity destination. * * @param array $configuration * A configuration array containing information about the plugin instance. diff --git a/core/modules/content_moderation/src/Plugin/Derivative/DynamicLocalTasks.php b/core/modules/content_moderation/src/Plugin/Derivative/DynamicLocalTasks.php index 7ff1fa5..c9c934c 100644 --- a/core/modules/content_moderation/src/Plugin/Derivative/DynamicLocalTasks.php +++ b/core/modules/content_moderation/src/Plugin/Derivative/DynamicLocalTasks.php @@ -40,7 +40,7 @@ class DynamicLocalTasks extends DeriverBase implements ContainerDeriverInterface protected $moderationInfo; /** - * Creates an FieldUiLocalTask object. + * Creates a FieldUiLocalTask object. * * @param string $base_plugin_id * The base plugin ID. diff --git a/core/modules/dblog/src/Tests/ConnectionFailureTest.php b/core/modules/dblog/src/Tests/ConnectionFailureTest.php index d800224..3192d90 100644 --- a/core/modules/dblog/src/Tests/ConnectionFailureTest.php +++ b/core/modules/dblog/src/Tests/ConnectionFailureTest.php @@ -23,7 +23,7 @@ function testConnectionFailureLogging() { // MySQL errors like "1153 - Got a packet bigger than 'max_allowed_packet' // bytes" or "1100 - Table 'xyz' was not locked with LOCK TABLES" lead to a // database connection unusable for further requests. All further request - // will result in an "2006 - MySQL server had gone away" error. As a + // will result in a "2006 - MySQL server had gone away" error. As a // consequence it's impossible to use this connection to log the causing // initial error itself. Using Database::closeConnection() we simulate such // a corrupted connection. In this case dblog has to establish a different diff --git a/core/modules/editor/src/Tests/EditorLoadingTest.php b/core/modules/editor/src/Tests/EditorLoadingTest.php index 88055e9..1d5bf7b 100644 --- a/core/modules/editor/src/Tests/EditorLoadingTest.php +++ b/core/modules/editor/src/Tests/EditorLoadingTest.php @@ -230,7 +230,7 @@ public function testSupportedElementTypes() { ]); $editor->save(); - // Create an "page" node that uses the full_html text format. + // Create a "page" node that uses the full_html text format. $this->drupalCreateNode(array( 'type' => 'page', 'field_text' => array( diff --git a/core/modules/field/src/Tests/EntityReference/EntityReferenceIntegrationTest.php b/core/modules/field/src/Tests/EntityReference/EntityReferenceIntegrationTest.php index 4c099fe..4ac949a 100644 --- a/core/modules/field/src/Tests/EntityReference/EntityReferenceIntegrationTest.php +++ b/core/modules/field/src/Tests/EntityReference/EntityReferenceIntegrationTest.php @@ -74,7 +74,7 @@ public function testSupportedEntityTypesAndWidgets() { $edit = array( 'name[0][value]' => $entity_name, $this->fieldName . '[0][target_id]' => $referenced_entities[0]->label() . ' (' . $referenced_entities[0]->id() . ')', - // Test an input of the entity label without a ' (entity_id)' suffix. + // Test an input of the entity label without an ' (entity_id)' suffix. $this->fieldName . '[1][target_id]' => $referenced_entities[1]->label(), ); $this->drupalPostForm($this->entityType . '/add', $edit, t('Save')); @@ -99,7 +99,7 @@ public function testSupportedEntityTypesAndWidgets() { $entity_name = $this->randomMachineName(); $target_id = $referenced_entities[0]->label() . ' (' . $referenced_entities[0]->id() . ')'; - // Test an input of the entity label without a ' (entity_id)' suffix. + // Test an input of the entity label without an ' (entity_id)' suffix. $target_id .= ', ' . $referenced_entities[1]->label(); $edit = array( 'name[0][value]' => $entity_name, diff --git a/core/modules/field_ui/src/Plugin/Derivative/FieldUiLocalTask.php b/core/modules/field_ui/src/Plugin/Derivative/FieldUiLocalTask.php index 3ebf959..58d7efd 100644 --- a/core/modules/field_ui/src/Plugin/Derivative/FieldUiLocalTask.php +++ b/core/modules/field_ui/src/Plugin/Derivative/FieldUiLocalTask.php @@ -31,7 +31,7 @@ class FieldUiLocalTask extends DeriverBase implements ContainerDeriverInterface protected $entityManager; /** - * Creates an FieldUiLocalTask object. + * Creates a FieldUiLocalTask object. * * @param \Drupal\Core\Routing\RouteProviderInterface $route_provider * The route provider. diff --git a/core/modules/filter/src/Annotation/Filter.php b/core/modules/filter/src/Annotation/Filter.php index 9d7d1cc..f2a768e 100644 --- a/core/modules/filter/src/Annotation/Filter.php +++ b/core/modules/filter/src/Annotation/Filter.php @@ -5,7 +5,7 @@ use Drupal\Component\Annotation\Plugin; /** - * Defines an filter annotation object. + * Defines a filter annotation object. * * Plugin Namespace: Plugin\Filter * diff --git a/core/modules/filter/src/Entity/FilterFormat.php b/core/modules/filter/src/Entity/FilterFormat.php index 8ae4d60..34f860b 100644 --- a/core/modules/filter/src/Entity/FilterFormat.php +++ b/core/modules/filter/src/Entity/FilterFormat.php @@ -368,10 +368,10 @@ public function getHtmlRestrictions() { } }, NULL); - // Simplification: if we have both a (intersected) whitelist and a (unioned) - // blacklist, then remove any tags from the whitelist that also exist in the - // blacklist. Now the whitelist alone expresses all tag-level restrictions, - // and we can delete the blacklist. + // Simplification: if we have both an (intersected) whitelist and a + // (unioned) blacklist, then remove any tags from the whitelist that also + // exist in the blacklist. Now the whitelist alone expresses all tag-level + // restrictions, and we can delete the blacklist. if (isset($restrictions['allowed']) && isset($restrictions['forbidden_tags'])) { foreach ($restrictions['forbidden_tags'] as $tag) { if (isset($restrictions['allowed'][$tag])) { diff --git a/core/modules/filter/src/Tests/FilterFormTest.php b/core/modules/filter/src/Tests/FilterFormTest.php index 24bbc15..26c922e 100644 --- a/core/modules/filter/src/Tests/FilterFormTest.php +++ b/core/modules/filter/src/Tests/FilterFormTest.php @@ -28,7 +28,7 @@ class FilterFormTest extends WebTestBase { protected $adminUser; /** - * An basic user account that can only access basic HTML text format. + * A basic user account that can only access basic HTML text format. * * @var \Drupal\user\Entity\User */ diff --git a/core/modules/hal/src/Normalizer/ContentEntityNormalizer.php b/core/modules/hal/src/Normalizer/ContentEntityNormalizer.php index 88eb36c..0bd9f49 100644 --- a/core/modules/hal/src/Normalizer/ContentEntityNormalizer.php +++ b/core/modules/hal/src/Normalizer/ContentEntityNormalizer.php @@ -39,7 +39,7 @@ class ContentEntityNormalizer extends NormalizerBase { protected $moduleHandler; /** - * Constructs an ContentEntityNormalizer object. + * Constructs a ContentEntityNormalizer object. * * @param \Drupal\serialization\LinkManager\LinkManagerInterface $link_manager * The hypermedia link manager. diff --git a/core/modules/help/tests/src/Functional/HelpTest.php b/core/modules/help/tests/src/Functional/HelpTest.php index 2e82499..a5dfcdd 100644 --- a/core/modules/help/tests/src/Functional/HelpTest.php +++ b/core/modules/help/tests/src/Functional/HelpTest.php @@ -77,7 +77,7 @@ public function testHelp() { $this->assertLink($name, 0, format_string('Link properly added to @name (admin/help/@module)', array('@module' => $module, '@name' => $name))); } - // Ensure that module which does not provide an module overview page is + // Ensure that module which does not provide a module overview page is // handled correctly. $this->clickLink(\Drupal::moduleHandler()->getName('help_test')); $this->assertRaw(t('No help is available for module %module.', array('%module' => \Drupal::moduleHandler()->getName('help_test')))); diff --git a/core/modules/image/src/Plugin/Field/FieldType/ImageItem.php b/core/modules/image/src/Plugin/Field/FieldType/ImageItem.php index c83e143..256687f 100644 --- a/core/modules/image/src/Plugin/Field/FieldType/ImageItem.php +++ b/core/modules/image/src/Plugin/Field/FieldType/ImageItem.php @@ -452,7 +452,7 @@ protected function defaultImageForm(array &$element, array $settings) { * Validates the managed_file element for the default Image form. * * This function ensures the fid is a scalar value and not an array. It is - * assigned as a #element_validate callback in + * assigned as an #element_validate callback in * \Drupal\image\Plugin\Field\FieldType\ImageItem::defaultImageForm(). * * @param array $element diff --git a/core/modules/image/src/Tests/ImageFieldDefaultImagesTest.php b/core/modules/image/src/Tests/ImageFieldDefaultImagesTest.php index a0f0274..5cf16dc 100644 --- a/core/modules/image/src/Tests/ImageFieldDefaultImagesTest.php +++ b/core/modules/image/src/Tests/ImageFieldDefaultImagesTest.php @@ -43,7 +43,7 @@ public function testDefaultImages() { $default_images[$image_target] = $file; } - // Create an image field and add an field to the article content type. + // Create an image field and add a field to the article content type. $field_name = strtolower($this->randomMachineName()); $storage_settings['default_image'] = array( 'uuid' => $default_images['field']->uuid(), diff --git a/core/modules/language/src/Plugin/Block/LanguageBlock.php b/core/modules/language/src/Plugin/Block/LanguageBlock.php index 5c58ac0..25800fa 100644 --- a/core/modules/language/src/Plugin/Block/LanguageBlock.php +++ b/core/modules/language/src/Plugin/Block/LanguageBlock.php @@ -38,7 +38,7 @@ class LanguageBlock extends BlockBase implements ContainerFactoryPluginInterface protected $pathMatcher; /** - * Constructs an LanguageBlock object. + * Constructs a LanguageBlock object. * * @param array $configuration * A configuration array containing information about the plugin instance. diff --git a/core/modules/language/src/Plugin/LanguageNegotiation/LanguageNegotiationContentEntity.php b/core/modules/language/src/Plugin/LanguageNegotiation/LanguageNegotiationContentEntity.php index 9218899..18a5d7c 100644 --- a/core/modules/language/src/Plugin/LanguageNegotiation/LanguageNegotiationContentEntity.php +++ b/core/modules/language/src/Plugin/LanguageNegotiation/LanguageNegotiationContentEntity.php @@ -201,7 +201,7 @@ protected function hasLowerLanguageNegotiationWeight() { /** * Determines if content entity route condition is met. * - * Requirements: currently being on an content entity route and processing + * Requirements: currently being on a content entity route and processing * outbound url pointing to the same content entity. * * @param \Symfony\Component\Routing\Route $outbound_route diff --git a/core/modules/language/tests/src/Kernel/EntityUrlLanguageTest.php b/core/modules/language/tests/src/Kernel/EntityUrlLanguageTest.php index fb62f48..45694fa 100644 --- a/core/modules/language/tests/src/Kernel/EntityUrlLanguageTest.php +++ b/core/modules/language/tests/src/Kernel/EntityUrlLanguageTest.php @@ -78,7 +78,7 @@ public function testEntityUrlLanguageWithLanguageContentEnabled() { ]); $config->save(); - // Without being on an content entity route the default entity URL tests + // Without being on a content entity route the default entity URL tests // should still pass. $this->testEntityUrlLanguage(); diff --git a/core/modules/link/src/Plugin/Field/FieldWidget/LinkWidget.php b/core/modules/link/src/Plugin/Field/FieldWidget/LinkWidget.php index 9af176c..37eae86 100644 --- a/core/modules/link/src/Plugin/Field/FieldWidget/LinkWidget.php +++ b/core/modules/link/src/Plugin/Field/FieldWidget/LinkWidget.php @@ -133,7 +133,7 @@ public static function validateUriElement($element, FormStateInterface $form_sta $uri = static::getUserEnteredStringAsUri($element['#value']); $form_state->setValueForElement($element, $uri); - // If getUserEnteredStringAsUri() mapped the entered value to a 'internal:' + // If getUserEnteredStringAsUri() mapped the entered value to an 'internal:' // URI , ensure the raw value begins with '/', '?' or '#'. // @todo '' is valid input for BC reasons, may be removed by // https://www.drupal.org/node/2421941 diff --git a/core/modules/locale/locale.module b/core/modules/locale/locale.module index 5b59faa..fbea169 100644 --- a/core/modules/locale/locale.module +++ b/core/modules/locale/locale.module @@ -1015,7 +1015,7 @@ function locale_translation_use_remote_source() { * not have any false positives. But it is only a test, not a transformation, * as it destroys valid HTML. We cannot reliably filter translation strings * on import because some strings are irreversibly corrupted. For example, - * a & in the translation would get encoded to & by + * an & in the translation would get encoded to & by * \Drupal\Component\Utility\Xss::filter() before being put in the database, * and thus would be displayed incorrectly. * diff --git a/core/modules/menu_link_content/src/Entity/MenuLinkContent.php b/core/modules/menu_link_content/src/Entity/MenuLinkContent.php index d23f876..0fa76cc 100644 --- a/core/modules/menu_link_content/src/Entity/MenuLinkContent.php +++ b/core/modules/menu_link_content/src/Entity/MenuLinkContent.php @@ -195,7 +195,7 @@ public function postSave(EntityStorageInterface $storage, $update = TRUE) { /** @var \Drupal\Core\Menu\MenuLinkManagerInterface $menu_link_manager */ $menu_link_manager = \Drupal::service('plugin.manager.menu.link'); - // The menu link can just be updated if there is already an menu link entry + // The menu link can just be updated if there is already a menu link entry // on both entity and menu link plugin level. $definition = $this->getPluginDefinition(); // Even when $update is FALSE, for top level links it is possible the link diff --git a/core/modules/node/src/Controller/NodeViewController.php b/core/modules/node/src/Controller/NodeViewController.php index fce50e1..b3ee4e7 100644 --- a/core/modules/node/src/Controller/NodeViewController.php +++ b/core/modules/node/src/Controller/NodeViewController.php @@ -22,7 +22,7 @@ class NodeViewController extends EntityViewController { protected $currentUser; /** - * Creates an NodeViewController object. + * Creates a NodeViewController object. * * @param \Drupal\Core\Entity\EntityManagerInterface $entity_manager * The entity manager. diff --git a/core/modules/simpletest/src/Exception/MissingGroupException.php b/core/modules/simpletest/src/Exception/MissingGroupException.php index 85a0696..05ecb36 100644 --- a/core/modules/simpletest/src/Exception/MissingGroupException.php +++ b/core/modules/simpletest/src/Exception/MissingGroupException.php @@ -3,7 +3,7 @@ namespace Drupal\simpletest\Exception; /** - * Exception thrown when a simpletest class is missing an @group annotation. + * Exception thrown when a simpletest class is missing a @group annotation. */ class MissingGroupException extends \LogicException { } diff --git a/core/modules/simpletest/src/WebTestBase.php b/core/modules/simpletest/src/WebTestBase.php index bce0522..e9cbca2 100644 --- a/core/modules/simpletest/src/WebTestBase.php +++ b/core/modules/simpletest/src/WebTestBase.php @@ -1453,7 +1453,7 @@ protected function drupalProcessAjaxResponse($content, array $ajax_response, arr * The value for the "Accept" header. Usually either 'application/json' or * 'application/vnd.drupal-ajax'. * @param array $post - * The POST data. When making a 'application/vnd.drupal-ajax' request, the + * The POST data. When making an 'application/vnd.drupal-ajax' request, the * Ajax page state data should be included. Use getAjaxPageStatePostData() * for that. * @param array $options @@ -1486,7 +1486,7 @@ protected function drupalPost($path, $accept, array $post, $options = array()) { * @param string $format * The request format. * @param array $post - * The POST data. When making a 'application/vnd.drupal-ajax' request, the + * The POST data. When making an 'application/vnd.drupal-ajax' request, the * Ajax page state data should be included. Use getAjaxPageStatePostData() * for that. * @param array $options diff --git a/core/modules/system/src/Form/DateFormatDeleteForm.php b/core/modules/system/src/Form/DateFormatDeleteForm.php index a8e1c04..937fd8a 100644 --- a/core/modules/system/src/Form/DateFormatDeleteForm.php +++ b/core/modules/system/src/Form/DateFormatDeleteForm.php @@ -19,7 +19,7 @@ class DateFormatDeleteForm extends EntityDeleteForm { protected $dateFormatter; /** - * Constructs an DateFormatDeleteForm object. + * Constructs a DateFormatDeleteForm object. * * @param \Drupal\Core\Datetime\DateFormatterInterface $date_formatter * The date formatter service. diff --git a/core/modules/system/src/Tests/ParamConverter/UpcastingTest.php b/core/modules/system/src/Tests/ParamConverter/UpcastingTest.php index b881386..12ce5b3 100644 --- a/core/modules/system/src/Tests/ParamConverter/UpcastingTest.php +++ b/core/modules/system/src/Tests/ParamConverter/UpcastingTest.php @@ -21,7 +21,7 @@ class UpcastingTest extends WebTestBase { * signature: f($user, $node, $foo) returning either values or labels * like "user: Dries, node: First post, foo: bar" * - * The tests shuffle the parameters around an checks if the right thing is + * The tests shuffle the parameters around a checks if the right thing is * happening. */ public function testUpcasting() { diff --git a/core/modules/system/src/Tests/System/HtaccessTest.php b/core/modules/system/src/Tests/System/HtaccessTest.php index ad6e09e..3b885cf 100644 --- a/core/modules/system/src/Tests/System/HtaccessTest.php +++ b/core/modules/system/src/Tests/System/HtaccessTest.php @@ -104,7 +104,7 @@ public function testFileAccess() { // Test that it is possible to have path aliases containing .php. $type = $this->drupalCreateContentType(); - // Create an node aliased to test.php. + // Create a node aliased to test.php. $node = $this->drupalCreateNode([ 'title' => 'This is a node', 'type' => $type->id(), diff --git a/core/modules/system/system.install b/core/modules/system/system.install index d022f6a..58b3a58 100644 --- a/core/modules/system/system.install +++ b/core/modules/system/system.install @@ -1216,11 +1216,11 @@ function system_update_8003() { } /** - * Add a (id, default_langcode, langcode) composite index to entities. + * Add an (id, default_langcode, langcode) composite index to entities. */ function system_update_8004() { // \Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema was changed in - // https://www.drupal.org/node/2261669 to include a (id, default_langcode, + // https://www.drupal.org/node/2261669 to include an (id, default_langcode, // langcode) compound index, but this update function wasn't added until // https://www.drupal.org/node/2542748. Regenerate the related schemas to // ensure they match the currently expected status. diff --git a/core/modules/system/templates/admin-page.html.twig b/core/modules/system/templates/admin-page.html.twig index a2483f1..0faa529 100644 --- a/core/modules/system/templates/admin-page.html.twig +++ b/core/modules/system/templates/admin-page.html.twig @@ -5,7 +5,7 @@ * * Available variables: * - system_compact_link: Themed link to toggle compact view. - * - containers: An list of administrative blocks keyed by position: left or + * - containers: A list of administrative blocks keyed by position: left or * right. Contains: * - blocks: A list of blocks within a container. * diff --git a/core/modules/toolbar/src/Tests/ToolbarAdminMenuTest.php b/core/modules/toolbar/src/Tests/ToolbarAdminMenuTest.php index 56b9d69..3722018 100644 --- a/core/modules/toolbar/src/Tests/ToolbarAdminMenuTest.php +++ b/core/modules/toolbar/src/Tests/ToolbarAdminMenuTest.php @@ -125,7 +125,7 @@ function testModuleStatusChangeSubtreesHashCacheClear() { * Tests toolbar cache tags implementation. */ function testMenuLinkUpdateSubtreesHashCacheClear() { - // The ID of a (any) admin menu link. + // The ID of an (any) admin menu link. $admin_menu_link_id = 'system.admin_config_development'; // Disable the link. diff --git a/core/modules/tour/js/tour.js b/core/modules/tour/js/tour.js index 2c7050f..7da8f37 100644 --- a/core/modules/tour/js/tour.js +++ b/core/modules/tour/js/tour.js @@ -184,7 +184,7 @@ * Gets the tour. * * @return {jQuery} - * A jQuery element pointing to a `
    ` containing tour items. + * A jQuery element pointing to an `
      ` containing tour items. */ _getTour: function () { return this.model.get('tour'); @@ -212,7 +212,7 @@ * http://example.com/foo?tips=bar * * @param {jQuery} $tour - * A jQuery element pointing to a `
        ` containing tour items. + * A jQuery element pointing to an `
          ` containing tour items. * @param {jQuery} $document * A jQuery element pointing to the document within which the elements * should be sought. diff --git a/core/modules/update/src/Tests/UpdateCoreTest.php b/core/modules/update/src/Tests/UpdateCoreTest.php index 6aebf23..8d18e49 100644 --- a/core/modules/update/src/Tests/UpdateCoreTest.php +++ b/core/modules/update/src/Tests/UpdateCoreTest.php @@ -281,7 +281,7 @@ function testModulePageSecurityUpdate() { // Make sure duplicate messages don't appear on Update status pages. $this->drupalGet('admin/reports/status'); // We're expecting "There is a security update..." inside the status report - // itself, but the drupal_set_message() appears as an li so we can prefix + // itself, but the drupal_set_message() appears as a li so we can prefix // with that and search for the raw HTML. $this->assertNoRaw('
        1. ' . t('There is a security update available for your version of Drupal.')); diff --git a/core/modules/views/src/ManyToOneHelper.php b/core/modules/views/src/ManyToOneHelper.php index a3c4834..d91c79f 100644 --- a/core/modules/views/src/ManyToOneHelper.php +++ b/core/modules/views/src/ManyToOneHelper.php @@ -269,7 +269,7 @@ public function addFilter() { } // add_condition determines whether a single expression is enough(FALSE) or the - // conditions should be added via an db_or()/db_and() (TRUE). + // conditions should be added via a db_or()/db_and() (TRUE). $add_condition = TRUE; if ($operator == 'not') { $value = NULL; diff --git a/core/modules/views/src/Plugin/views/argument_validator/Entity.php b/core/modules/views/src/Plugin/views/argument_validator/Entity.php index 5294731..3cd8c47 100644 --- a/core/modules/views/src/Plugin/views/argument_validator/Entity.php +++ b/core/modules/views/src/Plugin/views/argument_validator/Entity.php @@ -35,7 +35,7 @@ class Entity extends ArgumentValidatorPluginBase { protected $multipleCapable = TRUE; /** - * Constructs an \Drupal\views\Plugin\views\argument_validator\Entity object. + * Constructs a \Drupal\views\Plugin\views\argument_validator\Entity object. * * @param array $configuration * A configuration array containing information about the plugin instance. diff --git a/core/modules/views/src/Plugin/views/display/EntityReference.php b/core/modules/views/src/Plugin/views/display/EntityReference.php index bf2d460..68494d6 100644 --- a/core/modules/views/src/Plugin/views/display/EntityReference.php +++ b/core/modules/views/src/Plugin/views/display/EntityReference.php @@ -6,7 +6,7 @@ * The plugin that handles an EntityReference display. * * "entity_reference_display" is a custom property, used with - * \Drupal\views\Views::getApplicableViews() to retrieve all views with a + * \Drupal\views\Views::getApplicableViews() to retrieve all views with an * 'Entity Reference' display. * * @ingroup views_display_plugins diff --git a/core/modules/views/tests/src/Unit/ViewsDataTest.php b/core/modules/views/tests/src/Unit/ViewsDataTest.php index 2351892..ee12007 100644 --- a/core/modules/views/tests/src/Unit/ViewsDataTest.php +++ b/core/modules/views/tests/src/Unit/ViewsDataTest.php @@ -481,7 +481,7 @@ public function testCacheCallsWithWarmCacheAndDifferentTable() { } /** - * Tests the cache calls for an not existing table: + * Tests the cache calls for a not existing table: * * Warm cache: * - all tables @@ -519,7 +519,7 @@ public function testCacheCallsWithWarmCacheAndInvalidTable() { } /** - * Tests the cache calls for an not existing table: + * Tests the cache calls for a not existing table: * * Warm cache: * - all tables diff --git a/core/modules/views_ui/src/Form/Ajax/ViewsFormInterface.php b/core/modules/views_ui/src/Form/Ajax/ViewsFormInterface.php index c19c73c..44b2087 100644 --- a/core/modules/views_ui/src/Form/Ajax/ViewsFormInterface.php +++ b/core/modules/views_ui/src/Form/Ajax/ViewsFormInterface.php @@ -44,7 +44,7 @@ public function getFormState(ViewEntityInterface $view, $display_id, $js); * be 'nojs'. This determines the response. * * @return array - * An form for a specific operation in the Views UI, or an array of AJAX + * A form for a specific operation in the Views UI, or an array of AJAX * commands to render a form. * * @todo When https://www.drupal.org/node/1843224 is in, this will return diff --git a/core/modules/views_ui/src/ViewEditForm.php b/core/modules/views_ui/src/ViewEditForm.php index 6e81939..02f0240 100644 --- a/core/modules/views_ui/src/ViewEditForm.php +++ b/core/modules/views_ui/src/ViewEditForm.php @@ -758,7 +758,7 @@ public function renderDisplayTop(ViewUI $view) { '#submit' => array('::submitDisplayAdd', '::submitDelayDestination'), '#attributes' => array('class' => array('add-display')), // Allow JavaScript to remove the 'Add ' prefix from the button label when - // placing the button in a "Add" dropdown menu. + // placing the button in an "Add" dropdown menu. '#process' => array_merge(array('views_ui_form_button_was_clicked'), $this->elementInfo->getInfoProperty('submit', '#process', array())), '#values' => array($this->t('Add @display', array('@display' => $label)), $label), ); diff --git a/core/tests/Drupal/KernelTests/Core/Http/LinkRelationsTest.php b/core/tests/Drupal/KernelTests/Core/Http/LinkRelationsTest.php index d01537b..0a9852d 100644 --- a/core/tests/Drupal/KernelTests/Core/Http/LinkRelationsTest.php +++ b/core/tests/Drupal/KernelTests/Core/Http/LinkRelationsTest.php @@ -19,7 +19,7 @@ public function testAvailableLinkRelationships() { /** @var \Drupal\Core\Http\LinkRelationTypeManager $link_relation_type_manager */ $link_relation_type_manager = $this->container->get('plugin.manager.link_relation_type'); - // An link relation type of the "registered" kind. + // A link relation type of the "registered" kind. /** @var \Drupal\Core\Http\LinkRelationTypeInterface $canonical */ $canonical = $link_relation_type_manager->createInstance('canonical'); $this->assertInstanceOf(LinkRelationType::class, $canonical); @@ -31,7 +31,7 @@ public function testAvailableLinkRelationships() { $this->assertEquals('Designates the preferred version of a resource (the IRI and its contents).', $canonical->getDescription()); $this->assertEquals('', $canonical->getNotes()); - // An link relation type of the "extension" kind. + // A link relation type of the "extension" kind. /** @var \Drupal\Core\Http\LinkRelationTypeInterface $canonical */ $add_form = $link_relation_type_manager->createInstance('add-form'); $this->assertInstanceOf(LinkRelationType::class, $add_form); diff --git a/core/tests/Drupal/Tests/Core/Entity/EntityResolverManagerTest.php b/core/tests/Drupal/Tests/Core/Entity/EntityResolverManagerTest.php index 6e16470..5a65042 100644 --- a/core/tests/Drupal/Tests/Core/Entity/EntityResolverManagerTest.php +++ b/core/tests/Drupal/Tests/Core/Entity/EntityResolverManagerTest.php @@ -266,7 +266,7 @@ public function testSetRouteOptionsWithEntityUpcastingNoCreate() { } /** - * Tests setRouteOptions() with an form parameter without interface. + * Tests setRouteOptions() with a form parameter without interface. * * @covers ::setRouteOptions * @covers ::getControllerClass diff --git a/core/tests/Drupal/Tests/Core/Entity/Sql/DefaultTableMappingTest.php b/core/tests/Drupal/Tests/Core/Entity/Sql/DefaultTableMappingTest.php index 8ce420b..1686cd8 100644 --- a/core/tests/Drupal/Tests/Core/Entity/Sql/DefaultTableMappingTest.php +++ b/core/tests/Drupal/Tests/Core/Entity/Sql/DefaultTableMappingTest.php @@ -317,7 +317,7 @@ public function testGetFieldColumnNameInvalid($base_field, $columns, $column) { * Provides test data for testGetFieldColumnName(). * * @return array[] - * An nested array where each inner array has the following values: test + * A nested array where each inner array has the following values: test * field name, base field status, list of field columns, name of the column * to be retrieved, expected result, whether an exception is expected. */ diff --git a/core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageTest.php b/core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageTest.php index 5d56929..3433d2f 100644 --- a/core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageTest.php +++ b/core/tests/Drupal/Tests/Core/Entity/Sql/SqlContentEntityStorageTest.php @@ -144,7 +144,7 @@ public function testGetBaseTable($base_table, $expected) { * Provides test data for testGetBaseTable(). * * @return array[] - * An nested array where each inner array has the base table to be returned + * A nested array where each inner array has the base table to be returned * by the mocked entity type as the first value and the expected return * value of SqlContentEntityStorage::getBaseTable() as the second * value. @@ -189,7 +189,7 @@ public function testGetRevisionTable($revision_table, $expected) { * Provides test data for testGetRevisionTable(). * * @return array[] - * An nested array where each inner array has the revision table to be + * A nested array where each inner array has the revision table to be * returned by the mocked entity type as the first value and the expected * return value of SqlContentEntityStorage::getRevisionTable() as the * second value. @@ -261,7 +261,7 @@ public function testGetRevisionDataTable($revision_data_table, $expected) { * Provides test data for testGetRevisionDataTable(). * * @return array[] - * An nested array where each inner array has the revision data table to be + * A nested array where each inner array has the revision data table to be * returned by the mocked entity type as the first value and the expected * return value of SqlContentEntityStorage::getRevisionDataTable() as * the second value. diff --git a/core/themes/classy/templates/dataset/item-list--search-results.html.twig b/core/themes/classy/templates/dataset/item-list--search-results.html.twig index e9928fd..0a5da4d 100644 --- a/core/themes/classy/templates/dataset/item-list--search-results.html.twig +++ b/core/themes/classy/templates/dataset/item-list--search-results.html.twig @@ -13,7 +13,7 @@ * - attributes: HTML attributes to be applied to the list. * - empty: A message to display when there are no items. Allowed value is a * string or render array. - * - context: An list of contextual data associated with the list. For search + * - context: A list of contextual data associated with the list. For search * results, the following data is set: * - plugin: The search plugin ID, for example "node_search". * diff --git a/core/themes/stable/templates/admin/admin-page.html.twig b/core/themes/stable/templates/admin/admin-page.html.twig index 106876f..ea69e99 100644 --- a/core/themes/stable/templates/admin/admin-page.html.twig +++ b/core/themes/stable/templates/admin/admin-page.html.twig @@ -5,7 +5,7 @@ * * Available variables: * - system_compact_link: Themed link to toggle compact view. - * - containers: An list of administrative blocks keyed by position: left or + * - containers: A list of administrative blocks keyed by position: left or * right. Contains: * - blocks: A list of blocks within a container. *