Skip to content

Commit

Permalink
fix phpcs alphabeticaly use order
Browse files Browse the repository at this point in the history
  • Loading branch information
WengerK committed Apr 9, 2024
1 parent 746b7d7 commit 814341e
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ services:
restart: always

db:
image: mariadb:10.3.7
image: mariadb:10.3.8
environment:
MYSQL_USER: drupal
MYSQL_PASSWORD: drupal
Expand Down
2 changes: 1 addition & 1 deletion inc/hooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
* Legacy Drupal 7 code to implements hooks.
*/

use Drupal\Core\StringTranslation\TranslatableMarkup;
use Drupal\backerymails\Entity\BackerymailsEntity;
use Drupal\Core\StringTranslation\TranslatableMarkup;

/**
* Alter Drupal standard mail sender to trace the submission(s).
Expand Down
2 changes: 1 addition & 1 deletion src/BackerymailsEntityAccessControlHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

namespace Drupal\backerymails;

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 Backerymails entity entity.
Expand Down
2 changes: 1 addition & 1 deletion src/Entity/BackerymailsEntity.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

namespace Drupal\backerymails\Entity;

use Drupal\Core\Field\BaseFieldDefinition;
use Drupal\Core\Entity\ContentEntityBase;
use Drupal\Core\Entity\EntityChangedTrait;
use Drupal\Core\Entity\EntityTypeInterface;
use Drupal\Core\Field\BaseFieldDefinition;

/**
* Defines the Backerymails entity entity.
Expand Down
4 changes: 2 additions & 2 deletions src/Form/ClearForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

namespace Drupal\backerymails\Form;

use Drupal\Core\Entity\EntityTypeManagerInterface;
use Drupal\Core\Form\ConfirmFormBase;
use Drupal\Core\Url;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Url;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Drupal\Core\Entity\EntityTypeManagerInterface;

/**
* Provides a form for clearing all the maillog entries.
Expand Down
2 changes: 1 addition & 1 deletion tests/src/Kernel/ReroutingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Drupal\Tests\backerymails\Kernel;

use Drupal\KernelTests\KernelTestBase;
use Drupal\Core\Test\AssertMailTrait;
use Drupal\KernelTests\KernelTestBase;

/**
* @covers ::backerymails_mail_alter
Expand Down
9 changes: 7 additions & 2 deletions tests/src/Kernel/StorageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Drupal\Tests\backerymails\Kernel;

use Drupal\KernelTests\KernelTestBase;
use Drupal\Core\Test\AssertMailTrait;
use Drupal\KernelTests\KernelTestBase;

/**
* @covers ::backerymails_mail_alter
Expand Down Expand Up @@ -92,8 +92,13 @@ public function testSendingShouldStore() {

$this->assertIsString($email->getCreatedTime());
$this->assertNotEmpty($email->getCreatedTime());
$this->assertIsString($email->getChangedTime());
$this->assertNotEmpty($email->getChangedTime());

if (version_compare(\Drupal::VERSION, '10.0', '<=')) {
$this->assertIsString($email->getChangedTime());
} else {

Check failure on line 99 in tests/src/Kernel/StorageTest.php

View workflow job for this annotation

GitHub Actions / phpcs

Expected newline after closing brace
$this->assertIsInt($email->getChangedTime());
}
}

/**
Expand Down

0 comments on commit 814341e

Please sign in to comment.