Issue #2590059 by Sagar Ramgade, GoZ, sdstyles, jhodgdon: Fix double occurrence of prepositions

8.0.x
Alex Pott 2015-10-15 11:02:38 +01:00
parent b2198399f8
commit 93088f8720
23 changed files with 23 additions and 23 deletions

View File

@ -19,7 +19,7 @@ use Drupal\Component\Utility\Unicode;
* More ideas are taken from: * More ideas are taken from:
* http://www.ics.uci.edu/~eppstein/161/960229.html * http://www.ics.uci.edu/~eppstein/161/960229.html
* *
* Some ideas are (and a bit of code) are from from analyze.c, from GNU * Some ideas (and a bit of code) are from analyze.c, from GNU
* diffutils-2.7, which can be found at: * diffutils-2.7, which can be found at:
* ftp://gnudist.gnu.org/pub/gnu/diffutils/diffutils-2.7.tar.gz * ftp://gnudist.gnu.org/pub/gnu/diffutils/diffutils-2.7.tar.gz
* *

View File

@ -109,7 +109,7 @@ interface StorageComparerInterface {
* *
* @return array * @return array
* An associative array of configuration names. The array keys are * An associative array of configuration names. The array keys are
* 'old_name' and and 'new_name' representing the old and name configuration * 'old_name' and 'new_name' representing the old and new configuration
* object names during a rename operation. * object names during a rename operation.
* *
* @see \Drupal\Core\Config\StorageComparer::createRenameNames() * @see \Drupal\Core\Config\StorageComparer::createRenameNames()

View File

@ -131,7 +131,7 @@ interface MenuLinkInterface extends PluginInspectionInterface, DerivativeInspect
* the description is not empty. * the description is not empty.
* *
* @return \Drupal\Core\Url * @return \Drupal\Core\Url
* A a URL object containing either the external path or route. * A URL object containing either the external path or route.
*/ */
public function getUrlObject($title_attribute = TRUE); public function getUrlObject($title_attribute = TRUE);

View File

@ -297,7 +297,7 @@ function hook_menu_links_discovered_alter(&$links) {
* *
* @param array $data * @param array $data
* An associative array containing list of (up to 2) tab levels that contain a * An associative array containing list of (up to 2) tab levels that contain a
* list of of tabs keyed by their href, each one being an associative array * list of tabs keyed by their href, each one being an associative array
* as described above. * as described above.
* @param string $route_name * @param string $route_name
* The route name of the page. * The route name of the page.

View File

@ -13,7 +13,7 @@ use Drupal\Core\Render\Element;
* Provides a render element for a details element, similar to a fieldset. * Provides a render element for a details element, similar to a fieldset.
* *
* Fieldsets can only be used in forms, while details elements can be used * Fieldsets can only be used in forms, while details elements can be used
* outside of forms. Users click on the the title to open or close the details * outside of forms. Users click on the title to open or close the details
* element, showing or hiding the contained elements. * element, showing or hiding the contained elements.
* *
* Properties: * Properties:

View File

@ -243,7 +243,7 @@ class CommentFieldAccessTest extends EntityUnitTestBase {
foreach ($permutations as $set) { foreach ($permutations as $set) {
$may_view = $set['comment']->{$field}->access('view', $set['user']); $may_view = $set['comment']->{$field}->access('view', $set['user']);
$may_update = $set['comment']->{$field}->access('edit', $set['user']); $may_update = $set['comment']->{$field}->access('edit', $set['user']);
// Nobody has access to to view the hostname field. // Nobody has access to view the hostname field.
if ($field === 'hostname') { if ($field === 'hostname') {
$view_access = FALSE; $view_access = FALSE;
$state = 'cannot'; $state = 'cannot';

View File

@ -502,7 +502,7 @@ class ConfigNamesMapperTest extends UnitTestCase {
} }
/** /**
* Provides data for for ConfigMapperTest::testHasSchema(). * Provides data for ConfigMapperTest::testHasSchema().
* *
* @return array * @return array
* An array of arrays, where each inner array has an array of values that * An array of arrays, where each inner array has an array of values that

View File

@ -455,7 +455,7 @@ abstract class ContentTranslationUITestBase extends ContentTranslationTestBase {
* The entity being tested. * The entity being tested.
* *
* @return string * @return string
* The the field name. * The field name.
*/ */
protected function getChangedFieldName($entity) { protected function getChangedFieldName($entity) {
return $entity->hasField('content_translation_changed') ? 'content_translation_changed' : 'changed'; return $entity->hasField('content_translation_changed') ? 'content_translation_changed' : 'changed';

View File

@ -184,7 +184,7 @@ class FieldConfig extends FieldConfigBase implements FieldConfigInterface {
*/ */
public function calculateDependencies() { public function calculateDependencies() {
parent::calculateDependencies(); parent::calculateDependencies();
// Mark the field_storage_config as a a dependency. // Mark the field_storage_config as a dependency.
$this->addDependency('config', $this->getFieldStorageDefinition()->getConfigDependencyName()); $this->addDependency('config', $this->getFieldStorageDefinition()->getConfigDependencyName());
return $this; return $this;
} }

View File

@ -273,7 +273,7 @@ class ImageStyleEditForm extends ImageStyleFormBase {
* Updates image effect weights. * Updates image effect weights.
* *
* @param array $effects * @param array $effects
* Associative array with effects having effect uuid as keys and and array * Associative array with effects having effect uuid as keys and array
* with effect data as values. * with effect data as values.
*/ */
protected function updateEffectWeights(array $effects) { protected function updateEffectWeights(array $effects) {

View File

@ -97,7 +97,7 @@ class NodeSearch extends ConfigurableSearchPluginBase implements AccessibleInter
/** /**
* The list of options and info for advanced search filters. * The list of options and info for advanced search filters.
* *
* Each entry in the array has the option as the key and and for its value, an * Each entry in the array has the option as the key and for its value, an
* array that determines how the value is matched in the database query. The * array that determines how the value is matched in the database query. The
* possible keys in that array are: * possible keys in that array are:
* - column: (required) Name of the database column to match against. * - column: (required) Name of the database column to match against.

View File

@ -83,7 +83,7 @@
* @type {Drupal~behavior} * @type {Drupal~behavior}
* *
* @prop {Drupal~behaviorAttach} attach * @prop {Drupal~behaviorAttach} attach
* Attaches the filter behavior the the text input element. * Attaches the filter behavior to the text input element.
*/ */
Drupal.behaviors.simpletestTableFilterByText = { Drupal.behaviors.simpletestTableFilterByText = {
attach: function (context) { attach: function (context) {

View File

@ -1194,7 +1194,7 @@ abstract class BrowserTestBase extends \PHPUnit_Framework_TestCase {
$server = array_merge($server, $override_server_vars); $server = array_merge($server, $override_server_vars);
$request = Request::create($request_path, 'GET', array(), array(), array(), $server); $request = Request::create($request_path, 'GET', array(), array(), array(), $server);
// Ensure the the request time is REQUEST_TIME to ensure that API calls // Ensure the request time is REQUEST_TIME to ensure that API calls
// in the test use the right timestamp. // in the test use the right timestamp.
$request->server->set('REQUEST_TIME', REQUEST_TIME); $request->server->set('REQUEST_TIME', REQUEST_TIME);
$this->container->get('request_stack')->push($request); $this->container->get('request_stack')->push($request);

View File

@ -2921,7 +2921,7 @@ abstract class WebTestBase extends TestBase {
$server = array_merge($server, $override_server_vars); $server = array_merge($server, $override_server_vars);
$request = Request::create($request_path, 'GET', array(), array(), array(), $server); $request = Request::create($request_path, 'GET', array(), array(), array(), $server);
// Ensure the the request time is REQUEST_TIME to ensure that API calls // Ensure the request time is REQUEST_TIME to ensure that API calls
// in the test use the right timestamp. // in the test use the right timestamp.
$request->server->set('REQUEST_TIME', REQUEST_TIME); $request->server->set('REQUEST_TIME', REQUEST_TIME);
$this->container->get('request_stack')->push($request); $this->container->get('request_stack')->push($request);

View File

@ -295,7 +295,7 @@ class SystemMenuBlockTest extends KernelTestBase {
* Converts the result of MenuLinkTree::build() in a "menu link ID tree". * Converts the result of MenuLinkTree::build() in a "menu link ID tree".
* *
* @param array $build * @param array $build
* The return value of of MenuLinkTree::build() * The return value of MenuLinkTree::build()
* *
* @return array * @return array
* The "menu link ID tree" representation of the given render array. * The "menu link ID tree" representation of the given render array.

View File

@ -569,7 +569,7 @@ class ConfigEntityQueryTest extends KernelTestBase {
->condition('array.level1.level2', 3) ->condition('array.level1.level2', 3)
->execute(); ->execute();
$this->assertResults(array('5')); $this->assertResults(array('5'));
// Make sure that values on the wildcard level do not match if if there are // Make sure that values on the wildcard level do not match if there are
// sub-keys defined. This must not find anything even if entity 2 has a // sub-keys defined. This must not find anything even if entity 2 has a
// top-level key number with value 41. // top-level key number with value 41.
$this->queryResults = $this->factory->get('config_query_test') $this->queryResults = $this->factory->get('config_query_test')

View File

@ -390,7 +390,7 @@ class ContentEntityChangedTest extends EntityUnitTestBase {
$this->assertFalse( $this->assertFalse(
$this->getRevisionTranslationAffectedFlag($german), $this->getRevisionTranslationAffectedFlag($german),
'Changed flag of of the German translation is not set for new revision without changes.' 'Changed flag of the German translation is not set for new revision without changes.'
); );
$entity->setNewRevision(); $entity->setNewRevision();

View File

@ -70,7 +70,7 @@ class TokenReplaceUnitTest extends TokenReplaceUnitTestBase {
// Non-existing token. // Non-existing token.
$source .= '[bogus:token]'; $source .= '[bogus:token]';
// Replace with with the clear parameter, only the valid token should remain. // Replace with the clear parameter, only the valid token should remain.
$target = Html::escape($this->config('system.site')->get('name')); $target = Html::escape($this->config('system.site')->get('name'));
$result = $this->tokenService->replace($source, array(), array('langcode' => $this->interfaceLanguage->getId(), 'clear' => TRUE)); $result = $this->tokenService->replace($source, array(), array('langcode' => $this->interfaceLanguage->getId(), 'clear' => TRUE));
$this->assertEqual($target, $result, 'Valid tokens replaced while invalid tokens ignored.'); $this->assertEqual($target, $result, 'Valid tokens replaced while invalid tokens ignored.');

View File

@ -153,7 +153,7 @@ class EntityReferenceSelectionReferenceableTest extends KernelTestBase {
// Referenceables containing '_', limited to 3. Expecting 3 limited items // Referenceables containing '_', limited to 3. Expecting 3 limited items
// ('Xyz_', 'xyabz_', 'foo_') and 5 total. // ('Xyz_', 'xyabz_', 'foo_') and 5 total.
['_', 'CONTAINS', 3, 3, ['Xyz_', 'xyabz_', 'foo_'], 6], ['_', 'CONTAINS', 3, 3, ['Xyz_', 'xyabz_', 'foo_'], 6],
// Referenceables ending with with 'z_', limited to 3. Expecting 3 limited // Referenceables ending with 'z_', limited to 3. Expecting 3 limited
// items ('Xyz_', 'xyabz_', 'baz_') and 4 total. // items ('Xyz_', 'xyabz_', 'baz_') and 4 total.
['z_', 'ENDS_WITH', 3, 3, ['Xyz_', 'xyabz_', 'baz_'], 4], ['z_', 'ENDS_WITH', 3, 3, ['Xyz_', 'xyabz_', 'baz_'], 4],
// Referenceables identical with 'xyabz_', no limit. Expecting 1 item // Referenceables identical with 'xyabz_', no limit. Expecting 1 item

View File

@ -157,7 +157,7 @@ class UserTokenReplaceTest extends WebTestBase {
foreach ($tests as $input => $expected) { foreach ($tests as $input => $expected) {
foreach (array($user1, $user2) as $account) { foreach (array($user1, $user2) as $account) {
$output = $token_service->replace($input, ['user' => $account], ['langcode' => 'de', 'callback' => 'user_mail_tokens', 'clear' => TRUE]); $output = $token_service->replace($input, ['user' => $account], ['langcode' => 'de', 'callback' => 'user_mail_tokens', 'clear' => TRUE]);
$this->assertTrue(strpos($output, $link) === 0, "Generated URL in in the requested language."); $this->assertTrue(strpos($output, $link) === 0, "Generated URL in the requested language.");
} }
} }

View File

@ -140,7 +140,7 @@ abstract class SqlBase extends PagerPluginBase implements CacheableDependencyInt
$form['expose']['items_per_page_options_all'] = array( $form['expose']['items_per_page_options_all'] = array(
'#type' => 'checkbox', '#type' => 'checkbox',
'#title' => $this->t('Allow user to to display all items'), '#title' => $this->t('Allow user to display all items'),
'#default_value' => $this->options['expose']['items_per_page_options_all'], '#default_value' => $this->options['expose']['items_per_page_options_all'],
); );

View File

@ -998,7 +998,7 @@ function template_preprocess_views_mini_pager(&$variables) {
$variables['items']['next']['attributes'] = new Attribute(); $variables['items']['next']['attributes'] = new Attribute();
} }
// This is is based on the entire current query string. We need to ensure // This is based on the entire current query string. We need to ensure
// cacheability is affected accordingly. // cacheability is affected accordingly.
$variables['#cache']['contexts'][] = 'url.query_args'; $variables['#cache']['contexts'][] = 'url.query_args';
} }

View File

@ -446,7 +446,7 @@ if ($settings['hash_salt']) {
# $settings['allow_authorize_operations'] = FALSE; # $settings['allow_authorize_operations'] = FALSE;
/** /**
* Default mode for for directories and files written by Drupal. * Default mode for directories and files written by Drupal.
* *
* Value should be in PHP Octal Notation, with leading zero. * Value should be in PHP Octal Notation, with leading zero.
*/ */