Skip to content

Commit

Permalink
alphabetise use statements
Browse files Browse the repository at this point in the history
used phpcbf --standard=Drupal,DrupalPractice
  • Loading branch information
JojoVes committed May 10, 2024
1 parent c7f609e commit 876c4c3
Show file tree
Hide file tree
Showing 32 changed files with 70 additions and 87 deletions.
2 changes: 1 addition & 1 deletion modules/devel/src/Plugin/migrate/process/Ddm.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Drupal\dgi_migrate_devel\Plugin\migrate\process;

use Drupal\migrate\ProcessPluginBase;
use Drupal\migrate\MigrateExecutableInterface;
use Drupal\migrate\ProcessPluginBase;
use Drupal\migrate\Row;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

use Drupal\Component\Utility\NestedArray;
use Drupal\Core\Cache\CacheableMetadata;
use Drupal\Core\Config\ConfigFactoryOverrideInterface;
use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\Core\Config\ConfigFactoryOverrideInterface;
use Drupal\Core\Config\StorageInterface;

/**
Expand Down
3 changes: 1 addition & 2 deletions modules/dgi_migrate_dspace/src/Commands/DspaceCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@

namespace Drupal\dgi_migrate_dspace\Commands;

use Drupal\migrate\Plugin\MigrationPluginManagerInterface;

use Drupal\Core\Entity\EntityStorageInterface;
use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\migrate\Plugin\MigrationPluginManagerInterface;
use Drush\Commands\DrushCommands;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@

namespace Drupal\dgi_migrate_foxml_standard_mods_xslt\Controller;

use Drupal\dgi_migrate_foxml_standard_mods_xslt\Form\Settings;

use Drupal\Core\Access\AccessResult;
use Drupal\Core\Cache\CacheableResponse;
use Drupal\Core\Config\Config;
use Drupal\Core\DependencyInjection\ContainerInjectionInterface;
use Drupal\Core\Session\AccountInterface;

use Drupal\dgi_migrate_foxml_standard_mods_xslt\Form\Settings;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\HttpFoundation\IpUtils;
use Symfony\Component\HttpFoundation\Request;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@

namespace Drupal\dgi_migrate_foxml_standard_mods_xslt\EventSubscriber;

use Drupal\dgi_migrate_foxml_standard_mods_xslt\Form\Settings;
use Drupal\migrate\Plugin\MigrationPluginManagerInterface;

use Drupal\Component\Plugin\Discovery\CachedDiscoveryInterface;
use Drupal\Core\Config\ConfigCrudEvent;
use Drupal\Core\Config\ConfigEvents;

use Drupal\dgi_migrate_foxml_standard_mods_xslt\Form\Settings;
use Drupal\migrate\Plugin\MigrationPluginManagerInterface;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@

namespace Drupal\dgi_migrate_foxml_standard_mods_xslt\Plugin\migrate\process;

use Drupal\dgi_saxon_helper_migrate\Plugin\migrate\process\Saxon;
use Drupal\dgi_saxon_helper\TransformerInterface;

use Drupal\Core\Url;
use Drupal\dgi_saxon_helper\TransformerInterface;
use Drupal\dgi_saxon_helper_migrate\Plugin\migrate\process\Saxon;

/**
* Wrapper to help perform _our_ transformation.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Drupal\dgi_migrate_foxml_standard_mods\Plugin\migrate\process;

use Drupal\migrate\ProcessPluginBase;
use Drupal\migrate\MigrateExecutableInterface;
use Drupal\migrate\ProcessPluginBase;
use Drupal\migrate\Row;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,14 @@

namespace Drupal\dgi_migrate_foxml_standard_mods\Plugin\migrate\process;

use Drupal\Component\Utility\Unicode;
use Drupal\migrate\MigrateExecutableInterface;
use Drupal\migrate\MigrateSkipRowException;
use Drupal\migrate\Plugin\MigrationInterface;
use Drupal\migrate\ProcessPluginBase;
use Drupal\migrate\Row;
use Drupal\paragraphs\Entity\Paragraph;

use Drupal\Component\Utility\Unicode;

/**
* Generate a Title paragraph.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@
namespace Drupal\Tests\dgi_migrate_foxml_standard_mods\Kernel;

use Drupal\KernelTests\KernelTestBase;
use Symfony\Component\Yaml\Yaml;

use Drupal\migrate\MigrateExecutable;
use Drupal\migrate\Row;
use Symfony\Component\Yaml\Yaml;

/**
* Test out the role mapper.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@

namespace Drupal\Tests\dgi_migrate_foxml_standard_mods\Unit;

use Drupal\Tests\UnitTestCase;

use Drupal\dgi_migrate_foxml_standard_mods\Plugin\migrate\process\TypedRelation;
use Drupal\Tests\UnitTestCase;

/**
* Test out the role mapper.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,16 @@

namespace Drupal\dgi_migrate_imagemagick_cleanup\EventSubscriber;

use Drupal\dgi_migrate_imagemagick_cleanup\Event\TempImageEvent;
use Drupal\migrate\Event\MigrateEvents;
use Drupal\migrate\Event\MigratePreRowSaveEvent;
use Drupal\migrate\Event\MigratePostRowSaveEvent;
use Drupal\imagemagick\Event\ImagemagickExecutionEvent;
use Drupal\imagemagick\ImagemagickExecArguments;

use Drupal\Core\DestructableInterface;
use Drupal\Core\File\FileSystemInterface;
use Drupal\Core\File\Exception\FileException;
use Drupal\Core\File\FileSystemInterface;
use Drupal\Core\StreamWrapper\StreamWrapperManagerInterface;

use Drupal\dgi_migrate_imagemagick_cleanup\Event\TempImageEvent;
use Drupal\imagemagick\Event\ImagemagickExecutionEvent;
use Drupal\imagemagick\ImagemagickExecArguments;
use Drupal\migrate\Event\MigrateEvents;
use Drupal\migrate\Event\MigratePostRowSaveEvent;
use Drupal\migrate\Event\MigratePreRowSaveEvent;
use Psr\Log\LoggerInterface;
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

namespace Drupal\dgi_migrate_regenerate_pathauto_aliases\Commands;

use Drupal\Core\Entity\EntityTypeBundleInfoInterface;
use Drupal\pathauto\PathautoGeneratorInterface;
use Drush\Commands\DrushCommands;
use Drupal\Core\DependencyInjection\DependencySerializationTrait;
use Drupal\Core\StringTranslation\StringTranslationTrait;
use Drupal\Core\Entity\EntityTypeBundleInfoInterface;
use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\Core\StringTranslation\StringTranslationTrait;
use Drupal\pathauto\PathautoGeneratorInterface;
use Drupal\pathauto\PathautoState;
use Drush\Commands\DrushCommands;
use Psr\Log\LoggerInterface;

/**
Expand Down
15 changes: 7 additions & 8 deletions src/MigrateBatchExecutable.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,22 @@

namespace Drupal\dgi_migrate;

use Drupal\Component\Utility\Timer;
use Drupal\Core\DependencyInjection\DependencySerializationTrait;
use Drupal\Core\Queue\QueueInterface;
use Drupal\migrate\MigrateException;
use Drupal\migrate_tools\IdMapFilter;
use Drupal\migrate_tools\MigrateExecutable;
use Drupal\migrate\Event\MigrateEvents;
use Drupal\migrate\Event\MigrateImportEvent;
use Drupal\migrate\Event\MigratePostRowSaveEvent;
use Drupal\migrate\Event\MigratePreRowSaveEvent;
use Drupal\migrate\Exception\RequirementsException;
use Drupal\migrate\Plugin\MigrateIdMapInterface;
use Drupal\migrate\Plugin\MigrationInterface;
use Drupal\migrate\MigrateException;
use Drupal\migrate\MigrateMessageInterface;
use Drupal\migrate\MigrateSkipRowException;
use Drupal\migrate\Plugin\MigrateIdMapInterface;
use Drupal\migrate\Plugin\MigrationInterface;
use Drupal\migrate\Row;

use Drupal\Core\DependencyInjection\DependencySerializationTrait;
use Drupal\Component\Utility\Timer;
use Drupal\migrate_tools\IdMapFilter;
use Drupal\migrate_tools\MigrateExecutable;

/**
* Migration executable to run as fully queued batch.
Expand Down
6 changes: 2 additions & 4 deletions src/Plugin/migrate/process/AbstractEntityAccessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@

namespace Drupal\dgi_migrate\Plugin\migrate\process;

use Drupal\migrate\EntityFieldDefinitionTrait;
use Drupal\migrate\ProcessPluginBase;

use Drupal\Core\Entity\EntityStorageInterface;
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;

use Drupal\migrate\EntityFieldDefinitionTrait;
use Drupal\migrate\ProcessPluginBase;
use Symfony\Component\DependencyInjection\ContainerInterface;

/**
Expand Down
4 changes: 2 additions & 2 deletions src/Plugin/migrate/process/AssembleDate.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Drupal\dgi_migrate\Plugin\migrate\process;

use Drupal\migrate\ProcessPluginBase;
use Drupal\migrate\MigrateExecutableInterface;
use Drupal\migrate\MigrateException;
use Drupal\migrate\MigrateExecutableInterface;
use Drupal\migrate\ProcessPluginBase;
use Drupal\migrate\Row;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Plugin/migrate/process/CrossDeepen.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Drupal\dgi_migrate\Plugin\migrate\process;

use Drupal\migrate\ProcessPluginBase;
use Drupal\migrate\MigrateException;
use Drupal\migrate\MigrateExecutableInterface;
use Drupal\migrate\ProcessPluginBase;
use Drupal\migrate\Row;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Plugin/migrate/process/DcName.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Drupal\dgi_migrate\Plugin\migrate\process;

use Drupal\migrate\ProcessPluginBase;
use Drupal\migrate\MigrateExecutableInterface;
use Drupal\migrate\ProcessPluginBase;
use Drupal\migrate\Row;

/**
Expand Down
8 changes: 4 additions & 4 deletions src/Plugin/migrate/process/DetermineExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

namespace Drupal\dgi_migrate\Plugin\migrate\process;

use Symfony\Component\Mime\MimeTypes;
use Drupal\migrate\ProcessPluginBase;
use Drupal\migrate\MigrateExecutableInterface;
use Drupal\migrate\Row;
use Drupal\migrate\MigrateException;
use Drupal\migrate\MigrateExecutableInterface;
use Drupal\migrate\Plugin\MigrationInterface;
use Drupal\migrate\ProcessPluginBase;
use Drupal\migrate\Row;
use Symfony\Component\Mime\MimeTypes;

/**
* Determine a file extension from a MIME-type.
Expand Down
4 changes: 2 additions & 2 deletions src/Plugin/migrate/process/Method.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

namespace Drupal\dgi_migrate\Plugin\migrate\process;

use Drupal\migrate\ProcessPluginBase;
use Drupal\migrate\MigrateException;
use Drupal\migrate\MigrateExecutableInterface;
use Drupal\migrate\ProcessPluginBase;
use Drupal\migrate\Row;
use Drupal\migrate\MigrateException;

/**
* Call a method on an object.
Expand Down
8 changes: 4 additions & 4 deletions src/Plugin/migrate/process/NaiveFileCopy.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@

namespace Drupal\dgi_migrate\Plugin\migrate\process;

use Drupal\migrate\Plugin\migrate\process\FileCopy;
use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\Core\File\Exception\FileException;
use Drupal\Core\File\FileSystemInterface;
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
use Drupal\Core\StreamWrapper\StreamWrapperManagerInterface;
use Drupal\migrate\MigrateException;
use Drupal\migrate\MigrateExecutableInterface;
use Drupal\migrate\Plugin\migrate\process\FileCopy;
use Drupal\migrate\Plugin\MigrateProcessInterface;
use Drupal\migrate\Row;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\Core\StreamWrapper\StreamWrapperManagerInterface;
use Drupal\migrate\Plugin\MigrateProcessInterface;

/**
* Naive file_copy implementation.
Expand Down
8 changes: 4 additions & 4 deletions src/Plugin/migrate/process/Realpath.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

namespace Drupal\dgi_migrate\Plugin\migrate\process;

use Drupal\migrate\ProcessPluginBase;
use Drupal\Core\File\FileSystemInterface;
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
use Drupal\migrate\MigrateException;
use Drupal\migrate\MigrateExecutableInterface;
use Drupal\migrate\ProcessPluginBase;
use Drupal\migrate\Row;
use Drupal\migrate\MigrateException;
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Drupal\Core\File\FileSystemInterface;

/**
* Wrapper for FileSystem::realpath.
Expand Down
2 changes: 1 addition & 1 deletion src/Plugin/migrate/process/StaticMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
use Drupal\migrate\MigrateExecutableInterface;
use Drupal\migrate\MigrateSkipProcessException;
use Drupal\migrate\MigrateSkipRowException;
use Drupal\migrate\Plugin\MigrationInterface;
use Drupal\migrate\Plugin\migrate\process\StaticMap as Upstream;
use Drupal\migrate\Plugin\MigrationInterface;
use Drupal\migrate\Row;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Plugin/migrate/process/SubProcess.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Drupal\dgi_migrate\Plugin\migrate\process;

use Drupal\migrate\ProcessPluginBase;
use Drupal\migrate\MigrateExecutableInterface;
use Drupal\migrate\MigrateSkipRowException;
use Drupal\migrate\ProcessPluginBase;
use Drupal\migrate\Row;

/**
Expand Down
4 changes: 2 additions & 2 deletions src/Plugin/migrate/process/Subindex.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

namespace Drupal\dgi_migrate\Plugin\migrate\process;

use Drupal\migrate\ProcessPluginBase;
use Drupal\migrate\MigrateException;
use Drupal\migrate\MigrateExecutableInterface;
use Drupal\migrate\ProcessPluginBase;
use Drupal\migrate\Row;
use Drupal\migrate\MigrateException;

/**
* Accesses a property from an object.
Expand Down
4 changes: 2 additions & 2 deletions src/Plugin/migrate/process/Subproperty.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

namespace Drupal\dgi_migrate\Plugin\migrate\process;

use Drupal\migrate\ProcessPluginBase;
use Drupal\migrate\MigrateException;
use Drupal\migrate\MigrateExecutableInterface;
use Drupal\migrate\ProcessPluginBase;
use Drupal\migrate\Row;
use Drupal\migrate\MigrateException;

/**
* Accesses a property from an object.
Expand Down
6 changes: 2 additions & 4 deletions src/Plugin/migrate/process/TypedRelation.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,10 @@

namespace Drupal\dgi_migrate\Plugin\migrate\process;

use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
use Drupal\migrate\MigrateException;
use Drupal\migrate\MigrateExecutableInterface;
use Drupal\migrate\Row;
use Drupal\migrate\MigrateException;

use Drupal\Core\Plugin\ContainerFactoryPluginInterface;

use Symfony\Component\DependencyInjection\ContainerInterface;

/**
Expand Down
4 changes: 2 additions & 2 deletions src/Plugin/migrate/process/UnpackArray.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

namespace Drupal\dgi_migrate\Plugin\migrate\process;

use Drupal\migrate\ProcessPluginBase;
use Drupal\migrate\MigrateException;
use Drupal\migrate\MigrateExecutableInterface;
use Drupal\migrate\ProcessPluginBase;
use Drupal\migrate\Row;
use Drupal\migrate\MigrateException;

/**
* Unpack an array.
Expand Down
Loading

0 comments on commit 876c4c3

Please sign in to comment.