Issue #3219513 by quietone, smustgrave, Vidushi Mehta, sourabhjain, rpayanm, longwave, xjm, dww, catch: Fix spelling for words used once, beginning with 'n' -> 'p', inclusive

merge-requests/4522/head
Dave Long 2023-08-01 11:07:26 +01:00
parent 525dcd84e1
commit 031f63e761
No known key found for this signature in database
GPG Key ID: ED52AE211E142771
22 changed files with 25 additions and 33 deletions

View File

@ -17,7 +17,7 @@ use Symfony\Component\EventDispatcher\EventSubscriberInterface;
* <dt>Faster instantiation of the event dispatcher service</dt> * <dt>Faster instantiation of the event dispatcher service</dt>
* <dd> * <dd>
* Instead of calling <code>addSubscriberService</code> once for each * Instead of calling <code>addSubscriberService</code> once for each
* subscriber, a precompiled array of listener definitions is passed * subscriber, a pre-compiled array of listener definitions is passed
* directly to the constructor. This is faster by roughly an order of * directly to the constructor. This is faster by roughly an order of
* magnitude. The listeners are collected and prepared using a compiler * magnitude. The listeners are collected and prepared using a compiler
* pass. * pass.

View File

@ -8,7 +8,7 @@ use Drupal\Core\Database\Event\StatementExecutionEndEvent;
use Drupal\Core\Database\Event\StatementExecutionStartEvent; use Drupal\Core\Database\Event\StatementExecutionStartEvent;
/** /**
* An implementation of StatementInterface that prefetches all data. * An implementation of StatementInterface that pre-fetches all data.
* *
* This class behaves very similar to a StatementWrapper of a \PDOStatement * This class behaves very similar to a StatementWrapper of a \PDOStatement
* but as it always fetches every row it is possible to manipulate those * but as it always fetches every row it is possible to manipulate those

View File

@ -12,6 +12,7 @@ use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\HttpKernel\Event\ResponseEvent; use Symfony\Component\HttpKernel\Event\ResponseEvent;
use Symfony\Component\HttpKernel\KernelEvents; use Symfony\Component\HttpKernel\KernelEvents;
// cspell:ignore noemptytag
/** /**
* Subscribes to filter HTML responses, to set the 'is-active' class on links. * Subscribes to filter HTML responses, to set the 'is-active' class on links.
* *

View File

@ -293,7 +293,7 @@ class SiteConfigureForm extends ConfigFormBase {
} }
} }
// We precreated user 1 with placeholder values. Let's save the real values. // We created user 1 with placeholder values. Let's save the real values.
$account = $this->userStorage->load(1); $account = $this->userStorage->load(1);
$account->init = $account->mail = $account_values['mail']; $account->init = $account->mail = $account_values['mail'];
$account->roles = $account->getRoles(); $account->roles = $account->getRoles();

View File

@ -11,7 +11,7 @@ use Symfony\Component\HttpKernel\KernelEvents;
use Symfony\Component\Routing\Route; use Symfony\Component\Routing\Route;
/** /**
* Defines a class which preloads non-admin routes. * Defines a class that can pre-load non-admin routes.
* *
* On an actual site we want to avoid too many database queries so we build a * On an actual site we want to avoid too many database queries so we build a
* list of all routes which most likely appear on the actual site, which are all * list of all routes which most likely appear on the actual site, which are all

View File

@ -105,7 +105,7 @@ class SessionManager extends NativeSessionStorage implements SessionManagerInter
// If a session cookie exists, initialize the session. Otherwise the // If a session cookie exists, initialize the session. Otherwise the
// session is only started on demand in save(), making // session is only started on demand in save(), making
// anonymous users not use a session cookie unless something is stored in // anonymous users not use a session cookie unless something is stored in
// $_SESSION. This allows HTTP proxies to cache anonymous pageviews. // $_SESSION. This allows HTTP proxies to cache anonymous page views.
$result = $this->startNow(); $result = $this->startNow();
} }

View File

@ -730,7 +730,6 @@ narf
navs navs
nbaz nbaz
nbchoices nbchoices
ndelay
ndocs ndocs
nearbykeyword nearbykeyword
necolas necolas
@ -753,20 +752,15 @@ noadd
noblanks noblanks
nocache nocache
nocase nocase
nocdata
nocookie nocookie
nodelist nodelist
nodir nodir
nodo nodo
noemptytag
noevent
nofields nofields
nojs nojs
nolink nolink
nomask nomask
nonamespace
nonconfigurable nonconfigurable
nonexistingfilename
nonoptional nonoptional
noquotes noquotes
noschema noschema
@ -774,7 +768,6 @@ nosniff
nostart nostart
notag notag
notexisting notexisting
nothere
notnull notnull
notsimpletest notsimpletest
nourriture nourriture
@ -789,7 +782,6 @@ oembed
officedocument officedocument
olivero olivero
olivero's olivero's
omitscript
omittable omittable
onecol onecol
oneplusfourgrid oneplusfourgrid
@ -811,13 +803,10 @@ overridable
overrider overrider
overrider's overrider's
overriders overriders
overridetest
owasp owasp
oypa oypa
pageable
pagecache pagecache
pagetop pagetop
pageviews
pagina pagina
paramconverter paramconverter
parens parens
@ -844,7 +833,6 @@ phpserialize
phpspec phpspec
phpstan phpstan
phpunit phpunit
phpunit's
pianura pianura
pickable pickable
picturefill picturefill
@ -871,12 +859,9 @@ postorder
postprocess postprocess
postupdate postupdate
poweredby poweredby
powriter
prebar prebar
precache precache
preconfigure
preconfigured preconfigured
precreated
predelete predelete
prefixsqlite prefixsqlite
prefoo prefoo

View File

@ -1,4 +1,4 @@
name: 'Language config overridetest' name: 'Language config override test'
type: module type: module
description: 'Support module for the language config override test.' description: 'Support module for the language config override test.'
package: Testing package: Testing

View File

@ -8,6 +8,8 @@ use GuzzleHttp\ClientInterface;
use GuzzleHttp\Exception\TransferException; use GuzzleHttp\Exception\TransferException;
use GuzzleHttp\RequestOptions; use GuzzleHttp\RequestOptions;
// cspell:ignore nocdata
/** /**
* Fetches and caches oEmbed resources. * Fetches and caches oEmbed resources.
*/ */

View File

@ -9,6 +9,8 @@ use Drupal\Core\Extension\ModuleHandlerInterface;
use GuzzleHttp\ClientInterface; use GuzzleHttp\ClientInterface;
use GuzzleHttp\Exception\TransferException; use GuzzleHttp\Exception\TransferException;
// cspell:ignore omitscript
/** /**
* Converts oEmbed media URLs into endpoint-specific resource URLs. * Converts oEmbed media URLs into endpoint-specific resource URLs.
*/ */

View File

@ -189,7 +189,7 @@ class EntityReferenceTranslationDeriver extends DeriverBase implements Container
// If this is an existing derivative, it means this bundle has more // If this is an existing derivative, it means this bundle has more
// than one entity reference field. In that case, we only want to // than one entity reference field. In that case, we only want to
// add the field to the process pipeline and add it to // add the field to the process pipeline and add it to
// overwrite_properties so it can be over written. // overwrite_properties so it can be overwritten.
$this->derivatives[$derivative_key]['process'] += $derivative['process']; $this->derivatives[$derivative_key]['process'] += $derivative['process'];
$this->derivatives[$derivative_key]['destination']['overwrite_properties'] += $derivative['destination']['overwrite_properties']; $this->derivatives[$derivative_key]['destination']['overwrite_properties'] += $derivative['destination']['overwrite_properties'];
} }

View File

@ -7,6 +7,8 @@ use Drupal\Core\Logger\LogMessageParserInterface;
use Drupal\Core\Logger\RfcLoggerTrait; use Drupal\Core\Logger\RfcLoggerTrait;
use Psr\Log\LoggerInterface; use Psr\Log\LoggerInterface;
// cspell:ignore ndelay
/** /**
* Redirects logging messages to syslog. * Redirects logging messages to syslog.
*/ */

View File

@ -39,7 +39,7 @@ class PagerTestController extends ControllerBase implements TrustedCallbackInter
} }
/** /**
* Builds a render array for a pageable test table. * Builds a render array for a multi-page test table.
* *
* @param int $element * @param int $element
* The pager element to be used for paging. * The pager element to be used for paging.

View File

@ -462,7 +462,7 @@ function update_calculate_project_update_status(&$project_data, $available) {
} }
// Look for the 'recommended' version if we haven't found it yet (see // Look for the 'recommended' version if we haven't found it yet (see
// phpdoc at the top of this function for the definition). // PHPDoc at the top of this function for the definition).
if (!isset($project_data['recommended']) if (!isset($project_data['recommended'])
&& $release_major_version == $target_major) { && $release_major_version == $target_major) {
if ($recommended_version_without_extra !== $release_version_without_extra) { if ($recommended_version_without_extra !== $release_version_without_extra) {

View File

@ -170,7 +170,7 @@ class Table extends StylePluginBase implements CacheableDependencyInterface {
if ($fields === NULL) { if ($fields === NULL) {
$fields = $this->displayHandler->getOption('fields'); $fields = $this->displayHandler->getOption('fields');
} }
// Preconfigure the sanitized array so that the order is retained. // Pre-configure the sanitized array so that the order is retained.
foreach ($fields as $field => $info) { foreach ($fields as $field => $info) {
// Set to itself so that if it isn't touched, it gets column // Set to itself so that if it isn't touched, it gets column
// status automatically. // status automatically.

View File

@ -190,7 +190,7 @@ class ConfigCRUDTest extends KernelTestBase {
*/ */
public function testNameValidation() { public function testNameValidation() {
// Verify that an object name without namespace causes an exception. // Verify that an object name without namespace causes an exception.
$name = 'nonamespace'; $name = 'no_namespace';
try { try {
$this->config($name)->save(); $this->config($name)->save();
$this->fail('Expected ConfigNameException was thrown for a name without a namespace.'); $this->fail('Expected ConfigNameException was thrown for a name without a namespace.');

View File

@ -123,7 +123,7 @@ class TaggingTest extends DatabaseTestBase {
$return = $query->getMetaData('test'); $return = $query->getMetaData('test');
$this->assertEquals($data, $return, 'Correct metadata returned.'); $this->assertEquals($data, $return, 'Correct metadata returned.');
$return = $query->getMetaData('nothere'); $return = $query->getMetaData('not_here');
$this->assertNull($return, 'Non-existent key returned NULL.'); $this->assertNull($return, 'Non-existent key returned NULL.');
} }

View File

@ -78,7 +78,7 @@ class ReadOnlyStreamWrapperTest extends FileTestBase {
// Attempt to close the stream. (Suppress errors, as fclose triggers fflush.) // Attempt to close the stream. (Suppress errors, as fclose triggers fflush.)
$this->assertTrue(fclose($handle), 'Able to close file using the read_only stream wrapper.'); $this->assertTrue(fclose($handle), 'Able to close file using the read_only stream wrapper.');
// Test the rename() function // Test the rename() function
$this->assertFalse(@rename($uri, $this->scheme . '://newname.txt'), 'Unable to rename files using the read-only stream wrapper.'); $this->assertFalse(@rename($uri, $this->scheme . '://new_name.txt'), 'Unable to rename files using the read-only stream wrapper.');
// Test the unlink() function // Test the unlink() function
$this->assertTrue(@$file_system->unlink($uri), 'Able to unlink file using read-only stream wrapper.'); $this->assertTrue(@$file_system->unlink($uri), 'Able to unlink file using read-only stream wrapper.');
$this->assertFileExists($filepath); $this->assertFileExists($filepath);

View File

@ -78,7 +78,7 @@ class ScanDirectoryTest extends FileTestBase {
public function testOptionCallback() { public function testOptionCallback() {
// When nothing is matched nothing should be passed to the callback. // When nothing is matched nothing should be passed to the callback.
$all_files = $this->fileSystem->scanDirectory($this->path, '/^NONEXISTINGFILENAME/', ['callback' => 'file_test_file_scan_callback']); $all_files = $this->fileSystem->scanDirectory($this->path, '/^NON-EXISTING-FILENAME/', ['callback' => 'file_test_file_scan_callback']);
$this->assertCount(0, $all_files, 'No files were found.'); $this->assertCount(0, $all_files, 'No files were found.');
$results = file_test_file_scan_callback(); $results = file_test_file_scan_callback();
file_test_file_scan_callback_reset(); file_test_file_scan_callback_reset();

View File

@ -310,7 +310,7 @@ class ContainerAwareEventDispatcherTest extends TestCase {
$this->dispatcher->dispatch(new Event(), self::PREFOO); $this->dispatcher->dispatch(new Event(), self::PREFOO);
$this->assertTrue($this->listener->preFooInvoked); $this->assertTrue($this->listener->preFooInvoked);
$this->assertFalse($this->listener->postFooInvoked); $this->assertFalse($this->listener->postFooInvoked);
$this->assertInstanceOf(Event::class, $this->dispatcher->dispatch(new Event(), 'noevent')); $this->assertInstanceOf(Event::class, $this->dispatcher->dispatch(new Event(), 'no_event'));
$this->assertInstanceOf(Event::class, $this->dispatcher->dispatch(new Event(), self::PREFOO)); $this->assertInstanceOf(Event::class, $this->dispatcher->dispatch(new Event(), self::PREFOO));
// Any kind of object can be dispatched, not only instances of Event. // Any kind of object can be dispatched, not only instances of Event.
$this->assertInstanceOf(\stdClass::class, $this->dispatcher->dispatch(new \stdClass(), self::PREFOO)); $this->assertInstanceOf(\stdClass::class, $this->dispatcher->dispatch(new \stdClass(), self::PREFOO));

View File

@ -44,7 +44,7 @@ class PoStreamWriterTest extends TestCase {
$this->poWriter->setHeader($poHeader->reveal()); $this->poWriter->setHeader($poHeader->reveal());
$root = vfsStream::setup(); $root = vfsStream::setup();
$this->poFile = new vfsStreamFile('powriter.po'); $this->poFile = new vfsStreamFile('poWriter.po');
$root->addChild($this->poFile); $root->addChild($this->poFile);
} }

View File

@ -118,8 +118,8 @@ if (!defined('PHPUNIT_COMPOSER_INSTALL')) {
* Populate class loader with additional namespaces for tests. * Populate class loader with additional namespaces for tests.
* *
* We run this in a function to avoid setting the class loader to a global * We run this in a function to avoid setting the class loader to a global
* that can change. This change can cause unpredictable false positives for * that can change. This change can cause unpredictable false positives for the
* phpunit's global state change watcher. The class loader can be retrieved from * PHPUnit global state change watcher. The class loader can be retrieved from
* composer at any time by requiring autoload.php. * composer at any time by requiring autoload.php.
*/ */
function drupal_phpunit_populate_class_loader() { function drupal_phpunit_populate_class_loader() {