diff --git a/core/modules/auto_updates/auto_updates.module b/core/modules/auto_updates/auto_updates.module index 464dbbf7c3c0e54f852454a6548ac696a587016e..77c034f61bc82da10cfbcd21332cf51a7bd7e9d9 100644 --- a/core/modules/auto_updates/auto_updates.module +++ b/core/modules/auto_updates/auto_updates.module @@ -109,7 +109,7 @@ function auto_updates_module_implements_alter(&$implementations, $hook) { unset($implementations['update']); } if ($hook === 'cron') { - // Whatever mofo. + // Whatever. $hook = $implementations['auto_updates']; unset($implementations['auto_updates']); $implementations['auto_updates'] = $hook; diff --git a/core/modules/auto_updates/src/ReleaseChooser.php b/core/modules/auto_updates/src/ReleaseChooser.php index 7fc2b66b7f68f178ac7ec36d4ccb74d76e9da638..ad19eb118df388dab19e68e273e47a3a5213f775 100644 --- a/core/modules/auto_updates/src/ReleaseChooser.php +++ b/core/modules/auto_updates/src/ReleaseChooser.php @@ -47,7 +47,7 @@ public function __construct(VersionPolicyValidator $version_policy_validator) { * The updater that will be used to install the releases. * * @return \Drupal\update\ProjectRelease[] - * The releases that are installable by the given updtaer, according to the + * The releases that are installable by the given updater, according to the * version validator service. */ protected function getInstallableReleases(Updater $updater): array { diff --git a/core/modules/auto_updates/tests/fixtures/StagedProjectsValidatorTest/new_project_added/active/vendor/composer/installed.json b/core/modules/auto_updates/tests/fixtures/StagedProjectsValidatorTest/new_project_added/active/vendor/composer/installed.json index bc87d26d79de331791545809e450f502ba78e2ee..7d023c9e987ce0d5b69c8402355b2e6c5eb21431 100644 --- a/core/modules/auto_updates/tests/fixtures/StagedProjectsValidatorTest/new_project_added/active/vendor/composer/installed.json +++ b/core/modules/auto_updates/tests/fixtures/StagedProjectsValidatorTest/new_project_added/active/vendor/composer/installed.json @@ -1,6 +1,6 @@ { "_readme": [ - "This file simuluates a list of packages installed in the active directory of a virtual project.", + "This file simulates a list of packages installed in the active directory of a virtual project.", "It will be compared against staged.installed.json.", "See \\Drupal\\Tests\\auto_updates\\Kernel\\ReadinessValidation\\StagedProjectsValidatorTest::testErrors()" ], diff --git a/core/modules/auto_updates/tests/fixtures/StagedProjectsValidatorTest/new_project_added/staged/vendor/composer/installed.json b/core/modules/auto_updates/tests/fixtures/StagedProjectsValidatorTest/new_project_added/staged/vendor/composer/installed.json index a485678d2278a03642a4cd65dee6b3e66b5f5f4e..75ca62dff3f1b7e69f5ee17ec25d7a793e4ef6d3 100644 --- a/core/modules/auto_updates/tests/fixtures/StagedProjectsValidatorTest/new_project_added/staged/vendor/composer/installed.json +++ b/core/modules/auto_updates/tests/fixtures/StagedProjectsValidatorTest/new_project_added/staged/vendor/composer/installed.json @@ -1,6 +1,6 @@ { "_readme": [ - "This file simuluates a list of packages installed in a virtual staging area.", + "This file simulates a list of packages installed in a virtual staging area.", "It will be compared against active.installed.json.", "See \\Drupal\\Tests\\auto_updates\\Kernel\\ReadinessValidation\\StagedProjectsValidatorTest::testErrors()" ], diff --git a/core/modules/auto_updates/tests/fixtures/StagedProjectsValidatorTest/no_errors/active/vendor/composer/installed.json b/core/modules/auto_updates/tests/fixtures/StagedProjectsValidatorTest/no_errors/active/vendor/composer/installed.json index 4005167f65a3c6c62ab55f315c23ee0a86c657c6..1ce420f9133460f5720cdd212ad496a6dc9923f4 100644 --- a/core/modules/auto_updates/tests/fixtures/StagedProjectsValidatorTest/no_errors/active/vendor/composer/installed.json +++ b/core/modules/auto_updates/tests/fixtures/StagedProjectsValidatorTest/no_errors/active/vendor/composer/installed.json @@ -1,6 +1,6 @@ { "_readme": [ - "This file simuluates a list of packages installed in the active directory of a virtual project.", + "This file simulates a list of packages installed in the active directory of a virtual project.", "It will be compared against staged.installed.json.", "See \\Drupal\\Tests\\auto_updates\\Kernel\\ReadinessValidation\\StagedProjectsValidatorTest::testErrors()" ], diff --git a/core/modules/auto_updates/tests/fixtures/StagedProjectsValidatorTest/no_errors/staged/vendor/composer/installed.json b/core/modules/auto_updates/tests/fixtures/StagedProjectsValidatorTest/no_errors/staged/vendor/composer/installed.json index 317eff012aea8786a41e2366c137c240b34a8be8..aae27341f80d8ff5b4dc14afa10c5f4ab43c3e7b 100644 --- a/core/modules/auto_updates/tests/fixtures/StagedProjectsValidatorTest/no_errors/staged/vendor/composer/installed.json +++ b/core/modules/auto_updates/tests/fixtures/StagedProjectsValidatorTest/no_errors/staged/vendor/composer/installed.json @@ -1,6 +1,6 @@ { "_readme": [ - "This file simuluates a list of packages installed in a virtual staging area.", + "This file simulates a list of packages installed in a virtual staging area.", "It will be compared against active.installed.json.", "See \\Drupal\\Tests\\auto_updates\\Kernel\\ReadinessValidation\\StagedProjectsValidatorTest::testErrors()" ], diff --git a/core/modules/auto_updates/tests/fixtures/StagedProjectsValidatorTest/project_removed/active/vendor/composer/installed.json b/core/modules/auto_updates/tests/fixtures/StagedProjectsValidatorTest/project_removed/active/vendor/composer/installed.json index 08242008b82ceb69ee09fa92bdd67966267554da..6c78f4198c08324be34fc6d7b110882ab439d22a 100644 --- a/core/modules/auto_updates/tests/fixtures/StagedProjectsValidatorTest/project_removed/active/vendor/composer/installed.json +++ b/core/modules/auto_updates/tests/fixtures/StagedProjectsValidatorTest/project_removed/active/vendor/composer/installed.json @@ -1,6 +1,6 @@ { "_readme": [ - "This file simuluates a list of packages installed in the active directory of a virtual project.", + "This file simulates a list of packages installed in the active directory of a virtual project.", "It will be compared against staged.installed.json.", "See \\Drupal\\Tests\\auto_updates\\Kernel\\ReadinessValidation\\StagedProjectsValidatorTest::testErrors()" ], diff --git a/core/modules/auto_updates/tests/fixtures/StagedProjectsValidatorTest/project_removed/staged/vendor/composer/installed.json b/core/modules/auto_updates/tests/fixtures/StagedProjectsValidatorTest/project_removed/staged/vendor/composer/installed.json index 9e91821930a930e7d2a677ce5fef36495392d336..c7892ad9888204fb010fdff87df23e3d3adbca99 100644 --- a/core/modules/auto_updates/tests/fixtures/StagedProjectsValidatorTest/project_removed/staged/vendor/composer/installed.json +++ b/core/modules/auto_updates/tests/fixtures/StagedProjectsValidatorTest/project_removed/staged/vendor/composer/installed.json @@ -1,6 +1,6 @@ { "_readme": [ - "This file simuluates a list of packages installed in a virtual staging area.", + "This file simulates a list of packages installed in a virtual staging area.", "It will be compared against active.installed.json.", "See \\Drupal\\Tests\\auto_updates\\Kernel\\ReadinessValidation\\StagedProjectsValidatorTest::testErrors()" ], diff --git a/core/modules/auto_updates/tests/fixtures/StagedProjectsValidatorTest/version_changed/active/vendor/composer/installed.json b/core/modules/auto_updates/tests/fixtures/StagedProjectsValidatorTest/version_changed/active/vendor/composer/installed.json index b4f51c18de2bfcb7c307268ae374834fa58d046e..0f0a7d245c4ef5d0f5bbd85ad0e8a9768ff6ff67 100644 --- a/core/modules/auto_updates/tests/fixtures/StagedProjectsValidatorTest/version_changed/active/vendor/composer/installed.json +++ b/core/modules/auto_updates/tests/fixtures/StagedProjectsValidatorTest/version_changed/active/vendor/composer/installed.json @@ -1,6 +1,6 @@ { "_readme": [ - "This file simuluates a list of packages installed in the active directory of a virtual project.", + "This file simulates a list of packages installed in the active directory of a virtual project.", "It will be compared against staged.installed.json.", "See \\Drupal\\Tests\\auto_updates\\Kernel\\ReadinessValidation\\StagedProjectsValidatorTest::testErrors()" ], diff --git a/core/modules/auto_updates/tests/fixtures/StagedProjectsValidatorTest/version_changed/staged/vendor/composer/installed.json b/core/modules/auto_updates/tests/fixtures/StagedProjectsValidatorTest/version_changed/staged/vendor/composer/installed.json index 9f6db978918b353200ae4f135b9c0f637cdecf05..74fdba6a8f0271217b0d5edf79eeea6824a57287 100644 --- a/core/modules/auto_updates/tests/fixtures/StagedProjectsValidatorTest/version_changed/staged/vendor/composer/installed.json +++ b/core/modules/auto_updates/tests/fixtures/StagedProjectsValidatorTest/version_changed/staged/vendor/composer/installed.json @@ -1,6 +1,6 @@ { "_readme": [ - "This file simuluates a list of packages installed in a virtual staging area.", + "This file simulates a list of packages installed in a virtual staging area.", "It will be compared against active.installed.json.", "See \\Drupal\\Tests\\auto_updates\\Kernel\\ReadinessValidation\\StagedProjectsValidatorTest::testErrors()" ], diff --git a/core/modules/auto_updates/tests/modules/auto_updates_test/auto_updates_test.module b/core/modules/auto_updates/tests/modules/auto_updates_test/auto_updates_test.module index 719ffea93fa7e79b44f9759591a49b3593c7d1a8..628581ca190d460b87ecf75ebf7d28af92221cc2 100644 --- a/core/modules/auto_updates/tests/modules/auto_updates_test/auto_updates_test.module +++ b/core/modules/auto_updates/tests/modules/auto_updates_test/auto_updates_test.module @@ -14,7 +14,7 @@ function auto_updates_test_mail_alter(array &$message): void { if (str_starts_with($message['id'], 'auto_updates_')) { $line_langcodes = []; - // Get the langcode of every translated line in the mssage, including the + // Get the langcode of every translated line in the message, including the // subject line. $lines = array_merge($message['body'], [ $message['subject'], diff --git a/core/modules/auto_updates/tests/src/Functional/UpdaterFormTest.php b/core/modules/auto_updates/tests/src/Functional/UpdaterFormTest.php index 40e460bf9bca0244e2cedff393af76b2d638d211..c242fdfd0a58adbd28ea067e9a983eb60bbb4b44 100644 --- a/core/modules/auto_updates/tests/src/Functional/UpdaterFormTest.php +++ b/core/modules/auto_updates/tests/src/Functional/UpdaterFormTest.php @@ -332,7 +332,7 @@ public function testMarkerFileFailure(): void { $this->checkForMetaRefresh(); $this->assertUpdateStagedTimes(1); - Committer::setException(new \Exception('failed at commiter')); + Committer::setException(new \Exception('failed at committer')); $page->pressButton('Continue'); $this->checkForMetaRefresh(); $assert_session->pageTextContainsOnce('An error has occurred.'); @@ -774,7 +774,7 @@ public function testNoContinueOnError(): void { $page->pressButton('Update to 9.8.1'); $this->checkForMetaRefresh(); $this->assertUpdateStagedTimes(1); - $error = ValidationResult::createError(['Error occured.']); + $error = ValidationResult::createError(['Error occurred.']); TestSubscriber::setTestResult([$error], StatusCheckEvent::class); $this->getSession()->reload(); $assert_session->buttonNotExists('Continue'); diff --git a/core/modules/auto_updates/tests/src/Kernel/ReadinessValidation/StagedProjectsValidatorTest.php b/core/modules/auto_updates/tests/src/Kernel/ReadinessValidation/StagedProjectsValidatorTest.php index 089cf95bb407502f70ef57168fbe1d9077605f0e..c1cc9c90ef2555307b4040ff1d61d702116fd97b 100644 --- a/core/modules/auto_updates/tests/src/Kernel/ReadinessValidation/StagedProjectsValidatorTest.php +++ b/core/modules/auto_updates/tests/src/Kernel/ReadinessValidation/StagedProjectsValidatorTest.php @@ -81,7 +81,7 @@ public function testEventConsumesExceptionResults(): void { * Tests validation errors, or lack thereof. * * @param string $root_fixture_directory - * A directory containing to fixtures sub direcotories, 'active' and + * A directory containing to fixtures sub-directories, 'active' and * 'staged'. * @param string|null $expected_summary * The expected error summary, or NULL if no errors are expected. diff --git a/core/modules/package_manager/package_manager.module b/core/modules/package_manager/package_manager.module index c46e1a20983fd8d5b962dd5d6709420c958af16d..569a65cbde6cde738dc777fd636df49b4352483d 100644 --- a/core/modules/package_manager/package_manager.module +++ b/core/modules/package_manager/package_manager.module @@ -8,6 +8,8 @@ use Drupal\Core\Routing\RouteMatchInterface; use Drupal\package_manager\Validator\ComposerExecutableValidator; +// cspell:ignore grasmash + /** * Implements hook_help(). */ diff --git a/core/modules/package_manager/src/Event/RequireEventTrait.php b/core/modules/package_manager/src/Event/RequireEventTrait.php index f93853967311871a83581ccd47c76145a72d5c2f..96d4c0d3bf2176854fc7e2a092e388baa1fc8408 100644 --- a/core/modules/package_manager/src/Event/RequireEventTrait.php +++ b/core/modules/package_manager/src/Event/RequireEventTrait.php @@ -35,9 +35,9 @@ trait RequireEventTrait { * The stage. * @param string[] $runtime_packages * The runtime (i.e., non-dev) packages to be required, in the form - * 'vendor/name:constrant'. + * 'vendor/name:constraint'. * @param string[] $dev_packages - * The dev packages to be required, in the form 'vendor/name:constrant'. + * The dev packages to be required, in the form 'vendor/name:constraint'. */ public function __construct(Stage $stage, array $runtime_packages, array $dev_packages = []) { $this->runtimePackages = $runtime_packages; diff --git a/core/modules/package_manager/src/FailureMarker.php b/core/modules/package_manager/src/FailureMarker.php index 14b5ee90e51c75d21285857eae39cd6ec92b4c22..296cb87827da25dbbb53cd7e302cda2834af5400 100644 --- a/core/modules/package_manager/src/FailureMarker.php +++ b/core/modules/package_manager/src/FailureMarker.php @@ -12,7 +12,7 @@ * code is copied back into it, and then removed afterwards. This allows us to * know if a commit operation failed midway through, which could leave the site * code base in an indeterminate state -- which, in the worst case scenario, - * might render Drupal unbootable. + * might render Drupal unable to boot. */ final class FailureMarker { diff --git a/core/modules/package_manager/src/ProcessFactory.php b/core/modules/package_manager/src/ProcessFactory.php index e3cfd03514c523f8174fc3fbf19ff12da3973640..12d73bec27decb82ff72257b2c49941019426e2e 100644 --- a/core/modules/package_manager/src/ProcessFactory.php +++ b/core/modules/package_manager/src/ProcessFactory.php @@ -8,6 +8,7 @@ use PhpTuf\ComposerStager\Infrastructure\Factory\Process\ProcessFactory as StagerProcessFactory; use Symfony\Component\Process\Process; +// cspell:ignore BINDIR /** * Defines a process factory which sets the COMPOSER_HOME environment variable. * diff --git a/core/modules/package_manager/tests/src/Kernel/StageValidationExceptionTest.php b/core/modules/package_manager/tests/src/Kernel/StageValidationExceptionTest.php index 71e6f89785e06f4e1e6cfc81e59566b5a3e2c734..c3b577ffbf0f52fe738a354e481101f01d851928 100644 --- a/core/modules/package_manager/tests/src/Kernel/StageValidationExceptionTest.php +++ b/core/modules/package_manager/tests/src/Kernel/StageValidationExceptionTest.php @@ -28,7 +28,7 @@ class StageValidationExceptionTest extends PackageManagerKernelTestBase { * The test cases. */ public function providerResultsAsText(): array { - $messages = ['Blam!', 'Kapow!']; + $messages = ['Bang!', 'Pow!']; $summary = t('There was sadness.'); $result_no_summary = ValidationResult::createError([$messages[0]]); diff --git a/core/modules/package_manager/tests/src/Unit/InstalledPackagesDataTest.php b/core/modules/package_manager/tests/src/Unit/InstalledPackagesDataTest.php index 606d2e2fa7395cb34f1086ba6ece45ceed2dac4d..eb4a859e7b4f9f3cfb3bb9a61dc43dc4c7594d9b 100644 --- a/core/modules/package_manager/tests/src/Unit/InstalledPackagesDataTest.php +++ b/core/modules/package_manager/tests/src/Unit/InstalledPackagesDataTest.php @@ -19,7 +19,7 @@ class InstalledPackagesDataTest extends UnitTestCase { /** * Tests that Composer's `installed.php` file looks how we expect. */ - public function testinstalledPackagesData(): void { + public function testInstalledPackagesData(): void { $loaders = ClassLoader::getRegisteredLoaders(); $installed_php = key($loaders) . '/composer/installed.php'; $this->assertFileIsReadable($installed_php); diff --git a/core/modules/package_manager/tests/src/Unit/PathLocatorTest.php b/core/modules/package_manager/tests/src/Unit/PathLocatorTest.php index 540a35900f6aa346aca3cd84f0b1d16331e6e389..0579f4ed396b13eb2a2afab536ab28194663036a 100644 --- a/core/modules/package_manager/tests/src/Unit/PathLocatorTest.php +++ b/core/modules/package_manager/tests/src/Unit/PathLocatorTest.php @@ -20,7 +20,7 @@ class PathLocatorTest extends UnitTestCase { public function testStagingRoot(): void { $config_factory = $this->getConfigFactoryStub([ 'system.site' => [ - 'uuid' => 'my_site_id', + 'uuid' => '_my_site_id', ], ]); $file_system = $this->prophesize(FileSystemInterface::class); @@ -31,7 +31,7 @@ public function testStagingRoot(): void { $config_factory, $file_system->reveal() ); - $this->assertSame('/path/to/temp/.package_managermy_site_id', $path_locator->getStagingRoot()); + $this->assertSame('/path/to/temp/.package_manager_my_site_id', $path_locator->getStagingRoot()); } /**