diff options
author | nod_ <nod_@598310.no-reply.drupal.org> | 2025-02-16 22:27:50 +0900 |
---|---|---|
committer | nod_ <nod_@598310.no-reply.drupal.org> | 2025-02-16 22:27:50 +0900 |
commit | 4837c52b95843fc633b2eec70198cac069a569b3 (patch) | |
tree | b40c8d29b3632ef6d89e5aa3d16410e7a64f22f3 /core/modules/config | |
parent | b9f3fe737c097a0f06387aadbfdda5d0a61992b1 (diff) | |
download | drupal-4837c52b95843fc633b2eec70198cac069a569b3.tar.gz drupal-4837c52b95843fc633b2eec70198cac069a569b3.zip |
Issue #3497105 by quietone, borisson_: Fix LineLength for inline comments
Diffstat (limited to 'core/modules/config')
6 files changed, 15 insertions, 9 deletions
diff --git a/core/modules/config/tests/config_test/src/Hook/ConfigTestHooks.php b/core/modules/config/tests/config_test/src/Hook/ConfigTestHooks.php index 4274935a953..9e92f3b0cf6 100644 --- a/core/modules/config/tests/config_test/src/Hook/ConfigTestHooks.php +++ b/core/modules/config/tests/config_test/src/Hook/ConfigTestHooks.php @@ -27,9 +27,9 @@ class ConfigTestHooks { #[Hook('entity_type_alter')] public function entityTypeAlter(array &$entity_types) : void { /** @var \Drupal\Core\Entity\EntityTypeInterface[] $entity_types */ - // The 'translatable' entity key is not supposed to change over time. In this - // case we can safely do it because we set it once and we do not change it for - // all the duration of the test session. + // The 'translatable' entity key is not supposed to change over time. In + // this case we can safely do it because we set it once and we do not change + // it for all the duration of the test session. $entity_types['config_test']->set('translatable', \Drupal::service('state')->get('config_test.translatable')); // Create a clone of config_test that does not have a status. $entity_types['config_test_no_status'] = clone $entity_types['config_test']; diff --git a/core/modules/config/tests/src/Functional/ConfigEntityListMultilingualTest.php b/core/modules/config/tests/src/Functional/ConfigEntityListMultilingualTest.php index 0c691c76ec5..654695442ce 100644 --- a/core/modules/config/tests/src/Functional/ConfigEntityListMultilingualTest.php +++ b/core/modules/config/tests/src/Functional/ConfigEntityListMultilingualTest.php @@ -60,7 +60,8 @@ class ConfigEntityListMultilingualTest extends BrowserTestBase { 'langcode' => 'hu', ]; $this->submitForm($edit, 'Save'); - // Ensure that operations for editing the Hungarian entity appear in English. + // Ensure that operations for editing the Hungarian entity appear in + // English. $this->assertSession()->linkByHrefExists('admin/structure/config_test/manage/antilop'); // Get the list page in Hungarian and assert Hungarian admin links diff --git a/core/modules/config/tests/src/Functional/ConfigImportAllTest.php b/core/modules/config/tests/src/Functional/ConfigImportAllTest.php index 53b23d37cdc..50195354701 100644 --- a/core/modules/config/tests/src/Functional/ConfigImportAllTest.php +++ b/core/modules/config/tests/src/Functional/ConfigImportAllTest.php @@ -110,7 +110,8 @@ class ConfigImportAllTest extends ModuleTestBase { $database_module = \Drupal::service('database')->getProvider(); $expected_modules = ['path_alias', 'system', 'user', $database_module]; - // Ensure that only core required modules and the install profile can not be uninstalled. + // Ensure that only core required modules and the install profile can not be + // uninstalled. $validation_reasons = \Drupal::service('module_installer')->validateUninstall(array_keys($all_modules)); $validation_modules = array_keys($validation_reasons); $this->assertEqualsCanonicalizing($expected_modules, $validation_modules); diff --git a/core/modules/config/tests/src/Functional/ConfigInstallProfileOverrideTest.php b/core/modules/config/tests/src/Functional/ConfigInstallProfileOverrideTest.php index 1bf53507e12..8ee31a50f90 100644 --- a/core/modules/config/tests/src/Functional/ConfigInstallProfileOverrideTest.php +++ b/core/modules/config/tests/src/Functional/ConfigInstallProfileOverrideTest.php @@ -144,7 +144,8 @@ class ConfigInstallProfileOverrideTest extends BrowserTestBase { $config_test_storage = \Drupal::entityTypeManager()->getStorage('config_test'); $this->assertNull($config_test_storage->load('completely_new')); - // Ensure the authenticated role has the access entity_test_bundle permission. + // Ensure the authenticated role has the access entity_test_bundle + // permission. $role = Role::load(Role::AUTHENTICATED_ID); $this->assertTrue($role->hasPermission('administer entity_test_bundle content'), 'The Authenticated role has the "administer entity_test_bundle content" permission.'); $this->assertEquals(['module' => ['entity_test']], $role->getDependencies()); diff --git a/core/modules/config/tests/src/Functional/ConfigSingleImportExportTest.php b/core/modules/config/tests/src/Functional/ConfigSingleImportExportTest.php index d903d14d95c..3902d79c461 100644 --- a/core/modules/config/tests/src/Functional/ConfigSingleImportExportTest.php +++ b/core/modules/config/tests/src/Functional/ConfigSingleImportExportTest.php @@ -57,7 +57,8 @@ class ConfigSingleImportExportTest extends BrowserTestBase { $this->drupalGet('admin/config/development/configuration/single/import'); $this->submitForm($edit, 'Import'); - // Assert the static portion of the error since different parsers could give different text in their error. + // Assert the static portion of the error since different parsers could give + // different text in their error. $this->assertSession()->pageTextContains('The import failed with the following message: '); $import = <<<EOD diff --git a/core/modules/config/tests/src/FunctionalJavascript/ConfigExportTest.php b/core/modules/config/tests/src/FunctionalJavascript/ConfigExportTest.php index 121edd515f2..4323a4b2ae3 100644 --- a/core/modules/config/tests/src/FunctionalJavascript/ConfigExportTest.php +++ b/core/modules/config/tests/src/FunctionalJavascript/ConfigExportTest.php @@ -43,7 +43,8 @@ class ConfigExportTest extends WebDriverTestBase { 'administer block content', ])); - // Create test blocks, so we know what the titles will be to check their order. + // Create test blocks, so we know what the titles will be to check their + // order. foreach ([1, 2, 3, 4] as $num) { $block_name = $this->blockNamePrefix . $num; $new_block = $this->createBlockContent($block_name); @@ -108,7 +109,8 @@ class ConfigExportTest extends WebDriverTestBase { $this->assertSession()->fieldValueEquals('export', ''); // Check that the 'Configuration name' list is sorted alphabetically by ID, - // which always begins with our prefix, and not the label, which is randomized. + // which always begins with our prefix, and not the label, which is + // randomized. $page->selectFieldOption('config_type', 'Block'); $this->assertSession()->assertWaitOnAjaxRequest(); $options = $page->findField('config_name')->findAll('css', 'option'); |