Unverified Commit 9caf7d9a authored by alexpott's avatar alexpott
Browse files

Issue #3175287 by murilohp, quietone, SivaprasadC, ankithashetty,...

Issue #3175287 by murilohp, quietone, SivaprasadC, ankithashetty, anmolgoyal74, sarvjeetsingh, xjm, longwave: Remove accidentally duplicated words in code comments

(cherry picked from commit adff905c)
parent 9a28ddce
......@@ -438,7 +438,7 @@ private function readLine() {
return FALSE;
}
// Remove 'msgstr' and trim away away whitespaces.
// Remove 'msgstr' and trim away whitespaces.
$line = trim(substr($line, 6));
// Only the msgstr string is left, parse it.
......
......@@ -332,7 +332,7 @@ public function leftJoin($table, $alias = NULL, $condition = NULL, $arguments =
* fields on which to join.
*
* @param $type
* The type of join. Typically one one of INNER, LEFT OUTER, and RIGHT OUTER.
* The type of join. Typically one of INNER, LEFT OUTER, and RIGHT OUTER.
* @param $table
* The table against which to join. May be a string or another SelectQuery
* object. If a query object is passed, it will be used as a subselect.
......
......@@ -162,7 +162,7 @@
* remains in scope; when $transaction is destroyed, the transaction will be
* committed. If your transaction is nested inside of another then Drupal will
* track each transaction and only commit the outer-most transaction when the
* last transaction object goes out out of scope (when all relevant queries have
* last transaction object goes out of scope (when all relevant queries have
* completed successfully).
*
* Example:
......
......@@ -83,7 +83,7 @@ abstract class EntityStorageBase extends EntityHandlerBase implements EntityStor
protected $memoryCache;
/**
* The memory cache cache tag.
* The memory cache tag.
*
* @var string
*/
......
......@@ -80,7 +80,7 @@ class EntityReferenceEntityFormatter extends EntityReferenceFormatterBase {
* @param string $view_mode
* The view mode.
* @param array $third_party_settings
* Any third party settings settings.
* Any third party settings.
* @param \Drupal\Core\Logger\LoggerChannelFactoryInterface $logger_factory
* The logger factory.
* @param \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager
......
......@@ -46,7 +46,7 @@ class LanguageFormatter extends StringFormatter {
* @param string $view_mode
* The view mode.
* @param array $third_party_settings
* Any third party settings settings.
* Any third party settings.
* @param \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager
* The entity type manager.
* @param \Drupal\Core\Language\LanguageManagerInterface $language_manager
......
......@@ -51,7 +51,7 @@ class StringFormatter extends FormatterBase {
* @param string $view_mode
* The view mode.
* @param array $third_party_settings
* Any third party settings settings.
* Any third party settings.
* @param \Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager
* The entity type manager.
*/
......
......@@ -62,7 +62,7 @@ public function numberOfItems();
* problem.
*
* If returned, the object will have at least the following properties:
* - data: the same as what what passed into createItem().
* - data: the same as what passed into createItem().
* - item_id: the unique ID returned from createItem().
* - created: timestamp when the item was put into the queue.
*/
......
......@@ -1132,7 +1132,7 @@ function hook_page_bottom(array &$page_bottom) {
* - 'base_theme': A base theme is being checked for theme implementations.
* - 'theme': The actual theme in use is being checked.
* @param $theme
* The actual name of theme, module, etc. that is being being processed.
* The actual name of theme, module, etc. that is being processed.
* @param $path
* The directory path of the theme or module, so that it doesn't need to be
* looked up.
......
......@@ -310,7 +310,7 @@ protected function getCandidateOutlines(array $parts) {
$current .= $parts[$length - $j];
}
else {
// Bit zero means means wildcard.
// Bit zero means wildcard.
$current .= '%';
}
// Unless we are at offset 0, add a slash.
......
......@@ -244,7 +244,7 @@ public static function fromUserInput($user_input, $options = []) {
* you may use entity:{entity_type}/{entity_id} URIs. The internal: scheme
* should be avoided except when processing actual user input that may or
* may not correspond to a Drupal route. Normally use Url::fromRoute() for
* code linking to any any Drupal page.
* code linking to any Drupal page.
* @param array $options
* (optional) An associative array of additional URL options, with the
* following elements:
......
......@@ -319,9 +319,8 @@ public function loadThread(EntityInterface $entity, $field_name, $mode, $comment
$query->orderBy('c.cid', 'ASC');
}
else {
// See comment above. Analysis reveals that this doesn't cost too
// much. It scales much much better than having the whole comment
// structure.
// See comment above. Analysis reveals that this doesn't cost too much. It
// scales much better than having the whole comment structure.
$query->addExpression('SUBSTRING([c].[thread], 1, (LENGTH([c].[thread]) - 1))', 'torder');
$query->orderBy('torder', 'ASC');
}
......
......@@ -391,7 +391,7 @@ public function getUnapprovedComment($subject) {
}
/**
* Creates a comment comment type (bundle).
* Creates a comment type (bundle).
*
* @param string $label
* The comment type label.
......
......@@ -35,7 +35,7 @@ class ContentModerationConfigureForm extends WorkflowTypeConfigureFormBase imple
protected $moderationInfo;
/**
* The entity type type bundle info service.
* The entity type bundle info service.
*
* @var \Drupal\Core\Entity\EntityTypeBundleInfoInterface
*/
......
......@@ -97,7 +97,7 @@ protected function getEditorPermissions() {
}
/**
* Tests image field field synchronization.
* Tests image field synchronization.
*/
public function testImageFieldSync() {
// Check that the alt and title fields are enabled for the image field.
......
......@@ -7,7 +7,7 @@
use Drupal\views\Views;
/**
* Tests the UI of the field field handler.
* Tests the UI of the field handler.
*
* @group field
* @see \Drupal\field\Plugin\views\field\Field
......
......@@ -46,7 +46,7 @@ protected function setUp(): void {
}
/**
* Tests using entity fields of the field field type.
* Tests using entity fields of the shape field type.
*/
public function testShapeItem() {
// Verify entity creation.
......
......@@ -47,7 +47,7 @@ protected function setUp(): void {
}
/**
* Tests using entity fields of the field field type.
* Tests using entity fields of the test field type.
*/
public function testTestItem() {
// Verify entity creation.
......
......@@ -503,7 +503,7 @@ public static function processMultiple($element, FormStateInterface $form_state,
}
/**
* Retrieves the file description from a field field element.
* Retrieves the file description from a field element.
*
* This helper static method is used by processMultiple() method.
*
......
......@@ -15,10 +15,9 @@
// cspell:ignore abbrfilter adsense autofloat biblio cincopa codefilter
// cspell:ignore commonmark deepzoom emogrifier emptyparagraphkiller forena
// cspell:ignore gotwo htmlpurifier htmltidy intlinks intlinks lazyloader
// cspell:ignore linktitle multicolumn multilink mytube openlayers opengraph
// cspell:ignore sanitizable shortcode shortcode spamspan typogrify wordfilter
// cspell:ignore xbbcode
// cspell:ignore gotwo htmlpurifier htmltidy intlinks lazyloader linktitle
// cspell:ignore multicolumn multilink mytube openlayers opengraph sanitizable
// cspell:ignore shortcode spamspan typogrify wordfilter xbbcode
/**
* @MigrateProcessPlugin(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment