Skip to content

Commit

Permalink
fix phpcs use statements should be sorted alphabetically - Issue #337…
Browse files Browse the repository at this point in the history
…3568 by nitin_lama, roshni27, aayushmankotia, Satish_kumar, wengerk
  • Loading branch information
WengerK committed Mar 1, 2024
1 parent 413e13a commit 48e8455
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 10 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
### Fixed
- fix usage of deprecated getMockBuilder by createMock
- fix phpcs use statements should be sorted alphabetically - Issue #3373568 by nitin_lama, roshni27, aayushmankotia, Satish_kumar, wengerk

### Added
- add Drupal GitlabCI
Expand Down
2 changes: 1 addition & 1 deletion src/Periodicity/MidnightResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace Drupal\timesup\Periodicity;

use Drupal\Core\Datetime\DrupalDateTime;
use Drupal\Component\Datetime\DateTimePlus;
use Drupal\Core\Datetime\DrupalDateTime;

/**
* The midnight resolver which only apply once by day at midnight.
Expand Down
4 changes: 2 additions & 2 deletions src/Periodicity/PeriodicityBaseResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

namespace Drupal\timesup\Periodicity;

use Drupal\Component\Datetime\TimeInterface;
use Drupal\Core\Cache\CacheTagsInvalidatorInterface;
use Drupal\Core\Logger\LoggerChannelFactoryInterface;
use Drupal\Core\State\StateInterface;
use Drupal\Component\Datetime\TimeInterface;
use Drupal\timesup\Resolver\PeriodicityResolverInterface;
use Drupal\Core\StringTranslation\StringTranslationTrait;
use Drupal\timesup\Resolver\PeriodicityResolverInterface;

/**
* Base class to run periodicity cache-tags invalidations.
Expand Down
2 changes: 1 addition & 1 deletion tests/src/Unit/Resolver/ChainPeriodicityResolverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace Drupal\Tests\timesup\Unit\Resolver;

use Drupal\timesup\Resolver\ChainPeriodicityResolver;
use Drupal\Core\DependencyInjection\ContainerBuilder;
use Drupal\Tests\UnitTestCase;
use Drupal\timesup\Resolver\ChainPeriodicityResolver;

/**
* @coversDefaultClass \Drupal\timesup\Resolver\ChainPeriodicityResolver
Expand Down
2 changes: 1 addition & 1 deletion tests/src/Unit/Resolver/DailyResolverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
use Drupal\Core\Logger\LoggerChannelInterface;
use Drupal\Core\State\StateInterface;
use Drupal\Tests\timesup\Traits\InvokeMethodTrait;
use Drupal\timesup\Periodicity\DailyResolver;
use Drupal\Tests\UnitTestCase;
use Drupal\timesup\Periodicity\DailyResolver;

/**
* @coversDefaultClass \Drupal\timesup\Periodicity\DailyResolver
Expand Down
2 changes: 1 addition & 1 deletion tests/src/Unit/Resolver/HourlyResolverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
use Drupal\Core\Logger\LoggerChannelInterface;
use Drupal\Core\State\StateInterface;
use Drupal\Tests\timesup\Traits\InvokeMethodTrait;
use Drupal\timesup\Periodicity\HourlyResolver;
use Drupal\Tests\UnitTestCase;
use Drupal\timesup\Periodicity\HourlyResolver;

/**
* @coversDefaultClass \Drupal\timesup\Periodicity\HourlyResolver
Expand Down
4 changes: 2 additions & 2 deletions tests/src/Unit/Resolver/MidnightResolverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

namespace Drupal\Tests\timesup\Unit\Resolver;

use Drupal\Component\Datetime\DateTimePlus;
use Drupal\Component\Datetime\TimeInterface;
use Drupal\Core\Cache\CacheTagsInvalidatorInterface;
use Drupal\Core\Logger\LoggerChannelFactoryInterface;
use Drupal\Core\Logger\LoggerChannelInterface;
use Drupal\Core\State\StateInterface;
use Drupal\Tests\timesup\Traits\InvokeMethodTrait;
use Drupal\timesup\Periodicity\MidnightResolver;
use Drupal\Tests\UnitTestCase;
use Drupal\Component\Datetime\DateTimePlus;
use Drupal\timesup\Periodicity\MidnightResolver;

/**
* @coversDefaultClass \Drupal\timesup\Periodicity\MidnightResolver
Expand Down
2 changes: 1 addition & 1 deletion tests/src/Unit/Resolver/MinutelyResolverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
use Drupal\Core\Logger\LoggerChannelInterface;
use Drupal\Core\State\StateInterface;
use Drupal\Tests\timesup\Traits\InvokeMethodTrait;
use Drupal\timesup\Periodicity\MinutelyResolver;
use Drupal\Tests\UnitTestCase;
use Drupal\timesup\Periodicity\MinutelyResolver;

/**
* @coversDefaultClass \Drupal\timesup\Periodicity\MinutelyResolver
Expand Down
2 changes: 1 addition & 1 deletion tests/src/Unit/Resolver/WeeklyResolverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
use Drupal\Core\Logger\LoggerChannelInterface;
use Drupal\Core\State\StateInterface;
use Drupal\Tests\timesup\Traits\InvokeMethodTrait;
use Drupal\timesup\Periodicity\WeeklyResolver;
use Drupal\Tests\UnitTestCase;
use Drupal\timesup\Periodicity\WeeklyResolver;

/**
* @coversDefaultClass \Drupal\timesup\Periodicity\WeeklyResolver
Expand Down

0 comments on commit 48e8455

Please sign in to comment.