diff --git a/fillpdf.install b/fillpdf.install index b009b5924517d411d3ba9b1e164953be7623e8d2..37d65662d0e80ac06f92e826fb17e257cce6d7ff 100644 --- a/fillpdf.install +++ b/fillpdf.install @@ -5,15 +5,15 @@ * Install functions for FillPDF. */ +use Drupal\Component\Render\FormattableMarkup; use Drupal\Core\Field\BaseFieldDefinition; +use Drupal\Core\Link; use Drupal\Core\StreamWrapper\StreamWrapperInterface; -use Drupal\Component\Render\FormattableMarkup; use Drupal\Core\StringTranslation\TranslatableMarkup; +use Drupal\Core\Url; use Drupal\fillpdf\Entity\FillPdfForm; use Drupal\fillpdf\Plugin\PdfBackend\PdftkPdfBackend; use Drupal\fillpdf\Service\FillPdfAdminFormHelper; -use Drupal\Core\Link; -use Drupal\Core\Url; /** * Implements hook_update_N(). diff --git a/fillpdf.module b/fillpdf.module index b0cd7e50d5fb1cf95050c8634ca22ffe7ad24604..30d9cf86d97b6b49419571447f6066097976d99d 100644 --- a/fillpdf.module +++ b/fillpdf.module @@ -5,8 +5,8 @@ * Allows mappings of PDFs to site content. */ -use Drupal\Core\Url; use Drupal\Core\Routing\RouteMatchInterface; +use Drupal\Core\Url; /** * Implements hook_help(). diff --git a/src/Entity/FillPdfFileContext.php b/src/Entity/FillPdfFileContext.php index eda8a02defe1b4e003435d0d588ca1e658e69ae6..dbb8b13d47ca6cc0902a69e44e9c912632b5e942 100644 --- a/src/Entity/FillPdfFileContext.php +++ b/src/Entity/FillPdfFileContext.php @@ -2,10 +2,10 @@ namespace Drupal\fillpdf\Entity; -use Drupal\Core\Entity\EntityStorageInterface; -use Drupal\Core\Field\BaseFieldDefinition; use Drupal\Core\Entity\ContentEntityBase; +use Drupal\Core\Entity\EntityStorageInterface; use Drupal\Core\Entity\EntityTypeInterface; +use Drupal\Core\Field\BaseFieldDefinition; use Drupal\fillpdf\FillPdfFileContextInterface; /** diff --git a/src/FillPdfAccessController.php b/src/FillPdfAccessController.php index a5ff1bddbf109daa69e353459d09444edbd8ad94..07769ecb6cc1fd06b77ba8210631ec3bbd000791 100644 --- a/src/FillPdfAccessController.php +++ b/src/FillPdfAccessController.php @@ -4,12 +4,12 @@ namespace Drupal\fillpdf; use Drupal\Core\Access\AccessResult; use Drupal\Core\DependencyInjection\ContainerInjectionInterface; -use Drupal\Core\StringTranslation\StringTranslationTrait; -use Symfony\Component\DependencyInjection\ContainerInterface; -use Symfony\Component\HttpFoundation\RequestStack; use Drupal\Core\Logger\LoggerChannelTrait; use Drupal\Core\Messenger\MessengerTrait; use Drupal\Core\Session\AccountInterface; +use Drupal\Core\StringTranslation\StringTranslationTrait; +use Symfony\Component\DependencyInjection\ContainerInterface; +use Symfony\Component\HttpFoundation\RequestStack; /** * Defines a custom access controller for the FillPDF generation route. diff --git a/src/FillPdfFileContextAccessControlHandler.php b/src/FillPdfFileContextAccessControlHandler.php index e91bece7e141440c48984f226a2998a10af62141..e21943c9118b871de915a839c82ce0466d76a2b2 100644 --- a/src/FillPdfFileContextAccessControlHandler.php +++ b/src/FillPdfFileContextAccessControlHandler.php @@ -2,12 +2,12 @@ namespace Drupal\fillpdf; +use Drupal\Core\Access\AccessResult; use Drupal\Core\Entity\EntityAccessControlHandler; use Drupal\Core\Entity\EntityHandlerInterface; use Drupal\Core\Entity\EntityInterface; use Drupal\Core\Entity\EntityTypeInterface; use Drupal\Core\Session\AccountInterface; -use Drupal\Core\Access\AccessResult; use Symfony\Component\DependencyInjection\ContainerInterface; /** diff --git a/src/FillPdfFormAccessControlHandler.php b/src/FillPdfFormAccessControlHandler.php index 36d849a2414c0e0d56a8d7124896b30cd783d4ba..daaa2adfa0e9be8afd2fb2ab4399af301c5318e9 100644 --- a/src/FillPdfFormAccessControlHandler.php +++ b/src/FillPdfFormAccessControlHandler.php @@ -2,10 +2,10 @@ namespace Drupal\fillpdf; +use Drupal\Core\Access\AccessResult; use Drupal\Core\Entity\EntityAccessControlHandler; use Drupal\Core\Entity\EntityInterface; use Drupal\Core\Session\AccountInterface; -use Drupal\Core\Access\AccessResult; /** * Access controller for the FillPDF form entity. diff --git a/src/Form/FillPdfOverviewForm.php b/src/Form/FillPdfOverviewForm.php index 5fa43b413edfb5a7552799ef628aa21867af4e87..c09d371bcf41faf3778f841da026c698ee8cd242 100644 --- a/src/Form/FillPdfOverviewForm.php +++ b/src/Form/FillPdfOverviewForm.php @@ -8,12 +8,12 @@ use Drupal\Core\Extension\ModuleHandlerInterface; use Drupal\Core\File\FileSystemInterface; use Drupal\Core\Form\FormBase; use Drupal\Core\Form\FormStateInterface; +use Drupal\Core\Link; use Drupal\Core\Url; -use Drupal\fillpdf\InputHelperInterface; use Drupal\fillpdf\Component\Utility\FillPdf; +use Drupal\fillpdf\InputHelperInterface; use Drupal\fillpdf\Plugin\PdfBackendManager; use Symfony\Component\DependencyInjection\ContainerInterface; -use Drupal\Core\Link; /** * FillPDF overview form. diff --git a/src/OutputHandler.php b/src/OutputHandler.php index 826fc86a7413791e551861c613342b18e5268923..60d22e7fea758747c4bcc511197d834fe7832964 100644 --- a/src/OutputHandler.php +++ b/src/OutputHandler.php @@ -2,13 +2,13 @@ namespace Drupal\fillpdf; +use Drupal\Core\File\FileSystemInterface; use Drupal\Core\StringTranslation\StringTranslationTrait; use Drupal\file\FileInterface; use Drupal\file\FileRepositoryInterface; use Drupal\fillpdf\Component\Utility\FillPdf; use Drupal\fillpdf\Entity\FillPdfFileContext; use Psr\Log\LoggerInterface; -use Drupal\Core\File\FileSystemInterface; /** * {@inheritdoc} diff --git a/src/Plugin/FillPdfActionPluginInterface.php b/src/Plugin/FillPdfActionPluginInterface.php index d6937022c9cbd638a6e5bb7ce11b84d4cbbfb42c..2c30cdde586c613ab0a965e5287c298e81e4a10a 100644 --- a/src/Plugin/FillPdfActionPluginInterface.php +++ b/src/Plugin/FillPdfActionPluginInterface.php @@ -4,8 +4,8 @@ namespace Drupal\fillpdf\Plugin; use Drupal\Component\Plugin\DependentPluginInterface; use Drupal\Component\Plugin\PluginInspectionInterface; -use Drupal\Core\Plugin\ContainerFactoryPluginInterface; use Drupal\Core\Executable\ExecutableInterface; +use Drupal\Core\Plugin\ContainerFactoryPluginInterface; /** * Defines an interface for FillPDF action plugins. diff --git a/src/Plugin/PdfBackend/LocalServerPdfBackend.php b/src/Plugin/PdfBackend/LocalServerPdfBackend.php index 3882c8488d9536da8a4f051751458b699503ff3c..764cdb88df0b050a54428eaa30aa3a17ee771ea5 100644 --- a/src/Plugin/PdfBackend/LocalServerPdfBackend.php +++ b/src/Plugin/PdfBackend/LocalServerPdfBackend.php @@ -2,8 +2,6 @@ namespace Drupal\fillpdf\Plugin\PdfBackend; -use function GuzzleHttp\json_encode; -use function GuzzleHttp\json_decode; use Drupal\Core\Plugin\ContainerFactoryPluginInterface; use Drupal\file\FileInterface; use Drupal\fillpdf\FieldMapping\ImageFieldMapping; @@ -12,6 +10,8 @@ use Drupal\fillpdf\Plugin\PdfBackendBase; use GuzzleHttp\Client; use GuzzleHttp\Exception\RequestException; use Symfony\Component\DependencyInjection\ContainerInterface; +use function GuzzleHttp\json_decode; +use function GuzzleHttp\json_encode; /** * LocalServer PdfBackend plugin. diff --git a/src/Service/FillPdfAdminFormHelper.php b/src/Service/FillPdfAdminFormHelper.php index 98c37ea23a95c06b7893fa6279f794c2a2264420..0736c6a3187bad0bc1e1dfb70a9ebb55580db2a1 100644 --- a/src/Service/FillPdfAdminFormHelper.php +++ b/src/Service/FillPdfAdminFormHelper.php @@ -2,14 +2,14 @@ namespace Drupal\fillpdf\Service; +use Drupal\Component\Render\FormattableMarkup; use Drupal\Core\Config\ConfigFactoryInterface; use Drupal\Core\Database\Connection; use Drupal\Core\Extension\ModuleHandlerInterface; use Drupal\Core\StreamWrapper\StreamWrapperInterface; use Drupal\Core\StreamWrapper\StreamWrapperManagerInterface; -use Drupal\fillpdf\FillPdfAdminFormHelperInterface; -use Drupal\Component\Render\FormattableMarkup; use Drupal\Core\StringTranslation\TranslatableMarkup; +use Drupal\fillpdf\FillPdfAdminFormHelperInterface; /** * Various helper methods used in FillPDF administrative forms. diff --git a/src/TokenResolver.php b/src/TokenResolver.php index 283accdd866a1050e138606c8f3387a2f246bc77..815384e50e48c77911a90a58a38ba5a5f31c931b 100644 --- a/src/TokenResolver.php +++ b/src/TokenResolver.php @@ -9,9 +9,9 @@ use Drupal\Core\Extension\ModuleHandlerInterface; use Drupal\Core\Render\BubbleableMetadata; use Drupal\Core\Utility\Token; use Drupal\file\Entity\File; -use Drupal\image\Plugin\Field\FieldType\ImageItem; use Drupal\fillpdf\FieldMapping\ImageFieldMapping; use Drupal\fillpdf\FieldMapping\TextFieldMapping; +use Drupal\image\Plugin\Field\FieldType\ImageItem; use Drupal\token\TokenEntityMapperInterface; /** diff --git a/tests/src/Functional/FillPdfFormDeleteFormTest.php b/tests/src/Functional/FillPdfFormDeleteFormTest.php index af2a9bf54ac3c41cebc725eb1c27853ced8807f7..14772c3e430154dc9dbd6f27f1d4de156beee98b 100644 --- a/tests/src/Functional/FillPdfFormDeleteFormTest.php +++ b/tests/src/Functional/FillPdfFormDeleteFormTest.php @@ -2,11 +2,11 @@ namespace Drupal\Tests\fillpdf\Functional; +use Drupal\Core\Url; use Drupal\fillpdf\Entity\FillPdfForm; use Drupal\fillpdf\Entity\FillPdfFormField; use Drupal\Tests\BrowserTestBase; use Drupal\Tests\fillpdf\Traits\TestFillPdfTrait; -use Drupal\Core\Url; /** * @coversDefaultClass \Drupal\fillpdf\Form\FillPdfFormDeleteForm diff --git a/tests/src/Functional/FillPdfFormDuplicateFormTest.php b/tests/src/Functional/FillPdfFormDuplicateFormTest.php index 98635316ebf3d975693036e4dfb45ec797f8bdf0..9f2a3a9c418b249823fc5c7785f1986adc9833a5 100644 --- a/tests/src/Functional/FillPdfFormDuplicateFormTest.php +++ b/tests/src/Functional/FillPdfFormDuplicateFormTest.php @@ -2,11 +2,11 @@ namespace Drupal\Tests\fillpdf\Functional; +use Drupal\Core\Url; use Drupal\fillpdf\Entity\FillPdfForm; use Drupal\fillpdf\Entity\FillPdfFormField; use Drupal\Tests\BrowserTestBase; use Drupal\Tests\fillpdf\Traits\TestFillPdfTrait; -use Drupal\Core\Url; /** * @coversDefaultClass \Drupal\fillpdf\Form\FillPdfFormDuplicateForm diff --git a/tests/src/Functional/FillPdfFormImportFormTest.php b/tests/src/Functional/FillPdfFormImportFormTest.php index cf6ebb5ecdb0041af93260503f26050efa744d54..2016f48c257469f147ce1c2d09d09c393bf0b231 100644 --- a/tests/src/Functional/FillPdfFormImportFormTest.php +++ b/tests/src/Functional/FillPdfFormImportFormTest.php @@ -2,9 +2,9 @@ namespace Drupal\Tests\fillpdf\Functional; +use Drupal\Core\Url; use Drupal\Tests\BrowserTestBase; use Drupal\Tests\fillpdf\Traits\TestFillPdfTrait; -use Drupal\Core\Url; /** * @coversDefaultClass \Drupal\fillpdf\Form\FillPdfFormImportForm diff --git a/tests/src/Functional/FillPdfOverviewFormTest.php b/tests/src/Functional/FillPdfOverviewFormTest.php index 570ff6a2826bd32b54f95038912650e7b9a09128..e360aa137ed4b55c0e5c8625c71bfdf3f33c0acf 100644 --- a/tests/src/Functional/FillPdfOverviewFormTest.php +++ b/tests/src/Functional/FillPdfOverviewFormTest.php @@ -2,10 +2,10 @@ namespace Drupal\Tests\fillpdf\Functional; -use Drupal\Tests\field\Traits\EntityReferenceTestTrait; +use Drupal\Core\Url; use Drupal\fillpdf\Entity\FillPdfForm; +use Drupal\Tests\field\Traits\EntityReferenceTestTrait; use Drupal\user\Entity\Role; -use Drupal\Core\Url; /** * @coversDefaultClass \Drupal\fillpdf\Form\FillPdfOverviewForm diff --git a/tests/src/Functional/FillPdfUploadTestBase.php b/tests/src/Functional/FillPdfUploadTestBase.php index 8ef5e7f735aad077d2cba8c6dfb3b7a9d2af1f8e..71ecf3c6de594055ba96e9730c967f823b6f5ec6 100644 --- a/tests/src/Functional/FillPdfUploadTestBase.php +++ b/tests/src/Functional/FillPdfUploadTestBase.php @@ -2,9 +2,9 @@ namespace Drupal\Tests\fillpdf\Functional; +use Drupal\Component\Render\FormattableMarkup; use Drupal\file\Entity\File; use Drupal\fillpdf\Component\Utility\FillPdf; -use Drupal\Component\Render\FormattableMarkup; use Drupal\fillpdf\FillPdfFormInterface; /** diff --git a/tests/src/Functional/PdfParseTest.php b/tests/src/Functional/PdfParseTest.php index f20fb9026a8593615426c9b4fd7901d481c90f9f..4e0a4cbb0d088a5665a001d9f39bbe4a6a019ed9 100644 --- a/tests/src/Functional/PdfParseTest.php +++ b/tests/src/Functional/PdfParseTest.php @@ -2,8 +2,8 @@ namespace Drupal\Tests\fillpdf\Functional; -use Drupal\Core\Url; use Drupal\Core\Config\Config; +use Drupal\Core\Url; use Drupal\file\Entity\File; use Drupal\fillpdf\Component\Utility\FillPdf; use Drupal\fillpdf\Entity\FillPdfForm; diff --git a/tests/src/Functional/UninstallTest.php b/tests/src/Functional/UninstallTest.php index 70380d6b0262259c4997c2a4af571464f0bf9798..856904283ae6f3e646af1f05904e2257b394cf22 100644 --- a/tests/src/Functional/UninstallTest.php +++ b/tests/src/Functional/UninstallTest.php @@ -2,9 +2,9 @@ namespace Drupal\Tests\fillpdf\Functional; +use Drupal\Core\Url; use Drupal\Tests\BrowserTestBase; use Drupal\Tests\fillpdf\Traits\TestFillPdfTrait; -use Drupal\Core\Url; /** * Tests uninstalling the module.