Issue #3409362 by quietone, smustgrave: Fix spelling of some words with 'un' prefix
parent
2feaa29915
commit
b501becfe3
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
namespace Drupal\Composer\Plugin\Scaffold;
|
namespace Drupal\Composer\Plugin\Scaffold;
|
||||||
|
|
||||||
|
// cspell:ignore unmatch
|
||||||
|
|
||||||
use Composer\IO\IOInterface;
|
use Composer\IO\IOInterface;
|
||||||
use Composer\Util\ProcessExecutor;
|
use Composer\Util\ProcessExecutor;
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@ possible; for example, a project layout very similar to the current
|
||||||
[drupal-composer/drupal-project](https://github.com/drupal-composer/drupal-scaffold)
|
[drupal-composer/drupal-project](https://github.com/drupal-composer/drupal-scaffold)
|
||||||
template will also be provided. When one of these projects is used, the user
|
template will also be provided. When one of these projects is used, the user
|
||||||
should be able to use `composer require` and `composer update` on a Drupal site
|
should be able to use `composer require` and `composer update` on a Drupal site
|
||||||
immediately after untarring the downloaded archive.
|
immediately after extracting the downloaded archive.
|
||||||
|
|
||||||
Note that the dependencies of a Drupal site are only able to scaffold files if
|
Note that the dependencies of a Drupal site are only able to scaffold files if
|
||||||
explicitly granted that right in the top-level composer.json file. See
|
explicitly granted that right in the top-level composer.json file. See
|
||||||
|
|
|
@ -187,7 +187,7 @@ abstract class CacheCollector implements CacheCollectorInterface, DestructableIn
|
||||||
* The key that was requested.
|
* The key that was requested.
|
||||||
* @param bool $persist
|
* @param bool $persist
|
||||||
* (optional) Whether the offset should be persisted or not, defaults to
|
* (optional) Whether the offset should be persisted or not, defaults to
|
||||||
* TRUE. When called with $persist = FALSE the offset will be unflagged so
|
* TRUE. When called with $persist = FALSE the offset will be un-flagged so
|
||||||
* that it will not be written at the end of the request.
|
* that it will not be written at the end of the request.
|
||||||
*/
|
*/
|
||||||
protected function persist($key, $persist = TRUE) {
|
protected function persist($key, $persist = TRUE) {
|
||||||
|
|
|
@ -11,9 +11,9 @@ use Drupal\Core\Cache\NullBackend;
|
||||||
/**
|
/**
|
||||||
* Primary front-controller for the database system.
|
* Primary front-controller for the database system.
|
||||||
*
|
*
|
||||||
* This class is uninstantiatable and un-extendable. It acts to encapsulate
|
* This class is un-extendable. It acts to encapsulate all control and
|
||||||
* all control and shepherding of database connections into a single location
|
* shepherding of database connections into a single location without the use of
|
||||||
* without the use of globals.
|
* globals.
|
||||||
*/
|
*/
|
||||||
abstract class Database {
|
abstract class Database {
|
||||||
|
|
||||||
|
|
|
@ -308,7 +308,7 @@ class MailFormatHelper {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!$line_is_mime_header) {
|
if (!$line_is_mime_header) {
|
||||||
// Use soft-breaks only for purely quoted or unindented text.
|
// Use soft-breaks only for purely quoted or un-indented text.
|
||||||
$line = wordwrap($line, 77 - $values['length'], $values['soft'] ? " \n" : "\n");
|
$line = wordwrap($line, 77 - $values['length'], $values['soft'] ? " \n" : "\n");
|
||||||
}
|
}
|
||||||
// Break really long words at the maximum width allowed.
|
// Break really long words at the maximum width allowed.
|
||||||
|
|
|
@ -5,7 +5,7 @@ namespace Drupal\Core\Queue;
|
||||||
/**
|
/**
|
||||||
* Static queue implementation.
|
* Static queue implementation.
|
||||||
*
|
*
|
||||||
* This allows "undelayed" variants of processes relying on the Queue
|
* This allows "un-delayed" variants of processes relying on the Queue
|
||||||
* interface. The queue data resides in memory. It should only be used for
|
* interface. The queue data resides in memory. It should only be used for
|
||||||
* items that will be queued and dequeued within a given page request.
|
* items that will be queued and dequeued within a given page request.
|
||||||
*
|
*
|
||||||
|
|
|
@ -112,7 +112,7 @@ class Link extends RenderElement {
|
||||||
*
|
*
|
||||||
* This method can be added as a pre_render callback for a renderable array,
|
* This method can be added as a pre_render callback for a renderable array,
|
||||||
* usually one which will be themed by links.html.twig. It iterates through
|
* usually one which will be themed by links.html.twig. It iterates through
|
||||||
* all unrendered children of the element, collects any #links properties it
|
* all un-rendered children of the element, collects any #links properties it
|
||||||
* finds, merges them into the parent element's #links array, and prevents
|
* finds, merges them into the parent element's #links array, and prevents
|
||||||
* those children from being rendered separately.
|
* those children from being rendered separately.
|
||||||
*
|
*
|
||||||
|
|
|
@ -884,8 +884,6 @@ typehints
|
||||||
tzid
|
tzid
|
||||||
uids
|
uids
|
||||||
ulwa
|
ulwa
|
||||||
unaliased
|
|
||||||
unallowed
|
|
||||||
unassigning
|
unassigning
|
||||||
unassigns
|
unassigns
|
||||||
unban
|
unban
|
||||||
|
@ -895,39 +893,24 @@ uncacheable
|
||||||
uncategorized
|
uncategorized
|
||||||
unclickable
|
unclickable
|
||||||
uncollapsible
|
uncollapsible
|
||||||
unconfigured
|
|
||||||
undelayed
|
|
||||||
undoable
|
undoable
|
||||||
undraggable
|
|
||||||
unextracted
|
|
||||||
unfieldable
|
unfieldable
|
||||||
unflagged
|
|
||||||
ungenerated
|
ungenerated
|
||||||
ungroup
|
ungroup
|
||||||
ungroupable
|
ungroupable
|
||||||
unhashed
|
|
||||||
unhides
|
|
||||||
unindented
|
|
||||||
unindexed
|
unindexed
|
||||||
uninstallation
|
uninstallation
|
||||||
uninstallations
|
uninstallations
|
||||||
uninstantiatable
|
|
||||||
uninstantiated
|
|
||||||
unixepoch
|
|
||||||
unkeyed
|
|
||||||
unmanaged
|
unmanaged
|
||||||
unmatch
|
|
||||||
unminified
|
unminified
|
||||||
unmoderated
|
unmoderated
|
||||||
unparseable
|
unparseable
|
||||||
unpreloaded
|
|
||||||
unpromote
|
unpromote
|
||||||
unpromoted
|
unpromoted
|
||||||
unpublish
|
unpublish
|
||||||
unpublishes
|
unpublishes
|
||||||
unpublishing
|
unpublishing
|
||||||
unregisters
|
unregisters
|
||||||
unrendered
|
|
||||||
unrevisionable
|
unrevisionable
|
||||||
unrouted
|
unrouted
|
||||||
unsanitized
|
unsanitized
|
||||||
|
@ -937,12 +920,8 @@ unserializes
|
||||||
unserializing
|
unserializing
|
||||||
unsets
|
unsets
|
||||||
unsetting
|
unsetting
|
||||||
unshortened
|
|
||||||
unsimplified
|
|
||||||
unsticky
|
unsticky
|
||||||
untabbable
|
untabbable
|
||||||
untarring
|
|
||||||
untrustable
|
|
||||||
unvalidated
|
unvalidated
|
||||||
unwrapper
|
unwrapper
|
||||||
upcasted
|
upcasted
|
||||||
|
|
|
@ -608,7 +608,7 @@
|
||||||
previousRow.matches('.draggable')
|
previousRow.matches('.draggable')
|
||||||
) {
|
) {
|
||||||
// Swap with the previous row (unless previous row is the first
|
// Swap with the previous row (unless previous row is the first
|
||||||
// one and undraggable).
|
// one and un-draggable).
|
||||||
self.rowObject.swap('before', previousRow);
|
self.rowObject.swap('before', previousRow);
|
||||||
self.rowObject.interval = null;
|
self.rowObject.interval = null;
|
||||||
self.rowObject.indent(0);
|
self.rowObject.indent(0);
|
||||||
|
|
|
@ -125,7 +125,7 @@ abstract class ImageTestBase extends CKEditor5TestBase {
|
||||||
"<p>$img_tag</p>",
|
"<p>$img_tag</p>",
|
||||||
$expected_upcast_behavior_when_wrapped_in_block_element === 'inline' ? "<p>$img_tag</p>" : $img_tag,
|
$expected_upcast_behavior_when_wrapped_in_block_element === 'inline' ? "<p>$img_tag</p>" : $img_tag,
|
||||||
],
|
],
|
||||||
// Image tag wrapped with an unallowed paragraph-like element (<div).
|
// Image tag wrapped with a disallowed paragraph-like element (<div).
|
||||||
// When inline is the expected upcast behavior, it will wrap in <p>
|
// When inline is the expected upcast behavior, it will wrap in <p>
|
||||||
// because it still must wrap in a paragraph-like element, and <p> is
|
// because it still must wrap in a paragraph-like element, and <p> is
|
||||||
// available to be that element.
|
// available to be that element.
|
||||||
|
|
|
@ -61,7 +61,7 @@ abstract class FilterFormatFormBase extends EntityForm {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create filter plugin instances for all available filters, including both
|
// Create filter plugin instances for all available filters, including both
|
||||||
// enabled/configured ones as well as new and not yet unconfigured ones.
|
// enabled/configured ones as well as new and not yet configured ones.
|
||||||
$filters = $format->filters();
|
$filters = $format->filters();
|
||||||
foreach ($filters as $filter_id => $filter) {
|
foreach ($filters as $filter_id => $filter) {
|
||||||
// When a filter is missing, it is replaced by the null filter. Remove it
|
// When a filter is missing, it is replaced by the null filter. Remove it
|
||||||
|
|
|
@ -44,7 +44,7 @@ class LayoutSectionItem extends FieldItemBase {
|
||||||
*/
|
*/
|
||||||
public function __get($name) {
|
public function __get($name) {
|
||||||
// @todo \Drupal\Core\Field\FieldItemBase::__get() does not return default
|
// @todo \Drupal\Core\Field\FieldItemBase::__get() does not return default
|
||||||
// values for uninstantiated properties. This will forcibly instantiate
|
// values for un-instantiated properties. This will forcibly instantiate
|
||||||
// all properties with the side-effect of a performance hit, resolve
|
// all properties with the side-effect of a performance hit, resolve
|
||||||
// properly in https://www.drupal.org/node/2413471.
|
// properly in https://www.drupal.org/node/2413471.
|
||||||
$this->getProperties();
|
$this->getProperties();
|
||||||
|
|
|
@ -32,8 +32,8 @@ class LocaleStringIsSafeTest extends KernelTestBase {
|
||||||
$result = locale_string_is_safe($string);
|
$result = locale_string_is_safe($string);
|
||||||
$this->assertTrue($result);
|
$this->assertTrue($result);
|
||||||
|
|
||||||
// Check an untranslatable string which includes untrustable HTML (according
|
// Check an untranslatable string which includes unsafe HTML (according to
|
||||||
// to the locale_string_is_safe() function definition).
|
// the locale_string_is_safe() function definition).
|
||||||
$string = 'Hello <img src="world.png" alt="world" />!';
|
$string = 'Hello <img src="world.png" alt="world" />!';
|
||||||
$result = locale_string_is_safe($string);
|
$result = locale_string_is_safe($string);
|
||||||
$this->assertFalse($result);
|
$this->assertFalse($result);
|
||||||
|
|
|
@ -277,7 +277,7 @@ class MenuUiNodeTest extends BrowserTestBase {
|
||||||
// Assert that it is not possible to set the parent of the first node to itself or the second node.
|
// Assert that it is not possible to set the parent of the first node to itself or the second node.
|
||||||
$this->assertSession()->optionNotExists('edit-menu-menu-parent', 'tools:' . $item->getPluginId());
|
$this->assertSession()->optionNotExists('edit-menu-menu-parent', 'tools:' . $item->getPluginId());
|
||||||
$this->assertSession()->optionNotExists('edit-menu-menu-parent', 'tools:' . $child_item->getPluginId());
|
$this->assertSession()->optionNotExists('edit-menu-menu-parent', 'tools:' . $child_item->getPluginId());
|
||||||
// Assert that unallowed Administration menu is not available in options.
|
// Assert that disallowed Administration menu is not available in options.
|
||||||
$this->assertSession()->optionNotExists('edit-menu-menu-parent', 'admin:');
|
$this->assertSession()->optionNotExists('edit-menu-menu-parent', 'admin:');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -251,7 +251,7 @@ interface MigrateIdMapInterface extends \Iterator, PluginInspectionInterface {
|
||||||
*
|
*
|
||||||
* @param array $source_id_values
|
* @param array $source_id_values
|
||||||
* The source identifier keyed values of the records, e.g. ['nid' => 5].
|
* The source identifier keyed values of the records, e.g. ['nid' => 5].
|
||||||
* If unkeyed, the first count($source_id_values) keys will be assumed.
|
* If un-keyed, the first count($source_id_values) keys will be assumed.
|
||||||
*
|
*
|
||||||
* @return array
|
* @return array
|
||||||
* An array of arrays of destination identifier values.
|
* An array of arrays of destination identifier values.
|
||||||
|
|
|
@ -171,7 +171,7 @@ class PathAliasListBuilder extends EntityListBuilder {
|
||||||
'#url' => $url,
|
'#url' => $url,
|
||||||
];
|
];
|
||||||
|
|
||||||
// Create a new URL for linking to the unaliased system path.
|
// Create a new URL for linking to the un-aliased system path.
|
||||||
$system_url = Url::fromUri("base:{$path}");
|
$system_url = Url::fromUri("base:{$path}");
|
||||||
$row['data']['path']['data'] = [
|
$row['data']['path']['data'] = [
|
||||||
'#type' => 'link',
|
'#type' => 'link',
|
||||||
|
|
|
@ -399,7 +399,7 @@ class AliasManagerTest extends UnitTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tests the getAliasByPath cache with an unpreloaded path without alias.
|
* Tests the getAliasByPath cache with an un-preloaded path without alias.
|
||||||
*
|
*
|
||||||
* @covers ::getAliasByPath
|
* @covers ::getAliasByPath
|
||||||
* @covers ::writeCache
|
* @covers ::writeCache
|
||||||
|
@ -483,7 +483,7 @@ class AliasManagerTest extends UnitTestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tests the getAliasByPath cache with an unpreloaded path with alias.
|
* Tests the getAliasByPath cache with an un-preloaded path with alias.
|
||||||
*
|
*
|
||||||
* @covers ::getAliasByPath
|
* @covers ::getAliasByPath
|
||||||
* @covers ::writeCache
|
* @covers ::writeCache
|
||||||
|
|
|
@ -451,14 +451,14 @@ abstract class EntityResourceTestBase extends ResourceTestBase {
|
||||||
|
|
||||||
$request_options[RequestOptions::HEADERS]['REST-test-auth'] = '1';
|
$request_options[RequestOptions::HEADERS]['REST-test-auth'] = '1';
|
||||||
|
|
||||||
// DX: 403 when attempting to use unallowed authentication provider.
|
// DX: 403 when attempting to use disallowed authentication provider.
|
||||||
$response = $this->request('GET', $url, $request_options);
|
$response = $this->request('GET', $url, $request_options);
|
||||||
$this->assertResourceErrorResponse(403, 'The used authentication method is not allowed on this route.', $response);
|
$this->assertResourceErrorResponse(403, 'The used authentication method is not allowed on this route.', $response);
|
||||||
|
|
||||||
unset($request_options[RequestOptions::HEADERS]['REST-test-auth']);
|
unset($request_options[RequestOptions::HEADERS]['REST-test-auth']);
|
||||||
$request_options[RequestOptions::HEADERS]['REST-test-auth-global'] = '1';
|
$request_options[RequestOptions::HEADERS]['REST-test-auth-global'] = '1';
|
||||||
|
|
||||||
// DX: 403 when attempting to use unallowed global authentication provider.
|
// DX: 403 when attempting to use disallowed global authentication provider.
|
||||||
$response = $this->request('GET', $url, $request_options);
|
$response = $this->request('GET', $url, $request_options);
|
||||||
$this->assertResourceErrorResponse(403, 'The used authentication method is not allowed on this route.', $response);
|
$this->assertResourceErrorResponse(403, 'The used authentication method is not allowed on this route.', $response);
|
||||||
|
|
||||||
|
|
|
@ -72,7 +72,8 @@ class SearchExcerptTest extends KernelTestBase {
|
||||||
*
|
*
|
||||||
* Excerpting should handle keywords that are matched only after going through
|
* Excerpting should handle keywords that are matched only after going through
|
||||||
* text analysis. This test passes keywords that match simplified words
|
* text analysis. This test passes keywords that match simplified words
|
||||||
* and compares them with strings that contain the original unsimplified word.
|
* and compares them with strings that contain the original un-simplified
|
||||||
|
* word.
|
||||||
*/
|
*/
|
||||||
public function testSearchExcerptSimplified() {
|
public function testSearchExcerptSimplified() {
|
||||||
$start_time = microtime(TRUE);
|
$start_time = microtime(TRUE);
|
||||||
|
|
|
@ -110,7 +110,7 @@ function hook_update_status_alter(&$projects) {
|
||||||
* @param string $project
|
* @param string $project
|
||||||
* The short name of the project that has been downloaded.
|
* The short name of the project that has been downloaded.
|
||||||
* @param string $archive_file
|
* @param string $archive_file
|
||||||
* The filename of the unextracted archive.
|
* The filename of the un-extracted archive.
|
||||||
* @param string $directory
|
* @param string $directory
|
||||||
* The directory that the archive was extracted into.
|
* The directory that the archive was extracted into.
|
||||||
*
|
*
|
||||||
|
|
|
@ -193,7 +193,7 @@ function update_manager_archive_extract($file, $directory) {
|
||||||
* @param string $project
|
* @param string $project
|
||||||
* The short name of the project to download.
|
* The short name of the project to download.
|
||||||
* @param string $archive_file
|
* @param string $archive_file
|
||||||
* The filename of the unextracted archive.
|
* The filename of the un-extracted archive.
|
||||||
* @param string $directory
|
* @param string $directory
|
||||||
* The directory that the archive was extracted into.
|
* The directory that the archive was extracted into.
|
||||||
*
|
*
|
||||||
|
|
|
@ -107,7 +107,7 @@ interface UserInterface extends ContentEntityInterface, EntityChangedInterface,
|
||||||
* Sets the user password.
|
* Sets the user password.
|
||||||
*
|
*
|
||||||
* @param string $password
|
* @param string $password
|
||||||
* The new unhashed password.
|
* The new un-hashed password.
|
||||||
*
|
*
|
||||||
* @return $this
|
* @return $this
|
||||||
* The called user entity.
|
* The called user entity.
|
||||||
|
|
|
@ -382,7 +382,7 @@ function template_preprocess_username(&$variables) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set the name to a formatted name that is safe for printing and
|
// Set the name to a formatted name that is safe for printing and
|
||||||
// that won't break tables by being too long. Keep an unshortened,
|
// that won't break tables by being too long. Keep an un-shortened,
|
||||||
// unsanitized version, in case other preprocess functions want to implement
|
// unsanitized version, in case other preprocess functions want to implement
|
||||||
// their own shortening logic or add markup. If they do so, they must ensure
|
// their own shortening logic or add markup. If they do so, they must ensure
|
||||||
// that $variables['name'] is safe for printing.
|
// that $variables['name'] is safe for printing.
|
||||||
|
|
|
@ -581,7 +581,7 @@ class Sql extends QueryPluginBase {
|
||||||
* table.
|
* table.
|
||||||
*
|
*
|
||||||
* @param $table
|
* @param $table
|
||||||
* The unaliased name of the table to ensure.
|
* The un-aliased name of the table to ensure.
|
||||||
* @param $relationship
|
* @param $relationship
|
||||||
* The relationship to ensure the table links to. Each relationship will
|
* The relationship to ensure the table links to. Each relationship will
|
||||||
* get a unique instance of the table being added. If not specified,
|
* get a unique instance of the table being added. If not specified,
|
||||||
|
|
|
@ -5,6 +5,8 @@ namespace Drupal\views\Plugin\views\query;
|
||||||
use Drupal\Core\Database\Connection;
|
use Drupal\Core\Database\Connection;
|
||||||
use Drupal\Core\DependencyInjection\DependencySerializationTrait;
|
use Drupal\Core\DependencyInjection\DependencySerializationTrait;
|
||||||
|
|
||||||
|
// cspell:ignore unixepoch
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* SQLite-specific date handling.
|
* SQLite-specific date handling.
|
||||||
*
|
*
|
||||||
|
|
|
@ -8,6 +8,8 @@ use Drupal\Core\Database\Connection;
|
||||||
use Drupal\Tests\UnitTestCase;
|
use Drupal\Tests\UnitTestCase;
|
||||||
use Drupal\views\Plugin\views\query\SqliteDateSql;
|
use Drupal\views\Plugin\views\query\SqliteDateSql;
|
||||||
|
|
||||||
|
// cspell:ignore unixepoch
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tests the MySQL-specific date query handler.
|
* Tests the MySQL-specific date query handler.
|
||||||
*
|
*
|
||||||
|
|
|
@ -251,7 +251,7 @@ class ComposerProjectTemplatesTest extends ComposerBuildTestBase {
|
||||||
$this->assertCommandSuccessful();
|
$this->assertCommandSuccessful();
|
||||||
// Check the output of the project creation for the absence of warnings
|
// Check the output of the project creation for the absence of warnings
|
||||||
// about any non-allowed composer plugins.
|
// about any non-allowed composer plugins.
|
||||||
// Note: There are different warnings for unallowed composer plugins
|
// Note: There are different warnings for disallowed composer plugins
|
||||||
// depending on running in non-interactive mode or not. It seems the Drupal
|
// depending on running in non-interactive mode or not. It seems the Drupal
|
||||||
// CI environment always forces composer commands to run in the
|
// CI environment always forces composer commands to run in the
|
||||||
// non-interactive mode. The only thing these messages have in common is the
|
// non-interactive mode. The only thing these messages have in common is the
|
||||||
|
|
|
@ -567,7 +567,7 @@ class XssTest extends TestCase {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks that \Drupal\Component\Utility\Xss::filterAdmin() correctly strips unallowed tags.
|
* Checks that \Drupal\Component\Utility\Xss::filterAdmin() correctly strips disallowed tags.
|
||||||
*/
|
*/
|
||||||
public function testFilterXSSAdmin() {
|
public function testFilterXSSAdmin() {
|
||||||
$value = Xss::filterAdmin('<style /><iframe /><frame /><frameset /><meta /><link /><embed /><applet /><param /><layer />');
|
$value = Xss::filterAdmin('<style /><iframe /><frame /><frameset /><meta /><link /><embed /><applet /><param /><layer />');
|
||||||
|
|
|
@ -123,8 +123,9 @@
|
||||||
'[data-drupal-table-row-spacer] { display: none; }';
|
'[data-drupal-table-row-spacer] { display: none; }';
|
||||||
|
|
||||||
if (!this.ignoreScrollEvent) {
|
if (!this.ignoreScrollEvent) {
|
||||||
// Remove the timeout that unhides the spacer. If this function is called,
|
// Remove the timeout that un-hides the spacer. If this function is
|
||||||
// then scrolling is still happening and spacers should stay hidden.
|
// called, then scrolling is still happening and spacers should stay
|
||||||
|
// hidden.
|
||||||
clearTimeout(this.scrollingTimeout);
|
clearTimeout(this.scrollingTimeout);
|
||||||
|
|
||||||
// Shortly after scrolling tops, the spacer is re-added.
|
// Shortly after scrolling tops, the spacer is re-added.
|
||||||
|
|
Loading…
Reference in New Issue