Skip to content

Commit aaed01e

Browse files
authored
Use statement reorder and clean (#6495)
1 parent df75ec7 commit aaed01e

File tree

7 files changed

+6
-39
lines changed

7 files changed

+6
-39
lines changed

src/Commands/entity/EntitySaveCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44

55
namespace Drush\Commands\entity;
66

7-
use Drupal\Core\Entity\ContentEntityStorageInterface;
87
use Drupal\Component\Datetime\TimeInterface;
98
use Drupal\Component\Plugin\Exception\InvalidPluginDefinitionException;
109
use Drupal\Component\Plugin\Exception\PluginNotFoundException;
1110
use Drupal\content_moderation\ModerationInformationInterface;
1211
use Drupal\Core\Entity\ContentEntityInterface;
12+
use Drupal\Core\Entity\ContentEntityStorageInterface;
1313
use Drupal\Core\Entity\EntityChangedInterface;
1414
use Drupal\Core\Entity\EntityPublishedInterface;
1515
use Drupal\Core\Entity\EntityStorageException;

src/Commands/pm/ThemeInstallCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66

77
use Drupal\Core\Config\ConfigFactoryInterface;
88
use Drupal\Core\Extension\ModuleInstallerInterface;
9-
use Drupal\Core\Extension\ThemeInstallerInterface;
109
use Drupal\Core\Extension\ThemeExtensionList;
10+
use Drupal\Core\Extension\ThemeInstallerInterface;
1111
use Drush\Commands\AutowireTrait;
1212
use Drush\Exceptions\UserAbortException;
1313
use Drush\Style\DrushStyle;

src/Commands/sql/SqlSyncCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@
44

55
namespace Drush\Commands\sql;
66

7-
use Consolidation\SiteAlias\SiteAliasInterface;
8-
use Drush\Config\DrushConfig;
97
use Consolidation\SiteAlias\SiteAlias;
8+
use Consolidation\SiteAlias\SiteAliasInterface;
109
use Consolidation\SiteAlias\SiteAliasManagerInterface;
1110
use Drush\Attributes as CLI;
1211
use Drush\Boot\DrupalBootLevels;
1312
use Drush\Command\HelpLinks;
1413
use Drush\Commands\AutowireTrait;
1514
use Drush\Commands\core\RsyncCommands;
1615
use Drush\Commands\core\StatusCommand;
16+
use Drush\Config\DrushConfig;
1717
use Drush\Drush;
1818
use Drush\Exceptions\UserAbortException;
1919
use Drush\SiteAlias\ProcessManager;

src/Commands/watchdog/WatchdogDeleteCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
namespace Drush\Commands\watchdog;
66

7-
use Drupal\Core\Logger\RfcLogLevel;
87
use Drupal\Core\Database\Connection;
8+
use Drupal\Core\Logger\RfcLogLevel;
99
use Drush\Attributes as CLI;
1010
use Drush\Commands\AutowireTrait;
1111
use Drush\Exceptions\UserAbortException;

sut/drush/Commands/SimpleSutCommands.php

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,11 @@
22
namespace Drush\Commands;
33

44
use Consolidation\AnnotatedCommand\AnnotationData;
5-
use Consolidation\AnnotatedCommand\CommandData;
6-
use Consolidation\AnnotatedCommand\Events\CustomEventAwareInterface;
7-
use Consolidation\AnnotatedCommand\Events\CustomEventAwareTrait;
8-
use Drush\Log\SuccessInterface;
9-
use Consolidation\OutputFormatters\StructuredData\RowsOfFields;
105
use Drush\Drush;
11-
use Symfony\Component\Console\Input\ArgvInput;
6+
use Drush\Log\SuccessInterface;
127
use Symfony\Component\Console\Input\InputInterface;
138
use Symfony\Component\Console\Logger\ConsoleLogger;
149
use Symfony\Component\Console\Output\OutputInterface;
15-
use Symfony\Component\Console\Style\SymfonyStyle;
16-
use Drush\Commands\DrushCommands;
17-
18-
use Drush\Style\DrushStyle;
19-
use Drush\Utils\StringUtils;
2010

2111
/**
2212
* Site-wide commands for the System-Under-Test site
@@ -53,4 +43,3 @@ public function customLogger(InputInterface $argv, AnnotationData $annotationDat
5343
$drushLoggerManager->reset()->add('foo', $newLogger);
5444
}
5545
}
56-

sut/drush/Commands/custom/example-site-wide-command/NestedSutCommands.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,8 @@
11
<?php
22
namespace Drush\Commands\example_site_wide_command;
33

4-
use Consolidation\AnnotatedCommand\AnnotationData;
5-
use Consolidation\AnnotatedCommand\CommandData;
6-
use Consolidation\AnnotatedCommand\Events\CustomEventAwareInterface;
7-
use Consolidation\AnnotatedCommand\Events\CustomEventAwareTrait;
8-
use Consolidation\OutputFormatters\StructuredData\RowsOfFields;
9-
use Symfony\Component\Console\Input\InputInterface;
10-
use Symfony\Component\Console\Output\OutputInterface;
11-
use Symfony\Component\Console\Style\SymfonyStyle;
124
use Drush\Commands\DrushCommands;
135

14-
use Drush\Style\DrushStyle;
15-
use Drush\Utils\StringUtils;
16-
176
/**
187
* Site-wide commands for the System-Under-Test site
198
*/

sut/drush/Commands/custom/example-site-wide-command/src/NestedSrcSutCommands.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,8 @@
11
<?php
22
namespace Drush\Commands\example_site_wide_command;
33

4-
use Consolidation\AnnotatedCommand\AnnotationData;
5-
use Consolidation\AnnotatedCommand\CommandData;
6-
use Consolidation\AnnotatedCommand\Events\CustomEventAwareInterface;
7-
use Consolidation\AnnotatedCommand\Events\CustomEventAwareTrait;
8-
use Consolidation\OutputFormatters\StructuredData\RowsOfFields;
9-
use Symfony\Component\Console\Input\InputInterface;
10-
use Symfony\Component\Console\Output\OutputInterface;
11-
use Symfony\Component\Console\Style\SymfonyStyle;
124
use Drush\Commands\DrushCommands;
135

14-
use Drush\Style\DrushStyle;
15-
use Drush\Utils\StringUtils;
16-
176
/**
187
* Site-wide commands for the System-Under-Test site
198
*/

0 commit comments

Comments
 (0)