Issue #3409362 by quietone, smustgrave: Fix spelling of some words with 'un' prefix

(cherry picked from commit de952edf2d0f570d1117a92c025940fe56a62983)
merge-requests/6354/head
Dave Long 2024-01-26 14:52:06 +00:00
parent 12ef050dac
commit f3e4294c5c
No known key found for this signature in database
GPG Key ID: ED52AE211E142771
29 changed files with 39 additions and 52 deletions

View File

@ -2,6 +2,8 @@
namespace Drupal\Composer\Plugin\Scaffold;
// cspell:ignore unmatch
use Composer\IO\IOInterface;
use Composer\Util\ProcessExecutor;

View File

@ -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)
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
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
explicitly granted that right in the top-level composer.json file. See

View File

@ -187,7 +187,7 @@ abstract class CacheCollector implements CacheCollectorInterface, DestructableIn
* The key that was requested.
* @param bool $persist
* (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.
*/
protected function persist($key, $persist = TRUE) {

View File

@ -11,9 +11,9 @@ use Drupal\Core\Cache\NullBackend;
/**
* Primary front-controller for the database system.
*
* This class is uninstantiatable and un-extendable. It acts to encapsulate
* all control and shepherding of database connections into a single location
* without the use of globals.
* This class is un-extendable. It acts to encapsulate all control and
* shepherding of database connections into a single location without the use of
* globals.
*/
abstract class Database {

View File

@ -308,7 +308,7 @@ class MailFormatHelper {
}
}
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");
}
// Break really long words at the maximum width allowed.

View File

@ -5,7 +5,7 @@ namespace Drupal\Core\Queue;
/**
* 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
* items that will be queued and dequeued within a given page request.
*

View File

@ -112,7 +112,7 @@ class Link extends RenderElement {
*
* 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
* 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
* those children from being rendered separately.
*

View File

@ -884,8 +884,6 @@ typehints
tzid
uids
ulwa
unaliased
unallowed
unassigning
unassigns
unban
@ -895,39 +893,24 @@ uncacheable
uncategorized
unclickable
uncollapsible
unconfigured
undelayed
undoable
undraggable
unextracted
unfieldable
unflagged
ungenerated
ungroup
ungroupable
unhashed
unhides
unindented
unindexed
uninstallation
uninstallations
uninstantiatable
uninstantiated
unixepoch
unkeyed
unmanaged
unmatch
unminified
unmoderated
unparseable
unpreloaded
unpromote
unpromoted
unpublish
unpublishes
unpublishing
unregisters
unrendered
unrevisionable
unrouted
unsanitized
@ -937,12 +920,8 @@ unserializes
unserializing
unsets
unsetting
unshortened
unsimplified
unsticky
untabbable
untarring
untrustable
unvalidated
unwrapper
upcasted

View File

@ -608,7 +608,7 @@
previousRow.matches('.draggable')
) {
// 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.interval = null;
self.rowObject.indent(0);

View File

@ -125,7 +125,7 @@ abstract class ImageTestBase extends CKEditor5TestBase {
"<p>$img_tag</p>",
$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>
// because it still must wrap in a paragraph-like element, and <p> is
// available to be that element.

View File

@ -61,7 +61,7 @@ abstract class FilterFormatFormBase extends EntityForm {
}
// 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();
foreach ($filters as $filter_id => $filter) {
// When a filter is missing, it is replaced by the null filter. Remove it

View File

@ -44,7 +44,7 @@ class LayoutSectionItem extends FieldItemBase {
*/
public function __get($name) {
// @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
// properly in https://www.drupal.org/node/2413471.
$this->getProperties();

View File

@ -32,8 +32,8 @@ class LocaleStringIsSafeTest extends KernelTestBase {
$result = locale_string_is_safe($string);
$this->assertTrue($result);
// Check an untranslatable string which includes untrustable HTML (according
// to the locale_string_is_safe() function definition).
// Check an untranslatable string which includes unsafe HTML (according to
// the locale_string_is_safe() function definition).
$string = 'Hello <img src="world.png" alt="world" />!';
$result = locale_string_is_safe($string);
$this->assertFalse($result);

View File

@ -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.
$this->assertSession()->optionNotExists('edit-menu-menu-parent', 'tools:' . $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:');
}

View File

@ -251,7 +251,7 @@ interface MigrateIdMapInterface extends \Iterator, PluginInspectionInterface {
*
* @param array $source_id_values
* 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
* An array of arrays of destination identifier values.

View File

@ -171,7 +171,7 @@ class PathAliasListBuilder extends EntityListBuilder {
'#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}");
$row['data']['path']['data'] = [
'#type' => 'link',

View File

@ -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 ::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 ::writeCache

View File

@ -451,14 +451,14 @@ abstract class EntityResourceTestBase extends ResourceTestBase {
$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);
$this->assertResourceErrorResponse(403, 'The used authentication method is not allowed on this route.', $response);
unset($request_options[RequestOptions::HEADERS]['REST-test-auth']);
$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);
$this->assertResourceErrorResponse(403, 'The used authentication method is not allowed on this route.', $response);

View File

@ -72,7 +72,8 @@ class SearchExcerptTest extends KernelTestBase {
*
* Excerpting should handle keywords that are matched only after going through
* 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() {
$start_time = microtime(TRUE);

View File

@ -110,7 +110,7 @@ function hook_update_status_alter(&$projects) {
* @param string $project
* The short name of the project that has been downloaded.
* @param string $archive_file
* The filename of the unextracted archive.
* The filename of the un-extracted archive.
* @param string $directory
* The directory that the archive was extracted into.
*

View File

@ -193,7 +193,7 @@ function update_manager_archive_extract($file, $directory) {
* @param string $project
* The short name of the project to download.
* @param string $archive_file
* The filename of the unextracted archive.
* The filename of the un-extracted archive.
* @param string $directory
* The directory that the archive was extracted into.
*

View File

@ -107,7 +107,7 @@ interface UserInterface extends ContentEntityInterface, EntityChangedInterface,
* Sets the user password.
*
* @param string $password
* The new unhashed password.
* The new un-hashed password.
*
* @return $this
* The called user entity.

View File

@ -382,7 +382,7 @@ function template_preprocess_username(&$variables) {
}
// 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
// their own shortening logic or add markup. If they do so, they must ensure
// that $variables['name'] is safe for printing.

View File

@ -581,7 +581,7 @@ class Sql extends QueryPluginBase {
* table.
*
* @param $table
* The unaliased name of the table to ensure.
* The un-aliased name of the table to ensure.
* @param $relationship
* The relationship to ensure the table links to. Each relationship will
* get a unique instance of the table being added. If not specified,

View File

@ -5,6 +5,8 @@ namespace Drupal\views\Plugin\views\query;
use Drupal\Core\Database\Connection;
use Drupal\Core\DependencyInjection\DependencySerializationTrait;
// cspell:ignore unixepoch
/**
* SQLite-specific date handling.
*

View File

@ -8,6 +8,8 @@ use Drupal\Core\Database\Connection;
use Drupal\Tests\UnitTestCase;
use Drupal\views\Plugin\views\query\SqliteDateSql;
// cspell:ignore unixepoch
/**
* Tests the MySQL-specific date query handler.
*

View File

@ -246,7 +246,7 @@ class ComposerProjectTemplatesTest extends ComposerBuildTestBase {
$this->assertCommandSuccessful();
// Check the output of the project creation for the absence of warnings
// 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
// CI environment always forces composer commands to run in the
// non-interactive mode. The only thing these messages have in common is the

View File

@ -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() {
$value = Xss::filterAdmin('<style /><iframe /><frame /><frameset /><meta /><link /><embed /><applet /><param /><layer />');

View File

@ -123,8 +123,9 @@
'[data-drupal-table-row-spacer] { display: none; }';
if (!this.ignoreScrollEvent) {
// Remove the timeout that unhides the spacer. If this function is called,
// then scrolling is still happening and spacers should stay hidden.
// Remove the timeout that un-hides the spacer. If this function is
// called, then scrolling is still happening and spacers should stay
// hidden.
clearTimeout(this.scrollingTimeout);
// Shortly after scrolling tops, the spacer is re-added.