diff --git a/composer.lock b/composer.lock index a8ab3cc28454ab3e847c6bd387d30a6b10641101..de65532619dfeac48efa7a39e79659d8f48e9299 100644 --- a/composer.lock +++ b/composer.lock @@ -5242,16 +5242,16 @@ }, { "name": "drupal/coder", - "version": "8.3.23", + "version": "8.3.24", "source": { "type": "git", "url": "https://github.com/pfrenssen/coder.git", - "reference": "1a1613d83c08dac5be593f2775c9eccae1b41805" + "reference": "1a59890f972db5da091354f0191dec1037f7c582" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/pfrenssen/coder/zipball/1a1613d83c08dac5be593f2775c9eccae1b41805", - "reference": "1a1613d83c08dac5be593f2775c9eccae1b41805", + "url": "https://api.github.com/repos/pfrenssen/coder/zipball/1a59890f972db5da091354f0191dec1037f7c582", + "reference": "1a59890f972db5da091354f0191dec1037f7c582", "shasum": "" }, "require": { @@ -5260,7 +5260,7 @@ "php": ">=7.2", "sirbrillig/phpcs-variable-analysis": "^2.11.7", "slevomat/coding-standard": "^8.11", - "squizlabs/php_codesniffer": "^3.7.1", + "squizlabs/php_codesniffer": "^3.9.1", "symfony/yaml": ">=3.4.0" }, "require-dev": { @@ -5289,7 +5289,7 @@ "issues": "https://www.drupal.org/project/issues/coder", "source": "https://www.drupal.org/project/coder" }, - "time": "2024-01-27T18:13:12+00:00" + "time": "2024-04-21T06:13:24+00:00" }, { "name": "google/protobuf", diff --git a/composer/Metapackage/PinnedDevDependencies/composer.json b/composer/Metapackage/PinnedDevDependencies/composer.json index 07398294462d6877fd5752a5c7f6bc7920a33a51..b93bfd49a39d9c207bad605558f54558c8ed61fd 100644 --- a/composer/Metapackage/PinnedDevDependencies/composer.json +++ b/composer/Metapackage/PinnedDevDependencies/composer.json @@ -20,7 +20,7 @@ "composer/xdebug-handler": "3.0.4", "dealerdirect/phpcodesniffer-composer-installer": "v1.0.0", "doctrine/instantiator": "2.0.0", - "drupal/coder": "8.3.23", + "drupal/coder": "8.3.24", "google/protobuf": "v3.25.3", "justinrainbow/json-schema": "v5.2.13", "lullabot/mink-selenium2-driver": "v1.7.2", diff --git a/core/lib/Drupal/Component/Plugin/Attribute/AttributeBase.php b/core/lib/Drupal/Component/Plugin/Attribute/AttributeBase.php index 7ebc93e69c428a2d3eb65593108bef29a1c4a1d9..fa94d6571b68e2aa8184a69875548500e399f769 100644 --- a/core/lib/Drupal/Component/Plugin/Attribute/AttributeBase.php +++ b/core/lib/Drupal/Component/Plugin/Attribute/AttributeBase.php @@ -24,7 +24,7 @@ abstract class AttributeBase implements AttributeInterface { * The attribute class ID. */ public function __construct( - protected readonly string $id + protected readonly string $id, ) {} /** diff --git a/core/lib/Drupal/Component/Plugin/Attribute/Plugin.php b/core/lib/Drupal/Component/Plugin/Attribute/Plugin.php index af98c93c6a257e0d3441a024fcf35cea2045f290..75c2562229a874f0486bfb536f23f460def8c0cb 100644 --- a/core/lib/Drupal/Component/Plugin/Attribute/Plugin.php +++ b/core/lib/Drupal/Component/Plugin/Attribute/Plugin.php @@ -24,7 +24,7 @@ class Plugin extends AttributeBase { */ public function __construct( public readonly string $id, - public readonly ?string $deriver = NULL + public readonly ?string $deriver = NULL, ) {} } diff --git a/core/lib/Drupal/Component/Plugin/Discovery/AttributeBridgeDecorator.php b/core/lib/Drupal/Component/Plugin/Discovery/AttributeBridgeDecorator.php index 3f354693e95b065f2cba16a1eabdaf529674d44b..3ca88e84d683e335cc096e0253aedd12b2aa94b8 100644 --- a/core/lib/Drupal/Component/Plugin/Discovery/AttributeBridgeDecorator.php +++ b/core/lib/Drupal/Component/Plugin/Discovery/AttributeBridgeDecorator.php @@ -21,7 +21,7 @@ class AttributeBridgeDecorator implements DiscoveryInterface { */ public function __construct( protected readonly DiscoveryInterface $decorated, - protected readonly string $pluginDefinitionAttributeName + protected readonly string $pluginDefinitionAttributeName, ) {} /** diff --git a/core/lib/Drupal/Component/Plugin/Discovery/AttributeClassDiscovery.php b/core/lib/Drupal/Component/Plugin/Discovery/AttributeClassDiscovery.php index 6409c7e1531384fd41cbc17f872445a0e5c1824f..3477b746cc84831aff4d12ece64f90aee4ca2d2f 100644 --- a/core/lib/Drupal/Component/Plugin/Discovery/AttributeClassDiscovery.php +++ b/core/lib/Drupal/Component/Plugin/Discovery/AttributeClassDiscovery.php @@ -31,7 +31,7 @@ class AttributeClassDiscovery implements DiscoveryInterface { */ public function __construct( protected readonly array $pluginNamespaces = [], - protected readonly string $pluginDefinitionAttributeName = Plugin::class + protected readonly string $pluginDefinitionAttributeName = Plugin::class, ) { $file_cache_suffix = str_replace('\\', '_', $this->pluginDefinitionAttributeName); $this->fileCache = FileCacheFactory::get('attribute_discovery:' . $this->getFileCacheSuffix($file_cache_suffix)); diff --git a/core/lib/Drupal/Component/Utility/Html.php b/core/lib/Drupal/Component/Utility/Html.php index 0f810adcecf470764caf067926da1191e4d34435..1706b0cde69da9e32934ab310874d7f436ae5a2b 100644 --- a/core/lib/Drupal/Component/Utility/Html.php +++ b/core/lib/Drupal/Component/Utility/Html.php @@ -95,13 +95,16 @@ public static function getClass($class) { * @return string * The cleaned identifier. */ - public static function cleanCssIdentifier($identifier, array $filter = [ - ' ' => '-', - '_' => '-', - '/' => '-', - '[' => '-', - ']' => '', - ]) { + public static function cleanCssIdentifier( + $identifier, + array $filter = [ + ' ' => '-', + '_' => '-', + '/' => '-', + '[' => '-', + ']' => '', + ], + ) { // We could also use strtr() here but its much slower than str_replace(). In // order to keep '__' to stay '__' we first replace it with a different // placeholder after checking that it is not defined as a filter. diff --git a/core/lib/Drupal/Core/Action/Attribute/Action.php b/core/lib/Drupal/Core/Action/Attribute/Action.php index 42e3c2e59e33574bb8ed6a41db5480b293c255b8..1c1cebfc2e061de8e14175f2ef9e37247573f630 100644 --- a/core/lib/Drupal/Core/Action/Attribute/Action.php +++ b/core/lib/Drupal/Core/Action/Attribute/Action.php @@ -45,7 +45,7 @@ public function __construct( public readonly ?TranslatableMarkup $category = NULL, public readonly ?string $deriver = NULL, public readonly ?string $confirm_form_route_name = NULL, - public readonly ?string $type = NULL + public readonly ?string $type = NULL, ) {} } diff --git a/core/lib/Drupal/Core/Ajax/TabledragWarningCommand.php b/core/lib/Drupal/Core/Ajax/TabledragWarningCommand.php index e1cc60892e32a37e271282d8cc11a9d797b2b766..3539cd7c113fcbc6cdf141a9c2c45ec1c2fbaa0e 100644 --- a/core/lib/Drupal/Core/Ajax/TabledragWarningCommand.php +++ b/core/lib/Drupal/Core/Ajax/TabledragWarningCommand.php @@ -28,7 +28,8 @@ class TabledragWarningCommand implements CommandInterface, CommandWithAttachedAs */ public function __construct( protected string $id, - protected string $tabledrag_instance) {} + protected string $tabledrag_instance, + ) {} /** * {@inheritdoc} diff --git a/core/lib/Drupal/Core/Archiver/Attribute/Archiver.php b/core/lib/Drupal/Core/Archiver/Attribute/Archiver.php index 07884ad9b37a20d9a32842006b8da4b1d8cd9ca5..6fbbcbd15ebc4e51f66f0edf0c28f9e0d3146149 100644 --- a/core/lib/Drupal/Core/Archiver/Attribute/Archiver.php +++ b/core/lib/Drupal/Core/Archiver/Attribute/Archiver.php @@ -39,6 +39,7 @@ public function __construct( public readonly ?TranslatableMarkup $title = NULL, public readonly ?TranslatableMarkup $description = NULL, public readonly array $extensions = [], - public readonly ?string $deriver = NULL) {} + public readonly ?string $deriver = NULL, + ) {} } diff --git a/core/lib/Drupal/Core/Asset/AssetQueryString.php b/core/lib/Drupal/Core/Asset/AssetQueryString.php index fa0d6c20805b4a423b99bca10247a2144a53a2b3..7725a8f565d1d8af70afd3d0340a23d71081be33 100644 --- a/core/lib/Drupal/Core/Asset/AssetQueryString.php +++ b/core/lib/Drupal/Core/Asset/AssetQueryString.php @@ -30,7 +30,7 @@ class AssetQueryString implements AssetQueryStringInterface { */ public function __construct( protected StateInterface $state, - protected TimeInterface $time + protected TimeInterface $time, ) {} /** diff --git a/core/lib/Drupal/Core/Asset/CssCollectionOptimizerLazy.php b/core/lib/Drupal/Core/Asset/CssCollectionOptimizerLazy.php index e55bd58cd2e7841d065429af1e1f8152972ad475..34e549ee4a36244a8b8d74998c4e6d9f5d009aa4 100644 --- a/core/lib/Drupal/Core/Asset/CssCollectionOptimizerLazy.php +++ b/core/lib/Drupal/Core/Asset/CssCollectionOptimizerLazy.php @@ -52,7 +52,7 @@ public function __construct( protected readonly ConfigFactoryInterface $configFactory, protected readonly FileUrlGeneratorInterface $fileUrlGenerator, protected readonly TimeInterface $time, - protected readonly LanguageManagerInterface $languageManager + protected readonly LanguageManagerInterface $languageManager, ) {} /** diff --git a/core/lib/Drupal/Core/Asset/JsCollectionOptimizerLazy.php b/core/lib/Drupal/Core/Asset/JsCollectionOptimizerLazy.php index c893507fdba5577fefa5f70108d538f96d5324c8..647a2c36a017f890c0e43bbdb350084989b1a7f1 100644 --- a/core/lib/Drupal/Core/Asset/JsCollectionOptimizerLazy.php +++ b/core/lib/Drupal/Core/Asset/JsCollectionOptimizerLazy.php @@ -52,7 +52,7 @@ public function __construct( protected readonly ConfigFactoryInterface $configFactory, protected readonly FileUrlGeneratorInterface $fileUrlGenerator, protected readonly TimeInterface $time, - protected readonly LanguageManagerInterface $languageManager + protected readonly LanguageManagerInterface $languageManager, ) {} /** diff --git a/core/lib/Drupal/Core/Block/Attribute/Block.php b/core/lib/Drupal/Core/Block/Attribute/Block.php index 46d5ccc5ca41665e6abca8f6a2a835e83df66394..d5b6cafb758be4f06de77d7d470dec1f34cc5d55 100644 --- a/core/lib/Drupal/Core/Block/Attribute/Block.php +++ b/core/lib/Drupal/Core/Block/Attribute/Block.php @@ -34,7 +34,7 @@ public function __construct( public readonly ?TranslatableMarkup $category = NULL, public readonly array $context_definitions = [], public readonly ?string $deriver = NULL, - public readonly array $forms = [] + public readonly array $forms = [], ) {} } diff --git a/core/lib/Drupal/Core/Cache/VariationCache.php b/core/lib/Drupal/Core/Cache/VariationCache.php index 05a7858c4ef558aeb7878f15712482ded794beca..6f1bd2d058b5df556a7e1a47a6165b5ed8b52dbd 100644 --- a/core/lib/Drupal/Core/Cache/VariationCache.php +++ b/core/lib/Drupal/Core/Cache/VariationCache.php @@ -25,7 +25,7 @@ class VariationCache implements VariationCacheInterface { public function __construct( protected RequestStack $requestStack, protected CacheBackendInterface $cacheBackend, - protected CacheContextsManager $cacheContextsManager + protected CacheContextsManager $cacheContextsManager, ) {} /** diff --git a/core/lib/Drupal/Core/Cache/VariationCacheFactory.php b/core/lib/Drupal/Core/Cache/VariationCacheFactory.php index d870ed5972f14573b32a7c60ae682720eb7ea1e2..4256322a601d4c3800b7d519f3b47543e146479c 100644 --- a/core/lib/Drupal/Core/Cache/VariationCacheFactory.php +++ b/core/lib/Drupal/Core/Cache/VariationCacheFactory.php @@ -32,7 +32,7 @@ class VariationCacheFactory implements VariationCacheFactoryInterface { public function __construct( protected RequestStack $requestStack, protected CacheFactoryInterface $cacheFactory, - protected CacheContextsManager $cacheContextsManager + protected CacheContextsManager $cacheContextsManager, ) {} /** diff --git a/core/lib/Drupal/Core/Command/GenerateTheme.php b/core/lib/Drupal/Core/Command/GenerateTheme.php index 490dcc97a806a62aa01c53ce97fdc22a5bc2c57f..55d344e366a6aaf5e260d9618889f2af1007633d 100644 --- a/core/lib/Drupal/Core/Command/GenerateTheme.php +++ b/core/lib/Drupal/Core/Command/GenerateTheme.php @@ -234,7 +234,7 @@ private static function loadStarterKitConfig( Extension $theme, string $version, string $name, - string $description + string $description, ): array { $starterkit_config_file = $theme->getPath() . '/' . $theme->getName() . '.starterkit.yml'; if (!file_exists($starterkit_config_file)) { @@ -290,7 +290,7 @@ private static function loadStarterKitConfig( private static function getStarterKitVersion( Extension $theme, - SymfonyStyle $io + SymfonyStyle $io, ): string { $source_version = $theme->info['version'] ?? ''; if ($source_version === '') { diff --git a/core/lib/Drupal/Core/Config/Action/Attribute/ActionMethod.php b/core/lib/Drupal/Core/Config/Action/Attribute/ActionMethod.php index c6abf041d6c24cdd348d90b485e826c18e0c64e0..f5f9b0de5ec9cc2f1f250720ce4f16e82a2672bc 100644 --- a/core/lib/Drupal/Core/Config/Action/Attribute/ActionMethod.php +++ b/core/lib/Drupal/Core/Config/Action/Attribute/ActionMethod.php @@ -34,7 +34,7 @@ final class ActionMethod { public function __construct( public readonly Exists $exists = Exists::ErrorIfNotExists, public readonly TranslatableMarkup|string $adminLabel = '', - public readonly bool|string $pluralize = TRUE + public readonly bool|string $pluralize = TRUE, ) { } diff --git a/core/lib/Drupal/Core/Config/Action/Plugin/ConfigAction/EntityCreate.php b/core/lib/Drupal/Core/Config/Action/Plugin/ConfigAction/EntityCreate.php index ad33645b3ddf57b2f40ceb767c57d3d8cbc2ed10..f1e5c54f4d30f26e3291a14046ca41f017574ae1 100644 --- a/core/lib/Drupal/Core/Config/Action/Plugin/ConfigAction/EntityCreate.php +++ b/core/lib/Drupal/Core/Config/Action/Plugin/ConfigAction/EntityCreate.php @@ -33,7 +33,7 @@ final class EntityCreate implements ConfigActionPluginInterface, ContainerFactor */ public function __construct( protected readonly ConfigManagerInterface $configManager, - protected readonly Exists $exists + protected readonly Exists $exists, ) { } diff --git a/core/lib/Drupal/Core/Config/Action/Plugin/ConfigAction/EntityMethod.php b/core/lib/Drupal/Core/Config/Action/Plugin/ConfigAction/EntityMethod.php index 73189f4511670c359c80d5cd4e4ad2c99561b3be..8b00b4381c16051feff631c48666aabfe8b0e3fe 100644 --- a/core/lib/Drupal/Core/Config/Action/Plugin/ConfigAction/EntityMethod.php +++ b/core/lib/Drupal/Core/Config/Action/Plugin/ConfigAction/EntityMethod.php @@ -67,7 +67,7 @@ public function __construct( protected readonly Exists $exists, protected readonly int $numberOfParams, protected readonly int $numberOfRequiredParams, - protected readonly bool $pluralized + protected readonly bool $pluralized, ) { } diff --git a/core/lib/Drupal/Core/DependencyInjection/Compiler/RegisterEventSubscribersPass.php b/core/lib/Drupal/Core/DependencyInjection/Compiler/RegisterEventSubscribersPass.php index 3ecc3460cec49d96cfc2cb4a5328bc377b882094..845f0ee6ded9e23135657c2437cc021e5d179986 100644 --- a/core/lib/Drupal/Core/DependencyInjection/Compiler/RegisterEventSubscribersPass.php +++ b/core/lib/Drupal/Core/DependencyInjection/Compiler/RegisterEventSubscribersPass.php @@ -18,7 +18,7 @@ class RegisterEventSubscribersPass implements CompilerPassInterface { * The Symfony compiler pass that registers event subscribers. */ public function __construct( - protected RegisterListenersPass $pass + protected RegisterListenersPass $pass, ) {} /** diff --git a/core/lib/Drupal/Core/Display/Attribute/DisplayVariant.php b/core/lib/Drupal/Core/Display/Attribute/DisplayVariant.php index 091dfcf7fed8cfc266278cec34792c397e55a9b3..59e3d98299ff0181875b77c87f4cb55412aa913a 100644 --- a/core/lib/Drupal/Core/Display/Attribute/DisplayVariant.php +++ b/core/lib/Drupal/Core/Display/Attribute/DisplayVariant.php @@ -44,7 +44,7 @@ class DisplayVariant extends Plugin { public function __construct( public readonly string $id, public readonly TranslatableMarkup $admin_label, - public readonly ?string $deriver = NULL + public readonly ?string $deriver = NULL, ) {} } diff --git a/core/lib/Drupal/Core/Entity/Attribute/EntityReferenceSelection.php b/core/lib/Drupal/Core/Entity/Attribute/EntityReferenceSelection.php index 3c20cc60d95e361c9101c24d0f4b3e71824290df..76b8b950ec7d456306b13a0ee4c010eb6a5f5b10 100644 --- a/core/lib/Drupal/Core/Entity/Attribute/EntityReferenceSelection.php +++ b/core/lib/Drupal/Core/Entity/Attribute/EntityReferenceSelection.php @@ -59,7 +59,7 @@ public function __construct( public readonly string $group, public readonly int $weight, public readonly array $entity_types = [], - public readonly ?string $deriver = NULL + public readonly ?string $deriver = NULL, ) {} } diff --git a/core/lib/Drupal/Core/EventSubscriber/AjaxResponseSubscriber.php b/core/lib/Drupal/Core/EventSubscriber/AjaxResponseSubscriber.php index 8e37afbcdf9c51ac94132a3c4dcbf773fe9780f3..2491b6cd698ac8b20fc91761807b3793acce72ba 100644 --- a/core/lib/Drupal/Core/EventSubscriber/AjaxResponseSubscriber.php +++ b/core/lib/Drupal/Core/EventSubscriber/AjaxResponseSubscriber.php @@ -23,7 +23,7 @@ class AjaxResponseSubscriber implements EventSubscriberInterface { */ public function __construct( #[AutowireServiceClosure('ajax_response.attachments_processor')] - protected \Closure $processorClosure + protected \Closure $processorClosure, ) {} /** diff --git a/core/lib/Drupal/Core/Extension/DatabaseDriver.php b/core/lib/Drupal/Core/Extension/DatabaseDriver.php index cb4e7a4a880cdbce6ce03e1ad5b42065146b3f22..aa468bea79db59d6f00975ab49b5945f952af3da 100644 --- a/core/lib/Drupal/Core/Extension/DatabaseDriver.php +++ b/core/lib/Drupal/Core/Extension/DatabaseDriver.php @@ -36,7 +36,8 @@ public function __construct( string $root, protected Extension $module, protected string $driverName, - protected array $discoveredModules) { + protected array $discoveredModules, + ) { $this->root = $root; $this->type = 'database_driver'; } diff --git a/core/lib/Drupal/Core/Extension/InstallProfileUninstallValidator.php b/core/lib/Drupal/Core/Extension/InstallProfileUninstallValidator.php index 97eb71f67e1255447a3126a7187c4db72ea6798e..87673b413a4f8fbf99a3b02df8cd7a1da9c5b44b 100644 --- a/core/lib/Drupal/Core/Extension/InstallProfileUninstallValidator.php +++ b/core/lib/Drupal/Core/Extension/InstallProfileUninstallValidator.php @@ -27,7 +27,7 @@ public function __construct( protected ThemeExtensionList $themeExtensionList, protected string|false|null $installProfile, protected string $root, - protected string $sitePath + protected string $sitePath, ) { $this->setStringTranslation($string_translation); } diff --git a/core/lib/Drupal/Core/Installer/Form/SiteSettingsForm.php b/core/lib/Drupal/Core/Installer/Form/SiteSettingsForm.php index 46cf9e2084c21d9400152c833d2c3ad8904badd6..81682b8278ea3dab9fc3d5176de147bbeba7ed22 100644 --- a/core/lib/Drupal/Core/Installer/Form/SiteSettingsForm.php +++ b/core/lib/Drupal/Core/Installer/Form/SiteSettingsForm.php @@ -33,7 +33,8 @@ class SiteSettingsForm extends FormBase { public function __construct( protected string $sitePath, protected RendererInterface $renderer, - protected DatabaseDriverList $databaseDriverList) { + protected DatabaseDriverList $databaseDriverList, + ) { } /** diff --git a/core/lib/Drupal/Core/Mail/Plugin/Mail/SymfonyMailer.php b/core/lib/Drupal/Core/Mail/Plugin/Mail/SymfonyMailer.php index 509718dab1e9cc639d9a4a6a73dce9d9de171e52..c848a0a43108f7eb9f89686dcdb2cf10fdd9adc1 100644 --- a/core/lib/Drupal/Core/Mail/Plugin/Mail/SymfonyMailer.php +++ b/core/lib/Drupal/Core/Mail/Plugin/Mail/SymfonyMailer.php @@ -93,7 +93,8 @@ public static function create(ContainerInterface $container, array $configuratio */ public function __construct( protected LoggerInterface $logger, - protected ?MailerInterface $mailer = NULL) { + protected ?MailerInterface $mailer = NULL, + ) { } public function format(array $message) { diff --git a/core/lib/Drupal/Core/Password/PhpPassword.php b/core/lib/Drupal/Core/Password/PhpPassword.php index c199de8fd8b7af65ebc5687c889dbc96e57e1322..e854621b6848800d914dc67a581e3c86319ebe64 100644 --- a/core/lib/Drupal/Core/Password/PhpPassword.php +++ b/core/lib/Drupal/Core/Password/PhpPassword.php @@ -21,7 +21,7 @@ class PhpPassword implements PasswordInterface { */ public function __construct( protected string $algorithm = PASSWORD_DEFAULT, - protected array $options = [] + protected array $options = [], ) { } diff --git a/core/lib/Drupal/Core/Queue/Attribute/QueueWorker.php b/core/lib/Drupal/Core/Queue/Attribute/QueueWorker.php index 98db11692a038ad3bb93086623b4cdf04c02eb22..ff96205317d228970b4aad401c04305c861a0145 100644 --- a/core/lib/Drupal/Core/Queue/Attribute/QueueWorker.php +++ b/core/lib/Drupal/Core/Queue/Attribute/QueueWorker.php @@ -54,7 +54,7 @@ public function __construct( public readonly string $id, public readonly ?TranslatableMarkup $title = NULL, public readonly ?array $cron = NULL, - public readonly ?string $deriver = NULL + public readonly ?string $deriver = NULL, ) {} } diff --git a/core/lib/Drupal/Core/Session/AccessPolicyProcessor.php b/core/lib/Drupal/Core/Session/AccessPolicyProcessor.php index 4e6849b47adfc303557d617a081cba01d4788511..6dc0e359bc0690410c4d816c88a94d7299fb3810 100644 --- a/core/lib/Drupal/Core/Session/AccessPolicyProcessor.php +++ b/core/lib/Drupal/Core/Session/AccessPolicyProcessor.php @@ -23,7 +23,8 @@ public function __construct( protected VariationCacheInterface $variationStatic, protected CacheBackendInterface $static, protected AccountProxyInterface $currentUser, - protected AccountSwitcherInterface $accountSwitcher) { + protected AccountSwitcherInterface $accountSwitcher, + ) { } /** diff --git a/core/lib/Drupal/Core/Session/CalculatedPermissionsItem.php b/core/lib/Drupal/Core/Session/CalculatedPermissionsItem.php index d8e16cfc245ad83b00b5052f9b011b0dbc5b788c..ea9c9eeb5bfc5d98b5d8a0c0ec1659eff9abc34f 100644 --- a/core/lib/Drupal/Core/Session/CalculatedPermissionsItem.php +++ b/core/lib/Drupal/Core/Session/CalculatedPermissionsItem.php @@ -25,7 +25,7 @@ public function __construct( protected array $permissions, protected bool $isAdmin = FALSE, protected string $scope = AccessPolicyInterface::SCOPE_DRUPAL, - protected string|int $identifier = AccessPolicyInterface::SCOPE_DRUPAL + protected string|int $identifier = AccessPolicyInterface::SCOPE_DRUPAL, ) { $this->permissions = $isAdmin ? [] : array_unique($permissions); } diff --git a/core/lib/Drupal/Core/Template/ComponentsTwigExtension.php b/core/lib/Drupal/Core/Template/ComponentsTwigExtension.php index 49e214c6b88617779f385fbc601c44a0357065d1..5ff5c7e94b6bac87ddb3ae5746a6eb0ada171baa 100644 --- a/core/lib/Drupal/Core/Template/ComponentsTwigExtension.php +++ b/core/lib/Drupal/Core/Template/ComponentsTwigExtension.php @@ -27,7 +27,7 @@ final class ComponentsTwigExtension extends AbstractExtension { */ public function __construct( protected ComponentPluginManager $pluginManager, - protected ComponentValidator $componentValidator + protected ComponentValidator $componentValidator, ) {} /** diff --git a/core/lib/Drupal/Core/Test/EnvironmentCleaner.php b/core/lib/Drupal/Core/Test/EnvironmentCleaner.php index 75d362c5f8a8193f278293e139a058f69773c8d4..fa9d7c627b193d27aa80fd7ac097a110a071a126 100644 --- a/core/lib/Drupal/Core/Test/EnvironmentCleaner.php +++ b/core/lib/Drupal/Core/Test/EnvironmentCleaner.php @@ -32,7 +32,7 @@ public function __construct( protected Connection $testDatabase, protected TestRunResultsStorageInterface $testRunResultsStorage, protected OutputInterface $output, - protected FileSystemInterface $fileSystem + protected FileSystemInterface $fileSystem, ) { } diff --git a/core/lib/Drupal/Core/Test/PhpUnitTestRunner.php b/core/lib/Drupal/Core/Test/PhpUnitTestRunner.php index e9103ceb9f47dc8eb4d7e8ac13a23d3222aa2289..4aff3a7df3de348b8d434d2eed2b868273759798 100644 --- a/core/lib/Drupal/Core/Test/PhpUnitTestRunner.php +++ b/core/lib/Drupal/Core/Test/PhpUnitTestRunner.php @@ -37,7 +37,7 @@ class PhpUnitTestRunner implements ContainerInjectionInterface { */ public function __construct( protected string $appRoot, - protected string $workingDirectory + protected string $workingDirectory, ) { } diff --git a/core/lib/Drupal/Core/Test/SimpletestTestRunResultsStorage.php b/core/lib/Drupal/Core/Test/SimpletestTestRunResultsStorage.php index 9d07e8273ac1f1533effce5c129eaf30460f6ae0..28398f9b7381537517d50b249c9589ccf922e4d1 100644 --- a/core/lib/Drupal/Core/Test/SimpletestTestRunResultsStorage.php +++ b/core/lib/Drupal/Core/Test/SimpletestTestRunResultsStorage.php @@ -20,7 +20,7 @@ class SimpletestTestRunResultsStorage implements TestRunResultsStorageInterface * The database connection to use for inserting assertions. */ public function __construct( - protected Connection $connection + protected Connection $connection, ) { } diff --git a/core/lib/Drupal/Core/Test/StackMiddleware/TestWaitTerminateMiddleware.php b/core/lib/Drupal/Core/Test/StackMiddleware/TestWaitTerminateMiddleware.php index 58cc844024c4482c9e83edfd0ab986c399750256..be2a675d0209574189794615445b50f31d86316b 100644 --- a/core/lib/Drupal/Core/Test/StackMiddleware/TestWaitTerminateMiddleware.php +++ b/core/lib/Drupal/Core/Test/StackMiddleware/TestWaitTerminateMiddleware.php @@ -26,7 +26,7 @@ class TestWaitTerminateMiddleware implements HttpKernelInterface { public function __construct( protected HttpKernelInterface $httpKernel, protected StateInterface $state, - protected LockBackendInterface $lock + protected LockBackendInterface $lock, ) { } diff --git a/core/lib/Drupal/Core/Test/TestRun.php b/core/lib/Drupal/Core/Test/TestRun.php index 1538fb2ed4035f95aca773921ba3578f1a90dea1..5214093ce49ebaed5ade0eca41757825ed52fa33 100644 --- a/core/lib/Drupal/Core/Test/TestRun.php +++ b/core/lib/Drupal/Core/Test/TestRun.php @@ -33,7 +33,7 @@ class TestRun { */ public function __construct( protected TestRunResultsStorageInterface $testRunResultsStorage, - protected int|string $testId + protected int|string $testId, ) { } diff --git a/core/lib/Drupal/Core/Theme/ComponentNegotiator.php b/core/lib/Drupal/Core/Theme/ComponentNegotiator.php index 43cf466c07f4c32a1539c1516a2179d2880ac215..b6fb435774616913fca0bf49de258acdf12eb783 100644 --- a/core/lib/Drupal/Core/Theme/ComponentNegotiator.php +++ b/core/lib/Drupal/Core/Theme/ComponentNegotiator.php @@ -27,7 +27,7 @@ class ComponentNegotiator { */ public function __construct( protected ThemeManagerInterface $themeManager, - protected ModuleExtensionList $moduleExtensionList + protected ModuleExtensionList $moduleExtensionList, ) { } diff --git a/core/lib/Drupal/Core/Utility/CallableResolver.php b/core/lib/Drupal/Core/Utility/CallableResolver.php index b41fedf84ed27b723f30a18033e0bd10556a4110..b283be60fe3335f0e92ec2ec39f29f6d60209aff 100644 --- a/core/lib/Drupal/Core/Utility/CallableResolver.php +++ b/core/lib/Drupal/Core/Utility/CallableResolver.php @@ -43,7 +43,7 @@ class CallableResolver { * The class resolver. */ public function __construct( - protected readonly ClassResolverInterface $classResolver + protected readonly ClassResolverInterface $classResolver, ) { } diff --git a/core/lib/Drupal/Core/Validation/Attribute/Constraint.php b/core/lib/Drupal/Core/Validation/Attribute/Constraint.php index 79a108d18f679a961573472d259795ac402b0ed6..0ba22db6448a92f70554b21da6729ece8936b029 100644 --- a/core/lib/Drupal/Core/Validation/Attribute/Constraint.php +++ b/core/lib/Drupal/Core/Validation/Attribute/Constraint.php @@ -41,7 +41,7 @@ public function __construct( public readonly string $id, public readonly ?TranslatableMarkup $label = NULL, public readonly string|array|false $type = [], - public readonly ?string $deriver = NULL + public readonly ?string $deriver = NULL, ) {} } diff --git a/core/lib/Drupal/Core/Validation/ExecutionContext.php b/core/lib/Drupal/Core/Validation/ExecutionContext.php index ad732ea9f92768bc56bcbbf33deb66c33c4f6940..5e67e0e786f03901ecdf9b5b852dd1e503cd226a 100644 --- a/core/lib/Drupal/Core/Validation/ExecutionContext.php +++ b/core/lib/Drupal/Core/Validation/ExecutionContext.php @@ -86,7 +86,7 @@ public function __construct( protected ValidatorInterface $validator, protected mixed $root, protected TranslatorInterface $translator, - protected ?string $translationDomain = NULL + protected ?string $translationDomain = NULL, ) { $this->violations = new ConstraintViolationList(); } diff --git a/core/lib/Drupal/Core/Validation/ExecutionContextFactory.php b/core/lib/Drupal/Core/Validation/ExecutionContextFactory.php index a32873430c6bcda1aadbfe7af0e42937167ab523..af7399a67f969f61bc8d042083c9c12f49225fe4 100644 --- a/core/lib/Drupal/Core/Validation/ExecutionContextFactory.php +++ b/core/lib/Drupal/Core/Validation/ExecutionContextFactory.php @@ -23,7 +23,8 @@ class ExecutionContextFactory implements ExecutionContextFactoryInterface { */ public function __construct( protected TranslatorInterface $translator, - protected ?string $translationDomain = NULL) { + protected ?string $translationDomain = NULL, + ) { } /** diff --git a/core/modules/announcements_feed/src/AnnounceFetcher.php b/core/modules/announcements_feed/src/AnnounceFetcher.php index 8d777284e8474ec5813bea4e8cdd4ea2f86ed2be..d1479e4211f753d2c329295413a9ecea5db45816 100644 --- a/core/modules/announcements_feed/src/AnnounceFetcher.php +++ b/core/modules/announcements_feed/src/AnnounceFetcher.php @@ -54,7 +54,7 @@ public function __construct( ConfigFactoryInterface $config, KeyValueExpirableFactoryInterface $temp_store, protected LoggerInterface $logger, - protected string $feedUrl + protected string $feedUrl, ) { $this->config = $config->get('announcements_feed.settings'); $this->tempStore = $temp_store->get('announcements_feed'); diff --git a/core/modules/announcements_feed/src/AnnounceRenderer.php b/core/modules/announcements_feed/src/AnnounceRenderer.php index ec19d5e9844cf2d259346db17f1cf39df737316a..420c7620e33c5d96fce124a4d7cd92d83cff6ead 100644 --- a/core/modules/announcements_feed/src/AnnounceRenderer.php +++ b/core/modules/announcements_feed/src/AnnounceRenderer.php @@ -25,7 +25,7 @@ final class AnnounceRenderer { */ public function __construct( protected AnnounceFetcher $announceFetcher, - protected string $feedLink + protected string $feedLink, ) { } diff --git a/core/modules/announcements_feed/src/Announcement.php b/core/modules/announcements_feed/src/Announcement.php index 326f58cca82a6505bcd2ff4ba2f6edfbf72dadf1..90656d51fe1ced565f229d0cfe8e01f35416005d 100644 --- a/core/modules/announcements_feed/src/Announcement.php +++ b/core/modules/announcements_feed/src/Announcement.php @@ -41,7 +41,7 @@ public function __construct( public readonly string $date_published, public readonly string $content_html, public readonly string $version, - public readonly bool $featured + public readonly bool $featured, ) { } diff --git a/core/modules/config/src/Form/ConfigSingleImportForm.php b/core/modules/config/src/Form/ConfigSingleImportForm.php index d90c2bb33341e72c370ae0f5f92460e6faf370d1..c53eb2254e5ff8fca86c231ea840feb378e66201 100644 --- a/core/modules/config/src/Form/ConfigSingleImportForm.php +++ b/core/modules/config/src/Form/ConfigSingleImportForm.php @@ -89,7 +89,7 @@ public function __construct( protected ModuleInstallerInterface $moduleInstaller, protected ThemeHandlerInterface $themeHandler, protected ModuleExtensionList $moduleExtensionList, - protected ThemeExtensionList $themeExtensionList + protected ThemeExtensionList $themeExtensionList, ) { } diff --git a/core/modules/config/src/Form/ConfigSync.php b/core/modules/config/src/Form/ConfigSync.php index 61566d9d6c43169be3118e4311513b195f386f2f..65412c5967274170b3a5cbacf5ee9709e455816e 100644 --- a/core/modules/config/src/Form/ConfigSync.php +++ b/core/modules/config/src/Form/ConfigSync.php @@ -77,7 +77,7 @@ public function __construct( protected RendererInterface $renderer, protected ModuleExtensionList $moduleExtensionList, protected ImportStorageTransformer $importTransformer, - protected ThemeExtensionList $themeExtensionList + protected ThemeExtensionList $themeExtensionList, ) { } diff --git a/core/modules/content_moderation/src/EventSubscriber/WorkspaceSubscriber.php b/core/modules/content_moderation/src/EventSubscriber/WorkspaceSubscriber.php index 9e37f0097d7a20a904c96f5b8441aaa338ec19cd..dbc6cf65c884967b069710fa2d7854f01614775c 100644 --- a/core/modules/content_moderation/src/EventSubscriber/WorkspaceSubscriber.php +++ b/core/modules/content_moderation/src/EventSubscriber/WorkspaceSubscriber.php @@ -24,7 +24,7 @@ class WorkspaceSubscriber implements EventSubscriberInterface { */ public function __construct( protected readonly EntityTypeManagerInterface $entityTypeManager, - protected readonly ?WorkspaceAssociationInterface $workspaceAssociation + protected readonly ?WorkspaceAssociationInterface $workspaceAssociation, ) {} /** diff --git a/core/modules/field_ui/src/Form/FieldStorageReuseForm.php b/core/modules/field_ui/src/Form/FieldStorageReuseForm.php index 14ca7486a4f17f198d1be1af4c7b85166812f34d..d81e3d67ae128fdc9582be78073face6b16465ff 100644 --- a/core/modules/field_ui/src/Form/FieldStorageReuseForm.php +++ b/core/modules/field_ui/src/Form/FieldStorageReuseForm.php @@ -56,7 +56,7 @@ public function __construct( protected FieldTypePluginManagerInterface $fieldTypePluginManager, protected EntityFieldManagerInterface $entityFieldManager, protected EntityDisplayRepositoryInterface $entityDisplayRepository, - protected EntityTypeBundleInfoInterface $bundleInfoService + protected EntityTypeBundleInfoInterface $bundleInfoService, ) {} /** diff --git a/core/modules/file/src/Plugin/Validation/Constraint/FileExtensionSecureConstraintValidator.php b/core/modules/file/src/Plugin/Validation/Constraint/FileExtensionSecureConstraintValidator.php index 351a237b77fc911915a5e43e2b94807b6153fee9..8c9efda9d6ba6b6b0f2433772bab86466b7f5ec6 100644 --- a/core/modules/file/src/Plugin/Validation/Constraint/FileExtensionSecureConstraintValidator.php +++ b/core/modules/file/src/Plugin/Validation/Constraint/FileExtensionSecureConstraintValidator.php @@ -23,7 +23,7 @@ class FileExtensionSecureConstraintValidator extends BaseFileConstraintValidator * The config factory. */ public function __construct( - protected ConfigFactoryInterface $configFactory + protected ConfigFactoryInterface $configFactory, ) {} /** diff --git a/core/modules/file/src/Plugin/Validation/Constraint/FileSizeLimitConstraintValidator.php b/core/modules/file/src/Plugin/Validation/Constraint/FileSizeLimitConstraintValidator.php index d3886c1cff423f73735921f67bede7f1ed4c75ca..f2b52328667c72b018fcc6cf147d32d8bd4e40f2 100644 --- a/core/modules/file/src/Plugin/Validation/Constraint/FileSizeLimitConstraintValidator.php +++ b/core/modules/file/src/Plugin/Validation/Constraint/FileSizeLimitConstraintValidator.php @@ -25,7 +25,7 @@ class FileSizeLimitConstraintValidator extends BaseFileConstraintValidator imple */ public function __construct( protected AccountInterface $currentUser, - protected EntityTypeManagerInterface $entityTypeManager + protected EntityTypeManagerInterface $entityTypeManager, ) {} /** diff --git a/core/modules/file/src/Plugin/Validation/Constraint/FileValidationConstraintValidator.php b/core/modules/file/src/Plugin/Validation/Constraint/FileValidationConstraintValidator.php index 601bd299e42eaf636103cd15341a79712091a54e..f41bfe9682c3cfd8bcf660b31ea392ee23c9bdf6 100644 --- a/core/modules/file/src/Plugin/Validation/Constraint/FileValidationConstraintValidator.php +++ b/core/modules/file/src/Plugin/Validation/Constraint/FileValidationConstraintValidator.php @@ -21,7 +21,7 @@ class FileValidationConstraintValidator extends ConstraintValidator implements C * The file validator. */ public function __construct( - protected FileValidatorInterface $fileValidator + protected FileValidatorInterface $fileValidator, ) {} /** diff --git a/core/modules/file/src/Validation/FileValidator.php b/core/modules/file/src/Validation/FileValidator.php index c649f219be59a7d71df75f48836b32b08bd4fb4c..301fa3ec669aa0416b9118b67756ae3fd6ce89af 100644 --- a/core/modules/file/src/Validation/FileValidator.php +++ b/core/modules/file/src/Validation/FileValidator.php @@ -30,7 +30,7 @@ public function __construct( protected ValidatorInterface $validator, protected ConstraintManager $constraintManager, protected EventDispatcherInterface $eventDispatcher, - protected ModuleHandlerInterface $moduleHandler + protected ModuleHandlerInterface $moduleHandler, ) {} /** diff --git a/core/modules/language/src/Attribute/LanguageNegotiation.php b/core/modules/language/src/Attribute/LanguageNegotiation.php index fb26311008a6b16714bc76e9674659ca00185189..fb3eb779b42ab7836bc5d20edc73ae701ff89e20 100644 --- a/core/modules/language/src/Attribute/LanguageNegotiation.php +++ b/core/modules/language/src/Attribute/LanguageNegotiation.php @@ -43,12 +43,12 @@ class LanguageNegotiation extends Plugin { * (optional) The route pointing to the plugin's configuration page. */ public function __construct( - public readonly string $id, - public readonly TranslatableMarkup $name, - public readonly ?array $types = NULL, - public readonly int $weight = 0, - public readonly ?TranslatableMarkup $description = NULL, - public readonly ?string $config_route_name = NULL, + public readonly string $id, + public readonly TranslatableMarkup $name, + public readonly ?array $types = NULL, + public readonly int $weight = 0, + public readonly ?TranslatableMarkup $description = NULL, + public readonly ?string $config_route_name = NULL, ) {} } diff --git a/core/modules/media/src/Attribute/MediaSource.php b/core/modules/media/src/Attribute/MediaSource.php index 13289419f1f34d128b7b9d048cbd853643c7d745..33769f5b0b718d7bec66647b37075da8c32ee446 100644 --- a/core/modules/media/src/Attribute/MediaSource.php +++ b/core/modules/media/src/Attribute/MediaSource.php @@ -81,7 +81,7 @@ public function __construct( public readonly ?string $thumbnail_alt_metadata_attribute = NULL, public readonly ?string $thumbnail_title_metadata_attribute = NULL, public readonly string $default_name_metadata_attribute = 'default_name', - public readonly ?string $deriver = NULL + public readonly ?string $deriver = NULL, ) {} } diff --git a/core/modules/media/src/Attribute/OEmbedMediaSource.php b/core/modules/media/src/Attribute/OEmbedMediaSource.php index 3de756bb9d7c2323701dcf1d1c59fbd5721126f9..50b9b5a18587ccccf7174f06eae40b7b2cfa8d39 100644 --- a/core/modules/media/src/Attribute/OEmbedMediaSource.php +++ b/core/modules/media/src/Attribute/OEmbedMediaSource.php @@ -80,7 +80,7 @@ public function __construct( public readonly ?string $thumbnail_alt_metadata_attribute = NULL, public readonly ?string $thumbnail_title_metadata_attribute = NULL, public readonly string $default_name_metadata_attribute = 'default_name', - public readonly ?string $deriver = NULL + public readonly ?string $deriver = NULL, ) {} } diff --git a/core/modules/migrate_drupal/src/Attribute/MigrateField.php b/core/modules/migrate_drupal/src/Attribute/MigrateField.php index ffb529e98000885922b5d6ad79953aa8021a74f0..ffc646b21222f4bf3504112cd8147ce1514a0fe3 100644 --- a/core/modules/migrate_drupal/src/Attribute/MigrateField.php +++ b/core/modules/migrate_drupal/src/Attribute/MigrateField.php @@ -68,7 +68,7 @@ public function __construct( public readonly array $type_map = [], public readonly ?string $source_module = NULL, public readonly ?string $destination_module = NULL, - public readonly ?string $deriver = NULL + public readonly ?string $deriver = NULL, ) {} } diff --git a/core/modules/navigation/src/Form/SettingsForm.php b/core/modules/navigation/src/Form/SettingsForm.php index e71941671b3658055db4276c640dc38299e2ebec..ce4f14a5148a3ba18b3f4b7f16852cbb8cc87476 100644 --- a/core/modules/navigation/src/Form/SettingsForm.php +++ b/core/modules/navigation/src/Form/SettingsForm.php @@ -74,7 +74,7 @@ public function __construct( FileSystemInterface $file_system, FileUrlGeneratorInterface $fileUrlGenerator, FileUsageInterface $fileUsage, - RendererInterface $renderer + RendererInterface $renderer, ) { parent::__construct($config_factory, $typed_config_manager); $this->fileSystem = $file_system; diff --git a/core/modules/search/src/Attribute/Search.php b/core/modules/search/src/Attribute/Search.php index efe805c76be92c3b622ef874fa366e8f82d124a6..72e9e64d9bed7cdeea0e59dec784d8eee577e6d1 100644 --- a/core/modules/search/src/Attribute/Search.php +++ b/core/modules/search/src/Attribute/Search.php @@ -34,7 +34,7 @@ public function __construct( public readonly string $id, public readonly ?TranslatableMarkup $title = NULL, public readonly bool $use_admin_theme = FALSE, - public readonly ?string $deriver = NULL + public readonly ?string $deriver = NULL, ) {} } diff --git a/core/modules/system/src/Controller/BatchController.php b/core/modules/system/src/Controller/BatchController.php index 7041d36427bb557763732a7d133d6f39cdc7b978..c66317c50a828ee66103bafce9aa13af0cbf591f 100644 --- a/core/modules/system/src/Controller/BatchController.php +++ b/core/modules/system/src/Controller/BatchController.php @@ -22,7 +22,7 @@ class BatchController implements ContainerInjectionInterface { */ public function __construct( protected string $root, - protected BatchStorageInterface $batchStorage + protected BatchStorageInterface $batchStorage, ) { require_once $this->root . '/core/includes/batch.inc'; } diff --git a/core/modules/system/src/EventSubscriber/SecurityFileUploadEventSubscriber.php b/core/modules/system/src/EventSubscriber/SecurityFileUploadEventSubscriber.php index 8dfcd24d6cde996085e6100d7eb9adffa329e4da..f7736c9ee44587edf664ddf0237599a93fb90fe6 100644 --- a/core/modules/system/src/EventSubscriber/SecurityFileUploadEventSubscriber.php +++ b/core/modules/system/src/EventSubscriber/SecurityFileUploadEventSubscriber.php @@ -21,7 +21,7 @@ class SecurityFileUploadEventSubscriber implements EventSubscriberInterface { * The config factory. */ public function __construct( - protected ConfigFactoryInterface $configFactory + protected ConfigFactoryInterface $configFactory, ) {} /** diff --git a/core/modules/system/src/Form/DevelopmentSettingsForm.php b/core/modules/system/src/Form/DevelopmentSettingsForm.php index efa6ec332003cf78497cf7f925b98cc95351e7c9..c5b893b2bd1b572cca384890fc161d06e94134a8 100644 --- a/core/modules/system/src/Form/DevelopmentSettingsForm.php +++ b/core/modules/system/src/Form/DevelopmentSettingsForm.php @@ -25,7 +25,7 @@ class DevelopmentSettingsForm extends FormBase { */ public function __construct( protected KeyValueFactoryInterface $keyValueFactory, - protected DrupalKernelInterface $kernel + protected DrupalKernelInterface $kernel, ) { } diff --git a/core/modules/system/src/Form/MenuLinksetSettingsForm.php b/core/modules/system/src/Form/MenuLinksetSettingsForm.php index 4353a27572d62ec2286c84fc569659baf7ac2117..febffeff8f7fc8f4e689169f8bf44573d5b11df8 100644 --- a/core/modules/system/src/Form/MenuLinksetSettingsForm.php +++ b/core/modules/system/src/Form/MenuLinksetSettingsForm.php @@ -27,7 +27,7 @@ class MenuLinksetSettingsForm extends ConfigFormBase { public function __construct( ConfigFactoryInterface $config_factory, TypedConfigManagerInterface $typedConfigManager, - protected readonly RouteBuilderInterface $routerBuilder + protected readonly RouteBuilderInterface $routerBuilder, ) { parent::__construct($config_factory, $typedConfigManager); } diff --git a/core/modules/system/src/ModuleAdminLinksHelper.php b/core/modules/system/src/ModuleAdminLinksHelper.php index 27310cf107a836a30a84681b40ae29a177c7e2eb..fdce3fb30dc193b46f5f072edfa123024eca6ab3 100644 --- a/core/modules/system/src/ModuleAdminLinksHelper.php +++ b/core/modules/system/src/ModuleAdminLinksHelper.php @@ -28,7 +28,7 @@ class ModuleAdminLinksHelper { */ public function __construct( protected MenuLinkTreeInterface $menuLinkTree, - protected MemoryCacheInterface $memoryCache + protected MemoryCacheInterface $memoryCache, ) {} /** diff --git a/core/modules/system/src/Routing/AssetRoutes.php b/core/modules/system/src/Routing/AssetRoutes.php index ac0424b6fefc041017e7683d1041a089f252758a..908ef5d8efe0a183b595894ca9dff2432f62ecdb 100644 --- a/core/modules/system/src/Routing/AssetRoutes.php +++ b/core/modules/system/src/Routing/AssetRoutes.php @@ -19,7 +19,7 @@ class AssetRoutes implements ContainerInjectionInterface { * The stream wrapper manager service. */ public function __construct( - protected readonly StreamWrapperManagerInterface $streamWrapperManager + protected readonly StreamWrapperManagerInterface $streamWrapperManager, ) {} /** diff --git a/core/modules/system/tests/modules/plugin_test/src/Plugin/Attribute/PluginExample.php b/core/modules/system/tests/modules/plugin_test/src/Plugin/Attribute/PluginExample.php index af916bb90dba9cd301ecc333351a4652c9f47134..6e35a8b34a24fcfa2f1a93cc07c5956d22927301 100644 --- a/core/modules/system/tests/modules/plugin_test/src/Plugin/Attribute/PluginExample.php +++ b/core/modules/system/tests/modules/plugin_test/src/Plugin/Attribute/PluginExample.php @@ -20,7 +20,7 @@ class PluginExample extends Plugin { */ public function __construct( public readonly string $id, - public readonly ?string $custom = NULL + public readonly ?string $custom = NULL, ) {} } diff --git a/core/modules/taxonomy/src/VocabularyListBuilder.php b/core/modules/taxonomy/src/VocabularyListBuilder.php index ec1dffc3543a2064682ed5824adacc5be4114964..4f957e0538ae6563c722476030d0413fb742a7c1 100644 --- a/core/modules/taxonomy/src/VocabularyListBuilder.php +++ b/core/modules/taxonomy/src/VocabularyListBuilder.php @@ -67,11 +67,13 @@ class VocabularyListBuilder extends DraggableListBuilder { * @param \Drupal\Core\Messenger\MessengerInterface $messenger * The messenger. */ - public function __construct(EntityTypeInterface $entity_type, - AccountInterface $current_user, - EntityTypeManagerInterface $entity_type_manager, - RendererInterface $renderer = NULL, - MessengerInterface $messenger) { + public function __construct( + EntityTypeInterface $entity_type, + AccountInterface $current_user, + EntityTypeManagerInterface $entity_type_manager, + RendererInterface $renderer = NULL, + MessengerInterface $messenger, + ) { parent::__construct($entity_type, $entity_type_manager->getStorage($entity_type->id())); $this->currentUser = $current_user; diff --git a/core/modules/toolbar/src/Controller/ToolbarController.php b/core/modules/toolbar/src/Controller/ToolbarController.php index ed1a7a3aabfd6e4b2e7035a3f0348cfe282bb635..d3ab0e108191ccfc3963d46a5d97d409bfbd71d6 100644 --- a/core/modules/toolbar/src/Controller/ToolbarController.php +++ b/core/modules/toolbar/src/Controller/ToolbarController.php @@ -24,7 +24,7 @@ class ToolbarController extends ControllerBase implements TrustedCallbackInterfa * The time service. */ public function __construct( - protected TimeInterface $time + protected ?TimeInterface $time = NULL, ) { } diff --git a/core/modules/user/src/ModulePermissionsLinkHelper.php b/core/modules/user/src/ModulePermissionsLinkHelper.php index 4a0d5fbeb40d1c74bb57361438c10e42e3d1a906..5232c2cf8b35f16f3f559707ba82e6532cd4afa7 100644 --- a/core/modules/user/src/ModulePermissionsLinkHelper.php +++ b/core/modules/user/src/ModulePermissionsLinkHelper.php @@ -29,7 +29,7 @@ class ModulePermissionsLinkHelper { public function __construct( protected PermissionHandlerInterface $permissionHandler, protected AccessManagerInterface $accessManager, - protected ModuleExtensionList $moduleExtensionList + protected ModuleExtensionList $moduleExtensionList, ) {} /** diff --git a/core/modules/user/src/RoleListBuilder.php b/core/modules/user/src/RoleListBuilder.php index d864a550d02b09313abb353fbbf010da7d84ebc4..24e81e5c1c6a38d1b9ba2095fb392e6659c8a8f7 100644 --- a/core/modules/user/src/RoleListBuilder.php +++ b/core/modules/user/src/RoleListBuilder.php @@ -34,9 +34,11 @@ class RoleListBuilder extends DraggableListBuilder { * @param \Drupal\Core\Messenger\MessengerInterface $messenger * The messenger. */ - public function __construct(EntityTypeInterface $entityType, - EntityStorageInterface $storage, - MessengerInterface $messenger) { + public function __construct( + EntityTypeInterface $entityType, + EntityStorageInterface $storage, + MessengerInterface $messenger, + ) { parent::__construct($entityType, $storage); $this->messenger = $messenger; } diff --git a/core/modules/views/src/Attribute/ViewsAccess.php b/core/modules/views/src/Attribute/ViewsAccess.php index 63be65abcaa74cefcff99eec2ff7fcc9411d9d95..c2f722e06421687e9cad528701ea3ede5beb84a8 100644 --- a/core/modules/views/src/Attribute/ViewsAccess.php +++ b/core/modules/views/src/Attribute/ViewsAccess.php @@ -48,7 +48,7 @@ public function __construct( public readonly ?array $display_types = NULL, public readonly array $base = [], public readonly bool $no_ui = FALSE, - public readonly ?string $deriver = NULL + public readonly ?string $deriver = NULL, ) {} } diff --git a/core/modules/views/src/Attribute/ViewsArgumentDefault.php b/core/modules/views/src/Attribute/ViewsArgumentDefault.php index 71195ab8b2477dd2c118036314c11eacb3dd2575..6d46f31a196ef557d931340479b5bfcd807d9dc4 100644 --- a/core/modules/views/src/Attribute/ViewsArgumentDefault.php +++ b/core/modules/views/src/Attribute/ViewsArgumentDefault.php @@ -37,7 +37,7 @@ public function __construct( public readonly ?TranslatableMarkup $title = NULL, public readonly ?TranslatableMarkup $short_title = NULL, public readonly bool $no_ui = FALSE, - public readonly ?string $deriver = NULL + public readonly ?string $deriver = NULL, ) {} } diff --git a/core/modules/views/src/Attribute/ViewsArgumentValidator.php b/core/modules/views/src/Attribute/ViewsArgumentValidator.php index 9c78ecb87b145e9796b3fd2d5b249e5ae40fa123..ffad54fa8377c206b6f9a8a3f4a93bd5eceb63b1 100644 --- a/core/modules/views/src/Attribute/ViewsArgumentValidator.php +++ b/core/modules/views/src/Attribute/ViewsArgumentValidator.php @@ -41,7 +41,7 @@ public function __construct( public readonly ?TranslatableMarkup $short_title = NULL, public readonly ?string $entity_type = NULL, public readonly bool $no_ui = FALSE, - public readonly ?string $deriver = NULL + public readonly ?string $deriver = NULL, ) {} } diff --git a/core/modules/views/src/Attribute/ViewsCache.php b/core/modules/views/src/Attribute/ViewsCache.php index d40262c2abd1da36dfeba1cd50260bd7d64fe41f..13d4dad8a4f425f6aab1912cd0f56d572416bcd8 100644 --- a/core/modules/views/src/Attribute/ViewsCache.php +++ b/core/modules/views/src/Attribute/ViewsCache.php @@ -48,7 +48,7 @@ public function __construct( public readonly ?array $display_types = NULL, public readonly array $base = [], public readonly ?bool $no_ui = NULL, - public readonly ?string $deriver = NULL + public readonly ?string $deriver = NULL, ) {} } diff --git a/core/modules/views/src/Attribute/ViewsDisplay.php b/core/modules/views/src/Attribute/ViewsDisplay.php index 27e9cfe7caaa5abee50ab13176ee5dcbd89f06af..9bcf7952c93849d121ac9814014326057f7a30f3 100644 --- a/core/modules/views/src/Attribute/ViewsDisplay.php +++ b/core/modules/views/src/Attribute/ViewsDisplay.php @@ -83,7 +83,7 @@ public function __construct( public readonly bool $no_ui = FALSE, public readonly bool $register_theme = TRUE, public readonly bool $entity_reference_display = FALSE, - public readonly ?string $deriver = NULL + public readonly ?string $deriver = NULL, ) {} } diff --git a/core/modules/views/src/Attribute/ViewsDisplayExtender.php b/core/modules/views/src/Attribute/ViewsDisplayExtender.php index 88b693c9bad2af713085be1efb28f1451004db17..16265c675a3c11efee4fbb01aec3f93c1254cccd 100644 --- a/core/modules/views/src/Attribute/ViewsDisplayExtender.php +++ b/core/modules/views/src/Attribute/ViewsDisplayExtender.php @@ -39,7 +39,7 @@ public function __construct( public readonly ?TranslatableMarkup $short_title = NULL, public readonly ?TranslatableMarkup $help = NULL, public readonly bool $no_ui = FALSE, - public readonly ?string $deriver = NULL + public readonly ?string $deriver = NULL, ) {} } diff --git a/core/modules/views/src/Attribute/ViewsExposedForm.php b/core/modules/views/src/Attribute/ViewsExposedForm.php index 6f9be79da820ec45495df17a11b1080d611c3440..155ebf7f8150170d08fe18b9b226d43bf4d6d2e2 100644 --- a/core/modules/views/src/Attribute/ViewsExposedForm.php +++ b/core/modules/views/src/Attribute/ViewsExposedForm.php @@ -55,7 +55,7 @@ public function __construct( public readonly array $base = [], public readonly bool $no_ui = FALSE, public readonly bool $register_theme = TRUE, - public readonly ?string $deriver = NULL + public readonly ?string $deriver = NULL, ) {} } diff --git a/core/modules/views/src/Attribute/ViewsPager.php b/core/modules/views/src/Attribute/ViewsPager.php index 2a19944ced686b08e8d8a76429f73010e398de47..3384d1182257c6f60f10c1f43914db2cd23ab1d3 100644 --- a/core/modules/views/src/Attribute/ViewsPager.php +++ b/core/modules/views/src/Attribute/ViewsPager.php @@ -54,7 +54,7 @@ public function __construct( public readonly array $base = [], public readonly bool $no_ui = FALSE, public readonly bool $register_theme = TRUE, - public readonly ?string $deriver = NULL + public readonly ?string $deriver = NULL, ) {} } diff --git a/core/modules/views/src/Attribute/ViewsQuery.php b/core/modules/views/src/Attribute/ViewsQuery.php index c5c99fffc9065f72f8a62140749abaa8f8507a12..9f587fa127164cf635f8bf3a79fa886f32953050 100644 --- a/core/modules/views/src/Attribute/ViewsQuery.php +++ b/core/modules/views/src/Attribute/ViewsQuery.php @@ -41,7 +41,7 @@ public function __construct( public readonly ?TranslatableMarkup $short_title = NULL, public readonly ?TranslatableMarkup $help = NULL, public readonly bool $no_ui = FALSE, - public readonly ?string $deriver = NULL + public readonly ?string $deriver = NULL, ) {} } diff --git a/core/modules/views/src/Attribute/ViewsRow.php b/core/modules/views/src/Attribute/ViewsRow.php index 378188c6b23c97bdce2f9788dcaaae3e7b461c2d..794d02999f8389e4c4785f2c257c32a23a9d562c 100644 --- a/core/modules/views/src/Attribute/ViewsRow.php +++ b/core/modules/views/src/Attribute/ViewsRow.php @@ -57,7 +57,7 @@ public function __construct( public readonly ?string $theme = NULL, public readonly bool $no_ui = FALSE, public readonly bool $register_theme = TRUE, - public readonly ?string $deriver = NULL + public readonly ?string $deriver = NULL, ) {} } diff --git a/core/modules/views/src/Attribute/ViewsStyle.php b/core/modules/views/src/Attribute/ViewsStyle.php index 36f6f67079f5420cf01380ea92eacf5e68e3c8a1..dfd758c941ab4cb1b8f68b4fa8348f3db9ced6a6 100644 --- a/core/modules/views/src/Attribute/ViewsStyle.php +++ b/core/modules/views/src/Attribute/ViewsStyle.php @@ -56,7 +56,7 @@ public function __construct( public readonly array $base = [], public readonly bool $no_ui = FALSE, public readonly bool $register_theme = TRUE, - public readonly ?string $deriver = NULL + public readonly ?string $deriver = NULL, ) {} } diff --git a/core/modules/views/src/Attribute/ViewsWizard.php b/core/modules/views/src/Attribute/ViewsWizard.php index e5ef222bb07ba4c3e62d27121cfe5f21cd8d3bd8..485dd639173939ba9d4db2fbb004021e837734cb 100644 --- a/core/modules/views/src/Attribute/ViewsWizard.php +++ b/core/modules/views/src/Attribute/ViewsWizard.php @@ -33,7 +33,7 @@ public function __construct( public readonly string $id, public readonly TranslatableMarkup $title, public readonly ?string $base_table = NULL, - public readonly ?string $deriver = NULL + public readonly ?string $deriver = NULL, ) {} } diff --git a/core/modules/views/src/ViewsConfigUpdater.php b/core/modules/views/src/ViewsConfigUpdater.php index 5e80b06f8b0069aa6039c818fa378807c89f982d..da4280100c5d093dbc34ccf8dd3a05431c7874c4 100644 --- a/core/modules/views/src/ViewsConfigUpdater.php +++ b/core/modules/views/src/ViewsConfigUpdater.php @@ -84,7 +84,7 @@ public function __construct( EntityFieldManagerInterface $entity_field_manager, TypedConfigManagerInterface $typed_config_manager, ViewsData $views_data, - PluginManagerInterface $formatter_plugin_manager + PluginManagerInterface $formatter_plugin_manager, ) { $this->entityTypeManager = $entity_type_manager; $this->entityFieldManager = $entity_field_manager; diff --git a/core/modules/workspaces/src/Controller/WorkspacesHtmlEntityFormController.php b/core/modules/workspaces/src/Controller/WorkspacesHtmlEntityFormController.php index 281d9ae696785a48912768b6e2e410ddb10856e2..6f9d6d5b6563dac51618713fe2fe54c2bb1e736b 100644 --- a/core/modules/workspaces/src/Controller/WorkspacesHtmlEntityFormController.php +++ b/core/modules/workspaces/src/Controller/WorkspacesHtmlEntityFormController.php @@ -27,7 +27,7 @@ public function __construct( protected readonly FormController $entityFormController, protected readonly WorkspaceManagerInterface $workspaceManager, protected readonly WorkspaceInformationInterface $workspaceInfo, - protected readonly TypedDataManagerInterface $typedDataManager + protected readonly TypedDataManagerInterface $typedDataManager, ) {} /** diff --git a/core/modules/workspaces/src/EntityQuery/QueryFactory.php b/core/modules/workspaces/src/EntityQuery/QueryFactory.php index 0594fbc79acc5182c604e5a63f746d2a7349b2e8..c14347839b97e800709ec0910394f785c1521135 100644 --- a/core/modules/workspaces/src/EntityQuery/QueryFactory.php +++ b/core/modules/workspaces/src/EntityQuery/QueryFactory.php @@ -19,7 +19,7 @@ class QueryFactory extends BaseQueryFactory { public function __construct( Connection $connection, protected readonly WorkspaceManagerInterface $workspaceManager, - protected readonly WorkspaceInformationInterface $workspaceInfo + protected readonly WorkspaceInformationInterface $workspaceInfo, ) { $this->connection = $connection; $this->namespaces = QueryBase::getNamespaces($this); diff --git a/core/modules/workspaces/src/EntityTypeInfo.php b/core/modules/workspaces/src/EntityTypeInfo.php index f1c71408df759d07b2b42ff6aa4bcd5e59fa53e6..4bd7e0c426e9f8aa6d9a35818a7ebbfaf170c005 100644 --- a/core/modules/workspaces/src/EntityTypeInfo.php +++ b/core/modules/workspaces/src/EntityTypeInfo.php @@ -23,7 +23,7 @@ class EntityTypeInfo implements ContainerInjectionInterface { public function __construct( - protected readonly WorkspaceInformationInterface $workspaceInfo + protected readonly WorkspaceInformationInterface $workspaceInfo, ) { } diff --git a/core/modules/workspaces/src/Event/WorkspacePublishEvent.php b/core/modules/workspaces/src/Event/WorkspacePublishEvent.php index e1ca919aada474d0849ed08d0198532aae71d27a..a629d905d747826157573fba4ebf376a8f1bb0dd 100644 --- a/core/modules/workspaces/src/Event/WorkspacePublishEvent.php +++ b/core/modules/workspaces/src/Event/WorkspacePublishEvent.php @@ -36,7 +36,7 @@ abstract class WorkspacePublishEvent extends Event { */ public function __construct( protected readonly WorkspaceInterface $workspace, - array $published_revision_ids + array $published_revision_ids, ) { $this->publishedRevisionIds = $published_revision_ids; } diff --git a/core/modules/workspaces/src/Negotiator/SessionWorkspaceNegotiator.php b/core/modules/workspaces/src/Negotiator/SessionWorkspaceNegotiator.php index 8b2e0b9a3812d66cb38915d41821beade2cd8a7d..c312f9b3acde6e0f1d4b7e85038c1302985638c1 100644 --- a/core/modules/workspaces/src/Negotiator/SessionWorkspaceNegotiator.php +++ b/core/modules/workspaces/src/Negotiator/SessionWorkspaceNegotiator.php @@ -16,7 +16,7 @@ class SessionWorkspaceNegotiator implements WorkspaceNegotiatorInterface, Worksp public function __construct( protected readonly AccountInterface $currentUser, protected readonly Session $session, - protected readonly EntityTypeManagerInterface $entityTypeManager + protected readonly EntityTypeManagerInterface $entityTypeManager, ) {} /** diff --git a/core/modules/workspaces/src/WorkspaceInformation.php b/core/modules/workspaces/src/WorkspaceInformation.php index db4684e1880057e6b73da574e3337265472c5b81..66fffc39f18cc675ec81a23c079ad2bea3d7f3e0 100644 --- a/core/modules/workspaces/src/WorkspaceInformation.php +++ b/core/modules/workspaces/src/WorkspaceInformation.php @@ -29,7 +29,7 @@ class WorkspaceInformation implements WorkspaceInformationInterface { public function __construct( protected readonly EntityTypeManagerInterface $entityTypeManager, - protected readonly WorkspaceAssociationInterface $workspaceAssociation + protected readonly WorkspaceAssociationInterface $workspaceAssociation, ) {} /** diff --git a/core/modules/workspaces/src/WorkspacesMenuTreeStorage.php b/core/modules/workspaces/src/WorkspacesMenuTreeStorage.php index 98936855598042e0378e8ff50b77c843faf547ff..73a1424f6cf9745fd261fd0c3829cb2a27c4ab3c 100644 --- a/core/modules/workspaces/src/WorkspacesMenuTreeStorage.php +++ b/core/modules/workspaces/src/WorkspacesMenuTreeStorage.php @@ -44,7 +44,7 @@ public function __construct( CacheBackendInterface $menu_cache_backend, CacheTagsInvalidatorInterface $cache_tags_invalidator, string $table, - array $options = [] + array $options = [], ) { parent::__construct($connection, $menu_cache_backend, $cache_tags_invalidator, $table, $options); } diff --git a/core/phpcs.xml.dist b/core/phpcs.xml.dist index f64c4425784fc5a324002fdeeb1facd50bd319dd..a5d9f759ec4366cd53f7f619074d88f38c93f4c8 100644 --- a/core/phpcs.xml.dist +++ b/core/phpcs.xml.dist @@ -102,6 +102,7 @@ <rule ref="Drupal.Formatting.SpaceUnaryOperator"/> <rule ref="Drupal.Functions.DiscouragedFunctions"/> <rule ref="Drupal.Functions.FunctionDeclaration"/> + <rule ref="Drupal.Functions.MultiLineFunctionDeclaration"/> <rule ref="Drupal.InfoFiles.AutoAddedKeys"/> <rule ref="Drupal.InfoFiles.ClassFiles"/> <rule ref="Drupal.InfoFiles.DuplicateEntry"/> @@ -175,11 +176,6 @@ <rule ref="Generic.Formatting.DisallowMultipleStatements"/> <rule ref="Generic.Formatting.SpaceAfterCast"/> <rule ref="Generic.Functions.FunctionCallArgumentSpacing"/> - <rule ref="Generic.Functions.OpeningFunctionBraceKernighanRitchie"> - <properties> - <property name="checkClosures" value="true"/> - </properties> - </rule> <rule ref="Generic.NamingConventions.ConstructorName"/> <rule ref="Generic.NamingConventions.UpperCaseConstantName"/> <rule ref="Generic.PHP.DeprecatedFunctions"/> @@ -385,23 +381,6 @@ <rule ref="Squiz.Functions.FunctionDeclarationArgumentSpacing.NoSpaceBeforeArg"> <severity>0</severity> </rule> - <rule ref="Squiz.Functions.MultiLineFunctionDeclaration"/> - <rule ref="Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine"> - <severity>0</severity> - </rule> - <rule ref="Squiz.Functions.MultiLineFunctionDeclaration.CloseBracketLine"> - <severity>0</severity> - </rule> - <rule ref="Squiz.Functions.MultiLineFunctionDeclaration.ContentAfterBrace"> - <severity>0</severity> - </rule> - <!-- Standard yet to be finalized on this (https://www.drupal.org/node/1539712). --> - <rule ref="Squiz.Functions.MultiLineFunctionDeclaration.FirstParamSpacing"> - <severity>0</severity> - </rule> - <rule ref="Squiz.Functions.MultiLineFunctionDeclaration.Indent"> - <severity>0</severity> - </rule> <rule ref="Squiz.PHP.LowercasePHPFunctions"/> <rule ref="Squiz.PHP.NonExecutableCode"/> <rule ref="Squiz.Strings.ConcatenationSpacing"> diff --git a/core/tests/Drupal/Tests/Component/Plugin/Attribute/Fixtures/CustomPlugin.php b/core/tests/Drupal/Tests/Component/Plugin/Attribute/Fixtures/CustomPlugin.php index eb97303481783de44c9d406bb7789fb63e312a33..f908ae15d8203a35cad74cd8e58988ba2d20f3b2 100644 --- a/core/tests/Drupal/Tests/Component/Plugin/Attribute/Fixtures/CustomPlugin.php +++ b/core/tests/Drupal/Tests/Component/Plugin/Attribute/Fixtures/CustomPlugin.php @@ -22,7 +22,7 @@ class CustomPlugin extends Plugin { */ public function __construct( public readonly string $id, - public readonly string $title + public readonly string $title, ) {} } diff --git a/core/tests/Drupal/Tests/Core/Session/AccessPolicyProcessorTest.php b/core/tests/Drupal/Tests/Core/Session/AccessPolicyProcessorTest.php index 0e0113c5e50c7925a1d9c61dc44b6ce438d181e2..a3d0b64d2b56bef1a616361bfac84e2bbee00908 100644 --- a/core/tests/Drupal/Tests/Core/Session/AccessPolicyProcessorTest.php +++ b/core/tests/Drupal/Tests/Core/Session/AccessPolicyProcessorTest.php @@ -373,7 +373,7 @@ protected function setUpAccessPolicyProcessor( VariationCacheInterface $variation_cache_static = NULL, CacheBackendInterface $cache_static = NULL, AccountProxyInterface $current_user = NULL, - AccountSwitcherInterface $account_switcher = NULL + AccountSwitcherInterface $account_switcher = NULL, ) { // Prophecy does not accept a willReturn call on a mocked method if said // method has a return type of void. However, without willReturn() or any