Skip to content

Commit

Permalink
fix phpcs use statements should be sorted alphabetically
Browse files Browse the repository at this point in the history
  • Loading branch information
WengerK committed Feb 21, 2024
1 parent a049d16 commit 37338b5
Show file tree
Hide file tree
Showing 10 changed files with 18 additions and 17 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- fix usage of dynamic properties on UiFieldTest
- fix Issue #3312077 - Route entity.template_whisperer.add_form does not exist - by LeoAlcci, christyanpaim, Bohus Ulrych, wengerk
- fix Issue #3312076 - The template_whisperer_suggestion entity type did not specify a view_builder handler - by immaculatexavier, Bohus Ulrych, wengerk
- fix phpcs use statements should be sorted alphabetically

### Added
- add coverage of Drupal 10.1.x
Expand Down
4 changes: 2 additions & 2 deletions inc/access.inc
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
* Contains hook to make sure manage Template Whisperer fields access.
*/

use Drupal\Core\Access\AccessResult;
// Use statements to support hook_entity_field_access.
use Drupal\Core\Field\FieldDefinitionInterface;
use Drupal\Core\Session\AccountInterface;
use Drupal\Core\Field\FieldItemListInterface;
use Drupal\Core\Access\AccessResult;
use Drupal\Core\Session\AccountInterface;

/**
* Implements hook_entity_field_access().
Expand Down
8 changes: 4 additions & 4 deletions src/Controller/AdminSuggestionController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

namespace Drupal\template_whisperer\Controller;

use Drupal\Core\Pager\PagerManagerInterface;
use Drupal\template_whisperer\Entity\TemplateWhispererSuggestionEntityInterface;
use Drupal\Core\Controller\ControllerBase;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\template_whisperer\TemplateWhispererSuggestionUsage;
use Drupal\Core\Pager\PagerManagerInterface;
use Drupal\Core\Routing\UrlGeneratorInterface;
use Drupal\template_whisperer\Entity\TemplateWhispererSuggestionEntityInterface;
use Drupal\template_whisperer\TemplateWhispererSuggestionUsage;
use Symfony\Component\DependencyInjection\ContainerInterface;

/**
* Listing of Template Whisperer suggestions.
Expand Down
2 changes: 1 addition & 1 deletion src/Entity/TemplateWhispererSuggestionEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Drupal\template_whisperer\Entity;

use Drupal\Core\Entity\EntityStorageInterface;
use Drupal\Core\Config\Entity\ConfigEntityBase;
use Drupal\Core\Entity\EntityStorageInterface;

/**
* Defines the Template Whisperer Suggestion entity.
Expand Down
2 changes: 1 addition & 1 deletion src/Form/TemplateWhispererSuggestionForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
namespace Drupal\template_whisperer\Form;

use Drupal\Core\Entity\EntityForm;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Drupal\Core\Form\FormStateInterface;
use Drupal\template_whisperer\TemplateWhispererManager;
use Symfony\Component\DependencyInjection\ContainerInterface;

/**
* Form controller for Template Whisperer forms.
Expand Down
2 changes: 1 addition & 1 deletion src/Plugin/Field/FieldType/TemplateWhispererFieldItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
namespace Drupal\template_whisperer\Plugin\Field\FieldType;

use Drupal\Core\Field\FieldItemBase;
use Drupal\Core\TypedData\DataDefinition;
use Drupal\Core\Field\FieldStorageDefinitionInterface;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\StringTranslation\TranslatableMarkup;
use Drupal\Core\TypedData\DataDefinition;

/**
* Plugin implementation of the 'template_whisperer' field type.
Expand Down
6 changes: 3 additions & 3 deletions src/Plugin/Field/FieldWidget/TemplateWhispererWidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

namespace Drupal\template_whisperer\Plugin\Field\FieldWidget;

use Drupal\Core\Field\FieldDefinitionInterface;
use Drupal\Core\Field\FieldItemListInterface;
use Drupal\Core\Field\WidgetBase;
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Field\FieldDefinitionInterface;
use Drupal\Core\Plugin\ContainerFactoryPluginInterface;
use Drupal\template_whisperer\TemplateWhispererManager;
use Symfony\Component\DependencyInjection\ContainerInterface;

/**
* Plugin implementation of the 'template_whisperer' widget.
Expand Down
6 changes: 3 additions & 3 deletions src/TemplateWhispererSuggestionListBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
namespace Drupal\template_whisperer;

use Drupal\Core\Config\Entity\ConfigEntityListBuilder;
use Drupal\Core\Entity\EntityTypeInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Entity\EntityStorageInterface;
use Drupal\Core\Entity\EntityTypeInterface;
use Drupal\Core\Routing\UrlGeneratorInterface;
use Drupal\Core\Entity\EntityInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;

/**
* Defines a class to build a listing of templates whisperer entities.
Expand Down
2 changes: 1 addition & 1 deletion src/TwigExtension/TwigExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

namespace Drupal\template_whisperer\TwigExtension;

use Twig\TwigFunction;
use Drupal\template_whisperer\TemplateWhispererManager;
use Drupal\template_whisperer\TemplateWhispererSuggestionUsage;
use Twig\Extension\AbstractExtension;
use Twig\TwigFunction;

/**
* Template Whisperer Twig extensions.
Expand Down
2 changes: 1 addition & 1 deletion tests/src/Kernel/FieldTemplateWhispererTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Drupal\Tests\template_whisperer\Kernel;

use Drupal\Core\Field\FieldItemListInterface;
use Drupal\Core\Field\FieldItemInterface;
use Drupal\Core\Field\FieldItemListInterface;
use Drupal\Tests\field\Kernel\FieldKernelTestBase;
use Drupal\Tests\user\Traits\UserCreationTrait;

Expand Down

0 comments on commit 37338b5

Please sign in to comment.