Skip to content

Commit

Permalink
Ecs fix
Browse files Browse the repository at this point in the history
  • Loading branch information
marekrzytki committed Jun 4, 2024
1 parent 6732c8b commit 2e75b48
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/Controller/Helper/FormErrorsFlashHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ final class FormErrorsFlashHelper implements FormErrorsFlashHelperInterface
{
public function __construct(
private RequestStack $requestStack,
private TranslatorInterface $translator
private TranslatorInterface $translator,
) {
}

Expand Down
2 changes: 1 addition & 1 deletion src/EventListener/ResourceDeleteSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ final class ResourceDeleteSubscriber implements EventSubscriberInterface
{
public function __construct(
private UrlGeneratorInterface $router,
private RequestStack $requestStack
private RequestStack $requestStack,
) {
}

Expand Down
2 changes: 1 addition & 1 deletion tests/Behat/Context/Api/BlockContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ final class BlockContext implements Context
{
public function __construct(
private ApiClientInterface $apiClient,
private ResponseCheckerInterface $responseChecker
private ResponseCheckerInterface $responseChecker,
) {
}

Expand Down
3 changes: 0 additions & 3 deletions tests/Behat/Context/Setup/MediaContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,9 @@
use Behat\Behat\Context\Context;
use BitBag\SyliusCmsPlugin\Entity\MediaInterface;
use BitBag\SyliusCmsPlugin\Repository\MediaRepositoryInterface;
use BitBag\SyliusCmsPlugin\Repository\SectionRepositoryInterface;
use BitBag\SyliusCmsPlugin\Resolver\MediaProviderResolverInterface;
use Doctrine\ORM\EntityManagerInterface;
use Sylius\Behat\Service\SharedStorageInterface;
use Sylius\Component\Core\Model\ChannelInterface;
use Sylius\Component\Core\Repository\ProductRepositoryInterface;
use Sylius\Component\Resource\Factory\FactoryInterface;
use Symfony\Component\HttpFoundation\File\UploadedFile;
use Tests\BitBag\SyliusCmsPlugin\Behat\Service\RandomStringGeneratorInterface;
Expand Down
2 changes: 1 addition & 1 deletion tests/Behat/Context/Transform/BlockContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ final class BlockContext implements Context
{
public function __construct(
private BlockRepositoryInterface $blockRepository,
private string $locale = 'en_US'
private string $locale = 'en_US',
) {
}

Expand Down
2 changes: 1 addition & 1 deletion tests/Behat/Context/Transform/PageContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ final class PageContext implements Context
{
public function __construct(
private PageRepositoryInterface $pageRepository,
private string $locale = 'en_US'
private string $locale = 'en_US',
) {
}

Expand Down
2 changes: 1 addition & 1 deletion tests/Behat/Context/Transform/SectionContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ final class SectionContext implements Context
{
public function __construct(
private SectionRepositoryInterface $sectionRepository,
private string $locale = 'en_US'
private string $locale = 'en_US',
) {
}

Expand Down
2 changes: 0 additions & 2 deletions tests/Behat/Context/Ui/Admin/MediaContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,10 @@
namespace Tests\BitBag\SyliusCmsPlugin\Behat\Context\Ui\Admin;

use Behat\Behat\Context\Context;
use BitBag\SyliusCmsPlugin\Repository\MediaRepositoryInterface;
use FriendsOfBehat\PageObjectExtension\Page\SymfonyPageInterface;
use Sylius\Behat\NotificationType;
use Sylius\Behat\Service\NotificationCheckerInterface;
use Sylius\Behat\Service\Resolver\CurrentPageResolverInterface;
use Sylius\Behat\Service\SharedStorageInterface;
use Tests\BitBag\SyliusCmsPlugin\Behat\Page\Admin\Media\CreatePageInterface;
use Tests\BitBag\SyliusCmsPlugin\Behat\Page\Admin\Media\IndexPageInterface;
use Tests\BitBag\SyliusCmsPlugin\Behat\Page\Admin\Media\UpdatePageInterface;
Expand Down
1 change: 0 additions & 1 deletion tests/Behat/Context/Ui/Shop/MediaContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
use Behat\Mink\Element\DocumentElement;
use Behat\MinkExtension\Context\RawMinkContext;
use BitBag\SyliusCmsPlugin\Repository\MediaRepositoryInterface;
use Tests\BitBag\SyliusCmsPlugin\Behat\Page\Shop\HomePageInterface;

class MediaContext extends RawMinkContext implements Context
{
Expand Down

0 comments on commit 2e75b48

Please sign in to comment.