diff --git a/src/Controller/Action/Admin/ImportDataAction.php b/src/Controller/Action/Admin/ImportDataAction.php index 704d32eac..d07601f03 100644 --- a/src/Controller/Action/Admin/ImportDataAction.php +++ b/src/Controller/Action/Admin/ImportDataAction.php @@ -51,7 +51,7 @@ public function __construct( FormErrorsFlashHelperInterface $formErrorsFlashHelper, TranslatorInterface $translator, Environment $twig, - ) { + ) { $this->importProcessor = $importProcessor; $this->formFactory = $formFactory; $this->requestStack = $requestStack; diff --git a/src/Controller/Action/Admin/ProductSearchAction.php b/src/Controller/Action/Admin/ProductSearchAction.php index 0711eb890..2181040c9 100644 --- a/src/Controller/Action/Admin/ProductSearchAction.php +++ b/src/Controller/Action/Admin/ProductSearchAction.php @@ -32,7 +32,7 @@ public function __construct( ProductRepositoryInterface $productRepository, LocaleContextInterface $localeContext, ViewHandler $viewHandler, - ) { + ) { $this->productRepository = $productRepository; $this->localeContext = $localeContext; $this->viewHandler = $viewHandler; diff --git a/src/Controller/Action/Admin/TaxonSearchAction.php b/src/Controller/Action/Admin/TaxonSearchAction.php index eeefdd9c8..a6a2fd36e 100644 --- a/src/Controller/Action/Admin/TaxonSearchAction.php +++ b/src/Controller/Action/Admin/TaxonSearchAction.php @@ -32,7 +32,7 @@ public function __construct( TaxonRepositoryInterface $taxonRepository, LocaleContextInterface $localeContext, ViewHandler $viewHandler, - ) { + ) { $this->taxonRepository = $taxonRepository; $this->localeContext = $localeContext; $this->viewHandler = $viewHandler; diff --git a/src/Controller/Action/Admin/UploadEditorImageAction.php b/src/Controller/Action/Admin/UploadEditorImageAction.php index 198a81490..610398341 100644 --- a/src/Controller/Action/Admin/UploadEditorImageAction.php +++ b/src/Controller/Action/Admin/UploadEditorImageAction.php @@ -36,7 +36,7 @@ public function __construct( MediaProviderResolverInterface $mediaProviderResolver, MediaRepositoryInterface $mediaRepository, FactoryInterface $mediaFactory, - ) { + ) { $this->mediaProviderResolver = $mediaProviderResolver; $this->mediaRepository = $mediaRepository; $this->mediaFactory = $mediaFactory; diff --git a/src/Fixture/Factory/BlockFixtureFactory.php b/src/Fixture/Factory/BlockFixtureFactory.php index 7c8115877..5b71860c5 100755 --- a/src/Fixture/Factory/BlockFixtureFactory.php +++ b/src/Fixture/Factory/BlockFixtureFactory.php @@ -36,7 +36,7 @@ public function __construct( private TaxonsAssignerInterface $taxonsAssigner, private SectionsAssignerInterface $sectionsAssigner, private ChannelsAssignerInterface $channelAssigner, - ) { + ) { } public function load(array $data): void diff --git a/src/Fixture/Factory/FrequentlyAskedQuestionFixtureFactory.php b/src/Fixture/Factory/FrequentlyAskedQuestionFixtureFactory.php index 1dd5edfa3..082fe5170 100755 --- a/src/Fixture/Factory/FrequentlyAskedQuestionFixtureFactory.php +++ b/src/Fixture/Factory/FrequentlyAskedQuestionFixtureFactory.php @@ -23,7 +23,7 @@ public function __construct( private FactoryInterface $frequentlyAskedQuestionTranslationFactory, private FrequentlyAskedQuestionRepositoryInterface $frequentlyAskedQuestionRepository, private ChannelsAssignerInterface $channelAssigner, - ) { + ) { } public function load(array $data): void @@ -52,7 +52,7 @@ private function createFrequentlyAskedQuestion( string $code, array $frequentlyAskedQuestionData, int $position, - ): void { + ): void { /** @var FrequentlyAskedQuestionInterface $frequentlyAskedQuestion */ $frequentlyAskedQuestion = $this->frequentlyAskedQuestionFactory->createNew(); diff --git a/src/Fixture/Factory/MediaFixtureFactory.php b/src/Fixture/Factory/MediaFixtureFactory.php index 153c44c0f..81e1214c0 100644 --- a/src/Fixture/Factory/MediaFixtureFactory.php +++ b/src/Fixture/Factory/MediaFixtureFactory.php @@ -30,7 +30,7 @@ public function __construct( private ProductsAssignerInterface $productsAssigner, private SectionsAssignerInterface $sectionsAssigner, private ChannelsAssignerInterface $channelAssigner, - ) { + ) { } public function load(array $data): void diff --git a/src/Fixture/Factory/PageFixtureFactory.php b/src/Fixture/Factory/PageFixtureFactory.php index 3a6827fd3..c7c125cd0 100755 --- a/src/Fixture/Factory/PageFixtureFactory.php +++ b/src/Fixture/Factory/PageFixtureFactory.php @@ -42,7 +42,7 @@ public function __construct( private ProductRepositoryInterface $productRepository, private LocaleContextInterface $localeContext, private ChannelRepositoryInterface $channelRepository, - ) { + ) { } public function load(array $data): void @@ -71,7 +71,7 @@ private function createPage( string $code, array $pageData, bool $generateSlug = false, - ): void { + ): void { /** @var PageInterface $page */ $page = $this->pageFactory->createNew(); $products = $pageData['products']; @@ -124,7 +124,7 @@ private function resolveProductsForChannels( PageInterface $page, int $limit, array $channelCodes, - ): void { + ): void { foreach ($channelCodes as $channelCode) { /** @var ChannelInterface|null $channel */ $channel = $this->channelRepository->findOneByCode($channelCode); @@ -138,7 +138,7 @@ private function resolveProductsForChannel( PageInterface $page, int $limit, ChannelInterface $channel, - ): void { + ): void { $products = $this->productRepository->findLatestByChannel( $channel, $this->localeContext->getLocaleCode(), diff --git a/src/Fixture/Factory/SectionFixtureFactory.php b/src/Fixture/Factory/SectionFixtureFactory.php index 32ccd2d06..4465b4631 100755 --- a/src/Fixture/Factory/SectionFixtureFactory.php +++ b/src/Fixture/Factory/SectionFixtureFactory.php @@ -21,7 +21,7 @@ public function __construct( private FactoryInterface $sectionFactory, private FactoryInterface $sectionTranslationFactory, private SectionRepositoryInterface $sectionRepository, - ) { + ) { } public function load(array $data): void diff --git a/src/Form/Type/MediaAutocompleteChoiceType.php b/src/Form/Type/MediaAutocompleteChoiceType.php index 951688e39..49c28e018 100644 --- a/src/Form/Type/MediaAutocompleteChoiceType.php +++ b/src/Form/Type/MediaAutocompleteChoiceType.php @@ -40,7 +40,7 @@ public function buildView( FormView $view, FormInterface $form, array $options, - ): void { + ): void { $view->vars['remote_criteria_type'] = 'contains'; $view->vars['remote_criteria_name'] = 'phrase'; $view->vars['media_type'] = $options['media_type']; diff --git a/src/Form/Type/MediaType.php b/src/Form/Type/MediaType.php index 7671a17d9..83524b12d 100644 --- a/src/Form/Type/MediaType.php +++ b/src/Form/Type/MediaType.php @@ -30,7 +30,7 @@ public function __construct( string $dataClass, array $validationGroups = [], array $providers = [], - ) { + ) { parent::__construct($dataClass, $validationGroups); $this->providers = $providers; diff --git a/src/Form/Type/SectionAutocompleteChoiceType.php b/src/Form/Type/SectionAutocompleteChoiceType.php index ec57d6918..9b4928619 100755 --- a/src/Form/Type/SectionAutocompleteChoiceType.php +++ b/src/Form/Type/SectionAutocompleteChoiceType.php @@ -31,7 +31,7 @@ public function buildView( FormView $view, FormInterface $form, array $options, - ): void { + ): void { $view->vars['remote_criteria_type'] = 'contains'; $view->vars['remote_criteria_name'] = 'phrase'; } diff --git a/src/Importer/AbstractImporter.php b/src/Importer/AbstractImporter.php index 52147a013..042767f2d 100755 --- a/src/Importer/AbstractImporter.php +++ b/src/Importer/AbstractImporter.php @@ -36,7 +36,7 @@ protected function getTranslatableColumnValue( string $column, $locale, array $row, - ) { + ) { $column = str_replace('__locale__', '_' . $locale, $column); if (array_key_exists($column, $row)) { diff --git a/src/Importer/BlockImporter.php b/src/Importer/BlockImporter.php index d0e941366..c4cc09613 100644 --- a/src/Importer/BlockImporter.php +++ b/src/Importer/BlockImporter.php @@ -30,7 +30,7 @@ public function __construct( private ImporterProductsResolverInterface $importerProductsResolver, ValidatorInterface $validator, private BlockRepositoryInterface $blockRepository, - ) { + ) { parent::__construct($validator); } diff --git a/src/Importer/MediaImporter.php b/src/Importer/MediaImporter.php index e5e602d65..d70848c8b 100644 --- a/src/Importer/MediaImporter.php +++ b/src/Importer/MediaImporter.php @@ -28,7 +28,7 @@ public function __construct( private ImporterProductsResolverInterface $importerProductsResolver, ValidatorInterface $validator, private MediaRepositoryInterface $mediaRepository, - ) { + ) { parent::__construct($validator); } diff --git a/src/Importer/PageImporter.php b/src/Importer/PageImporter.php index bcb24b48c..531b03e39 100644 --- a/src/Importer/PageImporter.php +++ b/src/Importer/PageImporter.php @@ -39,7 +39,7 @@ public function __construct( private ImporterProductsResolverInterface $importerProductsResolver, ValidatorInterface $validator, private EntityManagerInterface $entityManager, - ) { + ) { parent::__construct($validator); } @@ -94,7 +94,7 @@ private function resolveImage( string $url, string $locale, string $imageCode, - ): void { + ): void { $downloadedImage = $this->imageDownloader->download($url); /** @var MediaInterface $image */ diff --git a/src/MediaProvider/GenericProvider.php b/src/MediaProvider/GenericProvider.php index 465b0368e..1b111cdcd 100755 --- a/src/MediaProvider/GenericProvider.php +++ b/src/MediaProvider/GenericProvider.php @@ -21,7 +21,7 @@ public function __construct( private Environment $twigEngine, private string $template, private string $pathPrefix, - ) { + ) { } public function getTemplate(): string @@ -33,7 +33,7 @@ public function render( MediaInterface $media, ?string $template = null, array $options = [], - ): string { + ): string { return $this->twigEngine->render($template ?? $this->template, array_merge(['media' => $media], $options)); } diff --git a/src/MediaProvider/ProviderInterface.php b/src/MediaProvider/ProviderInterface.php index a793fbf09..7c46af390 100644 --- a/src/MediaProvider/ProviderInterface.php +++ b/src/MediaProvider/ProviderInterface.php @@ -20,7 +20,7 @@ public function render( MediaInterface $media, ?string $template = null, array $options = [], - ): string; + ): string; public function upload(MediaInterface $media): void; } diff --git a/src/Processor/ImportProcessor.php b/src/Processor/ImportProcessor.php index 2b32379a9..1f660b78b 100644 --- a/src/Processor/ImportProcessor.php +++ b/src/Processor/ImportProcessor.php @@ -21,7 +21,7 @@ public function __construct( private ImporterChainInterface $importerChain, private ReaderInterface $reader, private EntityManagerInterface $entityManager, - ) { + ) { } public function process(string $resourceCode, string $filePath): void diff --git a/src/Repository/BlockRepository.php b/src/Repository/BlockRepository.php index 143e8066f..5a36615eb 100755 --- a/src/Repository/BlockRepository.php +++ b/src/Repository/BlockRepository.php @@ -43,7 +43,7 @@ public function findBySectionCode( string $sectionCode, string $localeCode, string $channelCode, - ): array { + ): array { return $this->createQueryBuilder('o') ->leftJoin('o.translations', 'translation') ->innerJoin('o.sections', 'section') @@ -64,7 +64,7 @@ public function findByProductCode( string $productCode, string $localeCode, string $channelCode, - ): array { + ): array { return $this->createQueryBuilder('o') ->leftJoin('o.translations', 'translation') ->innerJoin('o.products', 'product') diff --git a/src/Repository/BlockRepositoryInterface.php b/src/Repository/BlockRepositoryInterface.php index 53bb70c68..0488b33ef 100755 --- a/src/Repository/BlockRepositoryInterface.php +++ b/src/Repository/BlockRepositoryInterface.php @@ -24,11 +24,11 @@ public function findBySectionCode( string $sectionCode, string $localeCode, string $channelCode, - ): array; + ): array; public function findByProductCode( string $productCode, string $localeCode, string $channelCode, - ): array; + ): array; } diff --git a/src/Repository/MediaRepository.php b/src/Repository/MediaRepository.php index e469d8844..e0f28fdbe 100755 --- a/src/Repository/MediaRepository.php +++ b/src/Repository/MediaRepository.php @@ -28,7 +28,7 @@ public function findOneEnabledByCode( string $code, string $localeCode, string $channelCode, - ): ?MediaInterface { + ): ?MediaInterface { return $this->createQueryBuilder('o') ->leftJoin('o.translations', 'translation') ->innerJoin('o.channels', 'channels') @@ -48,7 +48,7 @@ public function findBySectionCode( string $sectionCode, string $localeCode, string $channelCode, - ): array { + ): array { return $this->createQueryBuilder('o') ->leftJoin('o.translations', 'translation') ->innerJoin('o.sections', 'section') @@ -69,7 +69,7 @@ public function findByProductCode( string $productCode, string $localeCode, string $channelCode, - ): array { + ): array { return $this->createQueryBuilder('o') ->leftJoin('o.translations', 'translation') ->innerJoin('o.products', 'product') diff --git a/src/Repository/MediaRepositoryInterface.php b/src/Repository/MediaRepositoryInterface.php index 17505e3cf..27b6ae943 100755 --- a/src/Repository/MediaRepositoryInterface.php +++ b/src/Repository/MediaRepositoryInterface.php @@ -22,17 +22,17 @@ public function findOneEnabledByCode( string $code, string $localeCode, string $channelCode, - ): ?MediaInterface; + ): ?MediaInterface; public function findBySectionCode( string $sectionCode, string $localeCode, string $channelCode, - ): array; + ): array; public function findByProductCode( string $productCode, string $localeCode, string $channelCode, - ): array; + ): array; } diff --git a/src/Repository/PageRepository.php b/src/Repository/PageRepository.php index ebfa26e1a..94fd2d201 100755 --- a/src/Repository/PageRepository.php +++ b/src/Repository/PageRepository.php @@ -57,7 +57,7 @@ public function findOneEnabledBySlugAndChannelCode( string $slug, ?string $localeCode, string $channelCode, - ): ?PageInterface { + ): ?PageInterface { return $this->createQueryBuilder('o') ->leftJoin('o.translations', 'translation') ->innerJoin('o.channels', 'channels') @@ -105,7 +105,7 @@ public function findByProduct( ProductInterface $product, string $channelCode, ?\DateTimeInterface $date = null, - ): array { + ): array { $qb = $this->createQueryBuilder('o') ->innerJoin('o.products', 'product') ->innerJoin('o.channels', 'channel') @@ -131,7 +131,7 @@ public function findByProductAndSectionCode( string $sectionCode, string $channelCode, ?\DateTimeInterface $date = null, - ): array { + ): array { $qb = $this->createQueryBuilder('o') ->innerJoin('o.products', 'product') ->innerJoin('o.sections', 'section') diff --git a/src/Repository/PageRepositoryInterface.php b/src/Repository/PageRepositoryInterface.php index afa541021..36f81bb65 100755 --- a/src/Repository/PageRepositoryInterface.php +++ b/src/Repository/PageRepositoryInterface.php @@ -27,7 +27,7 @@ public function findOneEnabledBySlugAndChannelCode( string $slug, ?string $localeCode, string $channelCode, - ): ?PageInterface; + ): ?PageInterface; public function createShopListQueryBuilder(string $sectionCode, string $channelCode): QueryBuilder; @@ -37,12 +37,12 @@ public function findByProduct( ProductInterface $product, string $channelCode, ?\DateTimeInterface $date, - ): array; + ): array; public function findByProductAndSectionCode( ProductInterface $product, string $sectionCode, string $channelCode, ?\DateTimeInterface $date, - ): array; + ): array; } diff --git a/src/Resolver/BlockResourceResolver.php b/src/Resolver/BlockResourceResolver.php index baf6ab6a8..41ffc67eb 100755 --- a/src/Resolver/BlockResourceResolver.php +++ b/src/Resolver/BlockResourceResolver.php @@ -22,7 +22,7 @@ public function __construct( private BlockRepositoryInterface $blockRepository, private LoggerInterface $logger, private ChannelContextInterface $channelContext, - ) { + ) { } public function findOrLog(string $code): ?BlockInterface diff --git a/src/Resolver/MediaResourceResolver.php b/src/Resolver/MediaResourceResolver.php index c396aa6d4..2c58f0ebe 100755 --- a/src/Resolver/MediaResourceResolver.php +++ b/src/Resolver/MediaResourceResolver.php @@ -24,7 +24,7 @@ public function __construct( private LocaleContextInterface $localeContext, private ChannelContextInterface $channelContext, private LoggerInterface $logger, - ) { + ) { } public function findOrLog(string $code): ?MediaInterface diff --git a/src/Resolver/PageResourceResolver.php b/src/Resolver/PageResourceResolver.php index a8ae222cc..c7152a7a3 100755 --- a/src/Resolver/PageResourceResolver.php +++ b/src/Resolver/PageResourceResolver.php @@ -21,7 +21,7 @@ public function __construct( private PageRepositoryInterface $pageRepository, private LocaleContextInterface $localeContext, private LoggerInterface $logger, - ) { + ) { } public function findOrLog(string $code): ?PageInterface diff --git a/src/Resolver/ResourceResolver.php b/src/Resolver/ResourceResolver.php index 2076d55ad..ebe9e5c31 100644 --- a/src/Resolver/ResourceResolver.php +++ b/src/Resolver/ResourceResolver.php @@ -21,7 +21,7 @@ public function __construct( private RepositoryInterface $repository, private FactoryInterface $factory, private string $uniqueColumn, - ) { + ) { } /** diff --git a/src/Twig/Parser/ContentParser.php b/src/Twig/Parser/ContentParser.php index 0104a4171..8f02b0654 100644 --- a/src/Twig/Parser/ContentParser.php +++ b/src/Twig/Parser/ContentParser.php @@ -69,7 +69,7 @@ private function callFunction( array $functions, string $functionName, array $arguments, - ): string { + ): string { Assert::keyExists($functions, $functionName, sprintf('Function %s does not exist!', $functionName)); /** @var TwigFunction $function */ $function = $functions[$functionName]; diff --git a/src/Twig/Runtime/RenderLinkRuntime.php b/src/Twig/Runtime/RenderLinkRuntime.php index 0d051aa8c..003512a80 100644 --- a/src/Twig/Runtime/RenderLinkRuntime.php +++ b/src/Twig/Runtime/RenderLinkRuntime.php @@ -24,7 +24,7 @@ public function __construct( private PageRepositoryInterface $pageRepository, private RouterInterface $router, private string $defaultTemplate, - ) { + ) { } public function renderLinkForCode( @@ -32,7 +32,7 @@ public function renderLinkForCode( string $code, array $options = [], ?string $template = null, - ): string { + ): string { $page = $this->pageRepository->findOneEnabledByCode($code, $this->localeContext->getLocaleCode()); return $environment->render($template ?? $this->defaultTemplate, [ diff --git a/src/Twig/Runtime/RenderLinkRuntimeInterface.php b/src/Twig/Runtime/RenderLinkRuntimeInterface.php index c10624dd3..616791859 100644 --- a/src/Twig/Runtime/RenderLinkRuntimeInterface.php +++ b/src/Twig/Runtime/RenderLinkRuntimeInterface.php @@ -20,7 +20,7 @@ public function renderLinkForCode( string $code, array $options = [], ?string $template = null, - ): string; + ): string; public function getLinkForCode(string $code, array $options = []): string; } diff --git a/src/Twig/Runtime/RenderProductPagesRuntime.php b/src/Twig/Runtime/RenderProductPagesRuntime.php index ad8f0cdf7..62a555212 100644 --- a/src/Twig/Runtime/RenderProductPagesRuntime.php +++ b/src/Twig/Runtime/RenderProductPagesRuntime.php @@ -24,7 +24,7 @@ public function __construct( private ChannelContextInterface $channelContext, private Environment $templatingEngine, private SectionsSorterInterface $sectionsSorter, - ) { + ) { } public function renderProductPages(ProductInterface $product, string $sectionCode = null): string diff --git a/src/Uploader/MediaUploader.php b/src/Uploader/MediaUploader.php index a238dd028..bb2e0abe9 100644 --- a/src/Uploader/MediaUploader.php +++ b/src/Uploader/MediaUploader.php @@ -79,7 +79,7 @@ private function expandPath( string $path, string $pathPrefix, ?string $originalName = null, - ): string { + ): string { return sprintf( '%s/%s/%s/%s', $pathPrefix, diff --git a/tests/Behat/Context/Setup/BlockContext.php b/tests/Behat/Context/Setup/BlockContext.php index 68804109c..ba142492d 100755 --- a/tests/Behat/Context/Setup/BlockContext.php +++ b/tests/Behat/Context/Setup/BlockContext.php @@ -37,7 +37,7 @@ public function __construct( RandomStringGeneratorInterface $randomStringGenerator, FactoryInterface $blockFactory, BlockRepositoryInterface $blockRepository, - ) { + ) { $this->sharedStorage = $sharedStorage; $this->randomStringGenerator = $randomStringGenerator; $this->blockFactory = $blockFactory; @@ -79,7 +79,7 @@ private function createBlock( ?string $code = null, ?string $content = null, ChannelInterface $channel = null, - ): BlockInterface { + ): BlockInterface { /** @var BlockInterface $block */ $block = $this->blockFactory->createNew(); diff --git a/tests/Behat/Context/Setup/FrequentlyAskedQuestionContext.php b/tests/Behat/Context/Setup/FrequentlyAskedQuestionContext.php index c7f7ac1b2..b01ebab4b 100755 --- a/tests/Behat/Context/Setup/FrequentlyAskedQuestionContext.php +++ b/tests/Behat/Context/Setup/FrequentlyAskedQuestionContext.php @@ -34,7 +34,7 @@ public function __construct( RandomStringGeneratorInterface $randomStringGenerator, FactoryInterface $frequentlyAskedQuestionFactory, FrequentlyAskedQuestionRepositoryInterface $frequentlyAskedQuestionRepository, - ) { + ) { $this->sharedStorage = $sharedStorage; $this->randomStringGenerator = $randomStringGenerator; $this->frequentlyAskedQuestionFactory = $frequentlyAskedQuestionFactory; @@ -94,7 +94,7 @@ private function createFrequentlyAskedQuestion( int $position = null, bool $prefixQuestionWithPosition = false, ChannelInterface $channel = null, - ): FrequentlyAskedQuestionInterface { + ): FrequentlyAskedQuestionInterface { /** @var FrequentlyAskedQuestionInterface $frequentlyAskedQuestion */ $frequentlyAskedQuestion = $this->frequentlyAskedQuestionFactory->createNew(); diff --git a/tests/Behat/Context/Setup/MediaContext.php b/tests/Behat/Context/Setup/MediaContext.php index 3d856a233..de7e6f6c9 100755 --- a/tests/Behat/Context/Setup/MediaContext.php +++ b/tests/Behat/Context/Setup/MediaContext.php @@ -58,7 +58,7 @@ public function __construct( ProductRepositoryInterface $productRepository, SectionRepositoryInterface $sectionRepository, MediaProviderResolverInterface $mediaProviderResolver, - ) { + ) { $this->sharedStorage = $sharedStorage; $this->randomStringGenerator = $randomStringGenerator; $this->mediaFactory = $mediaFactory; @@ -99,7 +99,7 @@ private function createMedia( ?string $content = null, ?string $fileType = null, ChannelInterface $channel = null, - ): MediaInterface { + ): MediaInterface { /** @var MediaInterface $media */ $media = $this->mediaFactory->createNew(); diff --git a/tests/Behat/Context/Setup/PageContext.php b/tests/Behat/Context/Setup/PageContext.php index 044be81eb..26ce1deab 100755 --- a/tests/Behat/Context/Setup/PageContext.php +++ b/tests/Behat/Context/Setup/PageContext.php @@ -61,7 +61,7 @@ public function __construct( ProductRepositoryInterface $productRepository, SectionRepositoryInterface $sectionRepository, ProviderInterface $imageProvider, - ) { + ) { $this->sharedStorage = $sharedStorage; $this->randomStringGenerator = $randomStringGenerator; $this->pageFactory = $pageFactory; @@ -225,7 +225,7 @@ private function createPage( ?string $name = null, ?string $content = null, ChannelInterface $channel = null, - ): PageInterface { + ): PageInterface { /** @var PageInterface $page */ $page = $this->pageFactory->createNew(); diff --git a/tests/Behat/Context/Setup/SectionContext.php b/tests/Behat/Context/Setup/SectionContext.php index 6b824993a..048938f59 100755 --- a/tests/Behat/Context/Setup/SectionContext.php +++ b/tests/Behat/Context/Setup/SectionContext.php @@ -34,7 +34,7 @@ public function __construct( RandomStringGeneratorInterface $randomStringGenerator, FactoryInterface $sectionFactory, SectionRepositoryInterface $sectionRepository, - ) { + ) { $this->sharedStorage = $sharedStorage; $this->randomStringGenerator = $randomStringGenerator; $this->sectionFactory = $sectionFactory; diff --git a/tests/Behat/Context/Ui/Admin/BlockContext.php b/tests/Behat/Context/Ui/Admin/BlockContext.php index 6e723a55f..cd7da0926 100755 --- a/tests/Behat/Context/Ui/Admin/BlockContext.php +++ b/tests/Behat/Context/Ui/Admin/BlockContext.php @@ -58,7 +58,7 @@ public function __construct( UpdatePageInterface $updatePage, RandomStringGeneratorInterface $randomStringGenerator, BlockRepositoryInterface $blockRepository, - ) { + ) { $this->sharedStorage = $sharedStorage; $this->currentPageResolver = $currentPageResolver; $this->notificationChecker = $notificationChecker; diff --git a/tests/Behat/Context/Ui/Admin/FrequentlyAskedQuestionContext.php b/tests/Behat/Context/Ui/Admin/FrequentlyAskedQuestionContext.php index b12e17efc..cdd4a13e5 100755 --- a/tests/Behat/Context/Ui/Admin/FrequentlyAskedQuestionContext.php +++ b/tests/Behat/Context/Ui/Admin/FrequentlyAskedQuestionContext.php @@ -53,7 +53,7 @@ public function __construct( CreatePageInterface $createPage, UpdatePageInterface $updatePage, RandomStringGeneratorInterface $randomStringGenerator, - ) { + ) { $this->sharedStorage = $sharedStorage; $this->currentPageResolver = $currentPageResolver; $this->notificationChecker = $notificationChecker; diff --git a/tests/Behat/Context/Ui/Admin/MediaContext.php b/tests/Behat/Context/Ui/Admin/MediaContext.php index 41819fd30..77b969dd6 100755 --- a/tests/Behat/Context/Ui/Admin/MediaContext.php +++ b/tests/Behat/Context/Ui/Admin/MediaContext.php @@ -58,7 +58,7 @@ public function __construct( UpdatePageInterface $updatePage, RandomStringGeneratorInterface $randomStringGenerator, MediaRepositoryInterface $mediaRepository, - ) { + ) { $this->sharedStorage = $sharedStorage; $this->currentPageResolver = $currentPageResolver; $this->notificationChecker = $notificationChecker; diff --git a/tests/Behat/Context/Ui/Admin/PageContext.php b/tests/Behat/Context/Ui/Admin/PageContext.php index 11b808a75..24b96d937 100755 --- a/tests/Behat/Context/Ui/Admin/PageContext.php +++ b/tests/Behat/Context/Ui/Admin/PageContext.php @@ -58,7 +58,7 @@ public function __construct( UpdatePageInterface $updatePage, RandomStringGeneratorInterface $randomStringGenerator, PageRepositoryInterface $pageRepository, - ) { + ) { $this->sharedStorage = $sharedStorage; $this->currentPageResolver = $currentPageResolver; $this->notificationChecker = $notificationChecker; diff --git a/tests/Behat/Context/Ui/Admin/SectionContext.php b/tests/Behat/Context/Ui/Admin/SectionContext.php index 43518855a..05162b91f 100755 --- a/tests/Behat/Context/Ui/Admin/SectionContext.php +++ b/tests/Behat/Context/Ui/Admin/SectionContext.php @@ -53,7 +53,7 @@ public function __construct( CreatePageInterface $createPage, UpdatePageInterface $updatePage, RandomStringGeneratorInterface $randomStringGenerator, - ) { + ) { $this->sharedStorage = $sharedStorage; $this->currentPageResolver = $currentPageResolver; $this->notificationChecker = $notificationChecker; diff --git a/tests/Behat/Context/Ui/Shop/PageContext.php b/tests/Behat/Context/Ui/Shop/PageContext.php index f0b5cc837..53b5ffc0e 100755 --- a/tests/Behat/Context/Ui/Shop/PageContext.php +++ b/tests/Behat/Context/Ui/Shop/PageContext.php @@ -31,7 +31,7 @@ public function __construct( ShowPageInterface $showPage, IndexPageInterface $indexPage, SharedStorageInterface $sharedStorage, - ) { + ) { $this->showPage = $showPage; $this->indexPage = $indexPage; $this->sharedStorage = $sharedStorage; diff --git a/tests/Behat/Service/FormHelper.php b/tests/Behat/Service/FormHelper.php index 123e5d009..6f33c70d0 100644 --- a/tests/Behat/Service/FormHelper.php +++ b/tests/Behat/Service/FormHelper.php @@ -19,7 +19,7 @@ public static function fillHiddenInput( Session $session, string $id, $value, - ): void { + ): void { try { $session->executeScript( sprintf( diff --git a/tests/Behat/Service/WysiwygHelper.php b/tests/Behat/Service/WysiwygHelper.php index 4791c4ecb..372f02cbd 100644 --- a/tests/Behat/Service/WysiwygHelper.php +++ b/tests/Behat/Service/WysiwygHelper.php @@ -10,9 +10,9 @@ namespace Tests\BitBag\SyliusCmsPlugin\Behat\Service; -use DMore\ChromeDriver\ChromeDriver; use Behat\Mink\Element\DocumentElement; use Behat\Mink\Session; +use DMore\ChromeDriver\ChromeDriver; use Webmozart\Assert\Assert; final class WysiwygHelper @@ -22,7 +22,7 @@ public static function fillContent( DocumentElement $document, string $content, int $iframeNumber = 1, - ): void { + ): void { Assert::isInstanceOf($session->getDriver(), ChromeDriver::class); $session->wait(3000); diff --git a/tests/Functional/FunctionalTestCase.php b/tests/Functional/FunctionalTestCase.php index 8580d5bb7..851faaae4 100644 --- a/tests/Functional/FunctionalTestCase.php +++ b/tests/Functional/FunctionalTestCase.php @@ -21,7 +21,7 @@ public function __construct( ?string $name = null, array $data = [], string $dataName = '', - ) { + ) { parent::__construct($name, $data, $dataName); $this->dataFixturesPath = __DIR__ . \DIRECTORY_SEPARATOR . 'DataFixtures' . \DIRECTORY_SEPARATOR . 'ORM';