From 11efcab1440d96ff588d0bb7e7755280f8c381c6 Mon Sep 17 00:00:00 2001
From: jurgenhaas <juergen.haas@lakedrops.com>
Date: Mon, 13 Jan 2025 10:48:46 +0100
Subject: [PATCH] Issue #3499329 by jurgenhaas: Fix tests with PhpCS

---
 DevModulesCommands.php | 19 +++++++++++--------
 1 file changed, 11 insertions(+), 8 deletions(-)

diff --git a/DevModulesCommands.php b/DevModulesCommands.php
index 40614c7..fde76ea 100644
--- a/DevModulesCommands.php
+++ b/DevModulesCommands.php
@@ -7,7 +7,10 @@ use Drupal\Core\Extension\ExtensionNameLengthException;
 use Drupal\Core\Extension\MissingDependencyException;
 use Drupal\Core\Extension\ModuleHandlerInterface;
 use Drupal\Core\Extension\ModuleInstallerInterface;
-use Drush\Attributes as CLI;
+use Drush\Attributes\Argument;
+use Drush\Attributes\Command;
+use Drush\Attributes\Option;
+use Drush\Attributes\Usage;
 use Drush\Commands\DrushCommands;
 use Symfony\Component\DependencyInjection\ContainerInterface;
 
@@ -87,10 +90,10 @@ class DevModulesCommands extends DrushCommands {
    *
    * @throws \Exception
    */
-  #[CLI\Command(name: 'site:dev', aliases: ['dev-modules', 'dev'])]
-  #[CLI\Argument('flag', 'On or off, yes or no, True or False, 1 or 0.')]
-  #[CLI\Option('list', 'Only determine the list of modules and print that list to the console.')]
-  #[CLI\Usage(name: 'site:dev', description: 'Enable/disable all development modules at once.')]
+  #[Command(name: 'site:dev', aliases: ['dev-modules', 'dev'])]
+  #[Argument('flag', 'On or off, yes or no, True or False, 1 or 0.')]
+  #[Option('list', 'Only determine the list of modules and print that list to the console.')]
+  #[Usage(name: 'site:dev', description: 'Enable/disable all development modules at once.')]
   public function devMode(string $flag, array $options = ['list' => FALSE]): void {
     $list = $this
       ->setEnableMode($flag)
@@ -109,9 +112,9 @@ class DevModulesCommands extends DrushCommands {
    *
    * @throws \JsonException
    */
-  #[CLI\Command(name: 'site:init', aliases: ['init-site'])]
-  #[CLI\Argument('initFile', 'Filename with instructions.')]
-  #[CLI\Usage(name: 'site:init filename', description: 'Init site by following instructions in given file.')]
+  #[Command(name: 'site:init', aliases: ['init-site'])]
+  #[Argument('initFile', 'Filename with instructions.')]
+  #[Usage(name: 'site:init filename', description: 'Init site by following instructions in given file.')]
   public function initSite(string $initFile): void {
     $instructions = json_decode(file_get_contents($initFile), TRUE, 512, JSON_THROW_ON_ERROR);
     foreach ($instructions['config'] as $configName => $keys) {
-- 
GitLab