Issue #3185807 by andregp, quietone, lucienchalom, elber, yogeshmpawar, jungle, Tauany Bueno, tmaiochi, xjm, smustgrave: Fix or ignore some words starting with "w"

merge-requests/4602/head
Dave Long 2023-08-16 21:06:14 +01:00
parent 76606546a3
commit dbd0e756d8
No known key found for this signature in database
GPG Key ID: ED52AE211E142771
10 changed files with 15 additions and 21 deletions

View File

@ -258,9 +258,9 @@ class Condition implements ConditionInterface, \Countable {
$this->stringVersion = '( AND 1 = 0 )'; $this->stringVersion = '( AND 1 = 0 )';
// Conceptually throwing an exception caused by user input is bad // Conceptually throwing an exception caused by user input is bad
// as you result into a WSOD, which depending on your webserver // as you result into a 'white screen of death', which depending on
// configuration can result into the assumption that your site is // your webserver configuration can result into the assumption that
// broken. // your site is broken.
// On top of that the database API relies on __toString() which // On top of that the database API relies on __toString() which
// does not allow to throw exceptions. // does not allow to throw exceptions.
trigger_error('Invalid characters in query operator: ' . $condition['operator'], E_USER_ERROR); trigger_error('Invalid characters in query operator: ' . $condition['operator'], E_USER_ERROR);

View File

@ -10,9 +10,9 @@ use Twig\Cache\CacheInterface;
/** /**
* Provides an alternate cache storage for Twig using PhpStorage. * Provides an alternate cache storage for Twig using PhpStorage.
* *
* This class is designed to work on setups with multiple webheads using a local * This class is designed to work on setups with multiple web heads using a
* filesystem for the twig cache. When generating the cache key, a hash value * local filesystem for the twig cache. When generating the cache key, a hash
* depending on the enabled extensions is included. This prevents stale * value depending on the enabled extensions is included. This prevents stale
* templates from being reused when twig extensions are enabled or disabled. * templates from being reused when twig extensions are enabled or disabled.
* *
* @see \Drupal\Core\DependencyInjection\Compiler\TwigExtensionPass * @see \Drupal\Core\DependencyInjection\Compiler\TwigExtensionPass

View File

@ -1341,7 +1341,6 @@ wcprops
webassert webassert
webcal webcal
webflo webflo
webheads
webhosting webhosting
webmention webmention
webmozart webmozart
@ -1350,19 +1349,14 @@ webroot
webservers webservers
webtest webtest
whitespaces whitespaces
whos
widthx widthx
wimoids
wmet wmet
wmlscript wmlscript
wordprocessingml wordprocessingml
wordsafe wordsafe
wordword wordword
workspaceswitcher workspaceswitcher
writability
writeln writeln
wrongparam
wsod
wwwrun wwwrun
xbap xbap
xbitmap xbitmap

View File

@ -34,7 +34,7 @@ use Symfony\Component\HttpFoundation\File\Exception\IniSizeFileException;
use Symfony\Component\HttpFoundation\File\Exception\NoFileException; use Symfony\Component\HttpFoundation\File\Exception\NoFileException;
use Symfony\Component\HttpFoundation\File\Exception\PartialFileException; use Symfony\Component\HttpFoundation\File\Exception\PartialFileException;
// cspell:ignore abiword // cspell:ignore abiword widthx
/** /**
* Implements hook_help(). * Implements hook_help().

View File

@ -187,7 +187,7 @@ class ImageStylesPathAndUrlTest extends BrowserTestBase {
$this->drupalGet(str_replace(IMAGE_DERIVATIVE_TOKEN . '=', IMAGE_DERIVATIVE_TOKEN . '=Zo', $generate_url)); $this->drupalGet(str_replace(IMAGE_DERIVATIVE_TOKEN . '=', IMAGE_DERIVATIVE_TOKEN . '=Zo', $generate_url));
$this->assertSession()->statusCodeEquals(404); $this->assertSession()->statusCodeEquals(404);
// Change the parameter name so the token is missing. // Change the parameter name so the token is missing.
$this->drupalGet(str_replace(IMAGE_DERIVATIVE_TOKEN . '=', 'wrongparam=', $generate_url)); $this->drupalGet(str_replace(IMAGE_DERIVATIVE_TOKEN . '=', 'wrong_parameter=', $generate_url));
$this->assertSession()->statusCodeEquals(404); $this->assertSession()->statusCodeEquals(404);
// Check that the generated URL is the same when we pass in a relative path // Check that the generated URL is the same when we pass in a relative path
@ -306,7 +306,7 @@ class ImageStylesPathAndUrlTest extends BrowserTestBase {
$nested_url = $this->style->buildUrl($generated_uri, $clean_url); $nested_url = $this->style->buildUrl($generated_uri, $clean_url);
$matches_expected_url_format = (boolean) preg_match('/styles\/' . $this->style->id() . '\/' . $scheme . '\/styles\/' . $this->style->id() . '\/' . $scheme . '/', $nested_url); $matches_expected_url_format = (boolean) preg_match('/styles\/' . $this->style->id() . '\/' . $scheme . '\/styles\/' . $this->style->id() . '\/' . $scheme . '/', $nested_url);
$this->assertTrue($matches_expected_url_format, "URL for a derivative of an image style matches expected format."); $this->assertTrue($matches_expected_url_format, "URL for a derivative of an image style matches expected format.");
$nested_url_with_wrong_token = str_replace(IMAGE_DERIVATIVE_TOKEN . '=', 'wrongparam=', $nested_url); $nested_url_with_wrong_token = str_replace(IMAGE_DERIVATIVE_TOKEN . '=', 'wrong_parameter=', $nested_url);
$this->drupalGet($nested_url_with_wrong_token); $this->drupalGet($nested_url_with_wrong_token);
$this->assertSession()->statusCodeEquals(404); $this->assertSession()->statusCodeEquals(404);
// Check that this restriction cannot be bypassed by adding extra slashes // Check that this restriction cannot be bypassed by adding extra slashes

View File

@ -464,7 +464,7 @@ class TermTest extends ResourceTestBase {
->setName('Lamoids') ->setName('Lamoids')
->save(); ->save();
Term::create(['vid' => Vocabulary::load('camelids')->id()]) Term::create(['vid' => Vocabulary::load('camelids')->id()])
->setName('Wimoids') ->setName('Camels')
->save(); ->save();
// Modify the entity under test to use the provided parent terms. // Modify the entity under test to use the provided parent terms.

View File

@ -640,7 +640,7 @@ function system_requirements($phase) {
} }
} }
// Test configuration files and directory for writability. // Test if configuration files and directory are writable.
if ($phase == 'runtime') { if ($phase == 'runtime') {
$conf_errors = []; $conf_errors = [];
// Find the site path. Kernel service is not always available at this point, // Find the site path. Kernel service is not always available at this point,

View File

@ -337,7 +337,7 @@ abstract class TermResourceTestBase extends EntityResourceTestBase {
->setName('Lamoids') ->setName('Lamoids')
->save(); ->save();
Term::create(['vid' => Vocabulary::load('camelids')->id()]) Term::create(['vid' => Vocabulary::load('camelids')->id()])
->setName('Wimoids') ->setName('Camels')
->save(); ->save();
// Modify the entity under test to use the provided parent terms. // Modify the entity under test to use the provided parent terms.

View File

@ -11,7 +11,7 @@ use Drupal\user\Entity\User;
* *
* @group user * @group user
*/ */
class WhosOnlineBlockTest extends KernelTestBase { class WhoIsOnlineBlockTest extends KernelTestBase {
/** /**
* {@inheritdoc} * {@inheritdoc}
@ -71,7 +71,7 @@ class WhosOnlineBlockTest extends KernelTestBase {
/** /**
* Tests the Who's Online block. * Tests the Who's Online block.
*/ */
public function testWhosOnlineBlock() { public function testWhoIsOnlineBlock() {
$request_time = \Drupal::time()->getRequestTime(); $request_time = \Drupal::time()->getRequestTime();
// Generate users. // Generate users.
$user1 = User::create([ $user1 = User::create([

View File

@ -7,7 +7,7 @@ use Drupal\Tests\views\Functional\ViewTestBase;
use Drupal\views\Views; use Drupal\views\Views;
/** /**
* Tests the views page display plugin as webtest. * Tests the views page display plugin.
* *
* @group views * @group views
*/ */