diff --git a/modules/ui_patterns_legacy/src/ComponentDiscovery.php b/modules/ui_patterns_legacy/src/ComponentDiscovery.php index b346f06a32a5b96a8736781198b126d9ba158c34..17f766443999d15b93e0412a9590b47beb822fb2 100644 --- a/modules/ui_patterns_legacy/src/ComponentDiscovery.php +++ b/modules/ui_patterns_legacy/src/ComponentDiscovery.php @@ -33,8 +33,8 @@ class ComponentDiscovery { public function __construct( protected ExtensionPathResolver $pathResolver, protected ModuleHandlerInterface $moduleHandler, - protected FileSystemInterface $filesystem - ) { + protected FileSystemInterface $filesystem, + ) { } /** diff --git a/modules/ui_patterns_legacy/src/Drush/Commands/UiPatternsLegacyCommands.php b/modules/ui_patterns_legacy/src/Drush/Commands/UiPatternsLegacyCommands.php index 170edfb073b2393309579d9c0036a8c08e0ea8fc..68d8be80a7c50ea0a44b75faf3b323fe1670ece1 100644 --- a/modules/ui_patterns_legacy/src/Drush/Commands/UiPatternsLegacyCommands.php +++ b/modules/ui_patterns_legacy/src/Drush/Commands/UiPatternsLegacyCommands.php @@ -23,7 +23,7 @@ final class UiPatternsLegacyCommands extends DrushCommands { private readonly ComponentConverter $converter, private readonly ComponentDiscovery $discovery, private readonly ComponentWriter $writer, - private readonly CachedDiscoveryInterface $componentsManager + private readonly CachedDiscoveryInterface $componentsManager, ) { parent::__construct(); } diff --git a/src/Element/ComponentForm.php b/src/Element/ComponentForm.php index bc391d1f84815b483fe4ab881c7fdf3eb2458a82..d0fb33479c44a74948acba4489c723fd2233c85c 100644 --- a/src/Element/ComponentForm.php +++ b/src/Element/ComponentForm.php @@ -130,7 +130,7 @@ class ComponentForm extends ComponentFormBase { private static function buildComponentForm( array $element, string $wrapper_id, - ?string $component_id + ?string $component_id, ): array { $form = [ '#type' => 'container', @@ -157,7 +157,7 @@ class ComponentForm extends ComponentFormBase { */ private static function buildComponentSelectorForm( ?string $wrapper_id, - ?string $selected_component_id + ?string $selected_component_id, ): array { $definition_groups = \Drupal::service("plugin.manager.sdc")->getGroupedDefinitions(); $options = []; @@ -192,7 +192,7 @@ class ComponentForm extends ComponentFormBase { */ private static function buildComponentVariantSelectorForm( array $element, - string|NULL $default_variant_id + string|NULL $default_variant_id, ): array { $component = self::getComponent($element); $definition = $component->getPluginDefinition(); @@ -250,7 +250,7 @@ class ComponentForm extends ComponentFormBase { */ public static function changeSelectorFormChangeAjax( array $form, - FormStateInterface $form_state + FormStateInterface $form_state, ) { $parents = $form_state->getTriggeringElement()['#array_parents']; $sub_form = NestedArray::getValue($form, array_slice($parents, 0, -1)); diff --git a/src/Form/ComponentSettingsFormBuilderTrait.php b/src/Form/ComponentSettingsFormBuilderTrait.php index 446c8aa783d4ff0ff709487a7a0b50fd4b2425ac..d7fecdc600c6d27306f6f6b93a8f7ba9a55c3cb4 100644 --- a/src/Form/ComponentSettingsFormBuilderTrait.php +++ b/src/Form/ComponentSettingsFormBuilderTrait.php @@ -37,7 +37,7 @@ trait ComponentSettingsFormBuilderTrait { protected function componentSettingsForm( array $form, FormStateInterface $form_state, - $source_contexts = [] + $source_contexts = [], ): array { return $this->buildComponentsForm($form_state, $source_contexts); } diff --git a/src/Plugin/UiPatterns/PropTypeAdapter/NamespacedAttributes.php b/src/Plugin/UiPatterns/PropTypeAdapter/NamespacedAttributes.php index 0e1b220f0ed1e5b373b6671ee4f49a759d6eb8b8..bf4b71ed2ec3add7c5aa0ac3c139a01cdf1cc1a6 100644 --- a/src/Plugin/UiPatterns/PropTypeAdapter/NamespacedAttributes.php +++ b/src/Plugin/UiPatterns/PropTypeAdapter/NamespacedAttributes.php @@ -13,7 +13,7 @@ use Drupal\ui_patterns\PropTypeAdapterPluginBase; * @PropTypeAdapter( * id = "ns_attributes", * label = @Translation("Attributes (PHP namespace)"), - * description = @Translation("SDC allows PHP namespaces as prop type."), + * description = @Translation("SDC allows PHP namespaces as JSON schema types."), * prop_type = "attributes", * schema = { * "type": { diff --git a/src/Plugin/UiPatterns/Source/MenuSource.php b/src/Plugin/UiPatterns/Source/MenuSource.php index 17c67e9ac3d45c72bc95494c1fd5720af2b9ec1c..83129b35eb58d3a0555c894ad6da0c91ef594b1f 100644 --- a/src/Plugin/UiPatterns/Source/MenuSource.php +++ b/src/Plugin/UiPatterns/Source/MenuSource.php @@ -59,7 +59,7 @@ class MenuSource extends SourcePluginBase { ContainerInterface $container, array $configuration, $plugin_id, - $plugin_definition + $plugin_definition, ) { $plugin = parent::create( $container, diff --git a/src/SourcePluginBase.php b/src/SourcePluginBase.php index 30ef38ae2baf4400f48b7b418e353b37ea9e826b..b093a5f6fa69dd604dc1cf3043874fcd44bf16d8 100644 --- a/src/SourcePluginBase.php +++ b/src/SourcePluginBase.php @@ -80,7 +80,7 @@ abstract class SourcePluginBase extends PluginBase implements ContainerInterface $container, array $configuration, $plugin_id, - $plugin_definition + $plugin_definition, ) { return new static( $configuration, @@ -97,7 +97,7 @@ abstract class SourcePluginBase extends PluginBase implements array $configuration, $plugin_id, $plugin_definition, - protected ContextRepositoryInterface $contextRepository + protected ContextRepositoryInterface $contextRepository, ) { parent::__construct($configuration, $plugin_id, $plugin_definition); $this->setConfiguration($configuration);