diff --git a/src/Kunstmaan/AdminBundle/AdminList/ExceptionAdminListConfigurator.php b/src/Kunstmaan/AdminBundle/AdminList/ExceptionAdminListConfigurator.php index 0d5dbf73b5..66187e1515 100644 --- a/src/Kunstmaan/AdminBundle/AdminList/ExceptionAdminListConfigurator.php +++ b/src/Kunstmaan/AdminBundle/AdminList/ExceptionAdminListConfigurator.php @@ -41,7 +41,7 @@ public function buildListActions() $listRoute = [ 'path' => 'kunstmaanadminbundle_admin_exception_resolve_all', 'params' => [], - ]; + ]; $this->addListAction( new SimpleListAction( diff --git a/src/Kunstmaan/AdminListBundle/Controller/EntityLockCheckController.php b/src/Kunstmaan/AdminListBundle/Controller/EntityLockCheckController.php index dca221f7e3..103efb662a 100644 --- a/src/Kunstmaan/AdminListBundle/Controller/EntityLockCheckController.php +++ b/src/Kunstmaan/AdminListBundle/Controller/EntityLockCheckController.php @@ -68,8 +68,8 @@ public function checkAction(Request $request, $id, $repository) public static function getSubscribedServices(): array { return [ - 'kunstmaan_entity.admin_entity.entity_version_lock_service' => EntityVersionLockService::class, - 'translator' => TranslatorInterface::class, - ] + parent::getSubscribedServices(); + 'kunstmaan_entity.admin_entity.entity_version_lock_service' => EntityVersionLockService::class, + 'translator' => TranslatorInterface::class, + ] + parent::getSubscribedServices(); } } diff --git a/src/Kunstmaan/AdminListBundle/Tests/AdminList/FilterType/DBAL/EnumerationFilterTypeTest.php b/src/Kunstmaan/AdminListBundle/Tests/AdminList/FilterType/DBAL/EnumerationFilterTypeTest.php index dd1b2af775..7e844d7ebe 100644 --- a/src/Kunstmaan/AdminListBundle/Tests/AdminList/FilterType/DBAL/EnumerationFilterTypeTest.php +++ b/src/Kunstmaan/AdminListBundle/Tests/AdminList/FilterType/DBAL/EnumerationFilterTypeTest.php @@ -53,8 +53,8 @@ public function testApply($comparator, $whereClause, $value, $testValue) public static function applyDataProvider(): array { return [ - ['in', 'IN (:var_enumeration)', [1, 2], true], - ['notin', 'NOT IN (:var_enumeration)', [1, 2], true], + ['in', 'IN (:var_enumeration)', [1, 2], true], + ['notin', 'NOT IN (:var_enumeration)', [1, 2], true], ]; } diff --git a/src/Kunstmaan/AdminListBundle/Tests/AdminList/FilterType/ORM/DateTimeFilterTypeTest.php b/src/Kunstmaan/AdminListBundle/Tests/AdminList/FilterType/ORM/DateTimeFilterTypeTest.php index fbb3dc346e..8c461ff60e 100644 --- a/src/Kunstmaan/AdminListBundle/Tests/AdminList/FilterType/ORM/DateTimeFilterTypeTest.php +++ b/src/Kunstmaan/AdminListBundle/Tests/AdminList/FilterType/ORM/DateTimeFilterTypeTest.php @@ -85,8 +85,8 @@ public function testApplyReturnsNull() $badData = [ 'value' => [ - 'date' => 'oopsNotADate', - 'time' => 'oopsNotATime', + 'date' => 'oopsNotADate', + 'time' => 'oopsNotATime', ], 'comparator' => 'true', ]; diff --git a/src/Kunstmaan/AdminListBundle/Tests/AdminList/FilterType/ORM/EnumerationFilterTypeTest.php b/src/Kunstmaan/AdminListBundle/Tests/AdminList/FilterType/ORM/EnumerationFilterTypeTest.php index 5f2eaab403..a900a6b676 100644 --- a/src/Kunstmaan/AdminListBundle/Tests/AdminList/FilterType/ORM/EnumerationFilterTypeTest.php +++ b/src/Kunstmaan/AdminListBundle/Tests/AdminList/FilterType/ORM/EnumerationFilterTypeTest.php @@ -53,8 +53,8 @@ public function testApply($comparator, $whereClause, $value, $testValue) public static function applyDataProvider(): array { return [ - ['in', 'IN(:var_enumeration)', [1, 2], true], - ['notin', 'NOT IN(:var_enumeration)', [1, 2], true], + ['in', 'IN(:var_enumeration)', [1, 2], true], + ['notin', 'NOT IN(:var_enumeration)', [1, 2], true], ]; } diff --git a/src/Kunstmaan/DashboardBundle/Helper/Google/Analytics/ConfigHelper.php b/src/Kunstmaan/DashboardBundle/Helper/Google/Analytics/ConfigHelper.php index 7012673483..356a14ab83 100644 --- a/src/Kunstmaan/DashboardBundle/Helper/Google/Analytics/ConfigHelper.php +++ b/src/Kunstmaan/DashboardBundle/Helper/Google/Analytics/ConfigHelper.php @@ -111,9 +111,9 @@ public function getAccounts() foreach ($accounts as $account) { $data[$account->getName()] = [ - 'accountId' => $account->getId(), - 'accountName' => $account->getName(), - ]; + 'accountId' => $account->getId(), + 'accountName' => $account->getName(), + ]; } ksort($data); @@ -183,9 +183,9 @@ public function getProperties($accountId = false) $profiles = $this->getProfiles($accountId, $property->getId()); if (\count($profiles) > 0) { $data[$property->getName()] = [ - 'propertyId' => $property->getId(), - 'propertyName' => $property->getName() . ' (' . $property->getWebsiteUrl() . ')', - ]; + 'propertyId' => $property->getId(), + 'propertyName' => $property->getName() . ' (' . $property->getWebsiteUrl() . ')', + ]; } } ksort($data); @@ -262,10 +262,10 @@ public function getProfiles($accountId = false, $propertyId = false) if (\is_array($profiles->getItems())) { foreach ($profiles->getItems() as $profile) { $data[$profile->name] = [ - 'profileId' => $profile->id, - 'profileName' => $profile->name, - 'created' => $profile->created, - ]; + 'profileId' => $profile->id, + 'profileName' => $profile->name, + 'created' => $profile->created, + ]; } } ksort($data); @@ -352,14 +352,14 @@ public function getProfileSegments() foreach ($profileSegments as $segment) { if ($segment->type == 'BUILT_IN') { $builtin[] = [ - 'name' => $segment->name, - 'query' => $segment->segmentId, - ]; + 'name' => $segment->name, + 'query' => $segment->segmentId, + ]; } else { $own[] = [ - 'name' => $segment->name, - 'query' => $segment->segmentId, - ]; + 'name' => $segment->name, + 'query' => $segment->segmentId, + ]; } } diff --git a/src/Kunstmaan/DashboardBundle/Repository/AnalyticsConfigRepository.php b/src/Kunstmaan/DashboardBundle/Repository/AnalyticsConfigRepository.php index 1842a188ac..a00c516c90 100644 --- a/src/Kunstmaan/DashboardBundle/Repository/AnalyticsConfigRepository.php +++ b/src/Kunstmaan/DashboardBundle/Repository/AnalyticsConfigRepository.php @@ -42,9 +42,9 @@ public function findDefaultOverviews($config) return $em->getRepository(AnalyticsOverview::class) ->findBy([ - 'config' => $config, - 'segment' => null, - ]); + 'config' => $config, + 'segment' => null, + ]); } /** diff --git a/src/Kunstmaan/FormBundle/Controller/FormSubmissionsController.php b/src/Kunstmaan/FormBundle/Controller/FormSubmissionsController.php index 3bfa333154..cd7ebe25c1 100644 --- a/src/Kunstmaan/FormBundle/Controller/FormSubmissionsController.php +++ b/src/Kunstmaan/FormBundle/Controller/FormSubmissionsController.php @@ -193,13 +193,13 @@ public function deleteAction(Request $request, $id) public static function getSubscribedServices(): array { return [ - 'kunstmaan_admin.acl.helper' => AclHelper::class, - 'kunstmaan_adminlist.factory' => AdminListFactory::class, - 'kunstmaan_adminlist.service.export' => ExportService::class, - 'request_stack' => RequestStack::class, - 'translator' => TranslatorInterface::class, - 'logger' => LoggerInterface::class, - 'kunstmaan_utilities.slugifier' => SlugifierInterface::class, - ] + parent::getSubscribedServices(); + 'kunstmaan_admin.acl.helper' => AclHelper::class, + 'kunstmaan_adminlist.factory' => AdminListFactory::class, + 'kunstmaan_adminlist.service.export' => ExportService::class, + 'request_stack' => RequestStack::class, + 'translator' => TranslatorInterface::class, + 'logger' => LoggerInterface::class, + 'kunstmaan_utilities.slugifier' => SlugifierInterface::class, + ] + parent::getSubscribedServices(); } } diff --git a/src/Kunstmaan/GeneratorBundle/Command/GenerateDefaultPagePartsCommand.php b/src/Kunstmaan/GeneratorBundle/Command/GenerateDefaultPagePartsCommand.php index b7e60c92f5..a076ab79de 100644 --- a/src/Kunstmaan/GeneratorBundle/Command/GenerateDefaultPagePartsCommand.php +++ b/src/Kunstmaan/GeneratorBundle/Command/GenerateDefaultPagePartsCommand.php @@ -95,9 +95,9 @@ protected function doExecute() $this->assistant->writeSection('PageParts successfully created', 'bg=green;fg=black'); $this->assistant->writeLine([ - 'Make sure you update your database first before you test the pagepart:', - ' Directly update your database: bin/console doctrine:schema:update --force', - ' Create a Doctrine migration and run it: bin/console doctrine:migrations:diff && bin/console doctrine:migrations:migrate', ] + 'Make sure you update your database first before you test the pagepart:', + ' Directly update your database: bin/console doctrine:schema:update --force', + ' Create a Doctrine migration and run it: bin/console doctrine:migrations:diff && bin/console doctrine:migrations:migrate', ] ); return 0; diff --git a/src/Kunstmaan/GeneratorBundle/Command/GenerateSearchPageCommand.php b/src/Kunstmaan/GeneratorBundle/Command/GenerateSearchPageCommand.php index 85dbfd514a..27c7aacb3e 100644 --- a/src/Kunstmaan/GeneratorBundle/Command/GenerateSearchPageCommand.php +++ b/src/Kunstmaan/GeneratorBundle/Command/GenerateSearchPageCommand.php @@ -81,9 +81,9 @@ protected function execute(InputInterface $input, OutputInterface $output) $generator->generate($bundle, $prefix, $rootDir, $createPage, $output); $output->writeln([ - 'Make sure you update your database first before you test the pagepart:', - ' Directly update your database: bin/console doctrine:schema:update --force', - ' Create a Doctrine migration and run it: bin/console doctrine:migrations:diff && bin/console doctrine:migrations:migrate', ] + 'Make sure you update your database first before you test the pagepart:', + ' Directly update your database: bin/console doctrine:schema:update --force', + ' Create a Doctrine migration and run it: bin/console doctrine:migrations:diff && bin/console doctrine:migrations:migrate', ] ); if ($createPage) { diff --git a/src/Kunstmaan/LeadGenerationBundle/Tests/DependencyInjection/KunstmaanLeadGenerationExtensionTest.php b/src/Kunstmaan/LeadGenerationBundle/Tests/DependencyInjection/KunstmaanLeadGenerationExtensionTest.php index 971e98a287..e97f3d60b3 100644 --- a/src/Kunstmaan/LeadGenerationBundle/Tests/DependencyInjection/KunstmaanLeadGenerationExtensionTest.php +++ b/src/Kunstmaan/LeadGenerationBundle/Tests/DependencyInjection/KunstmaanLeadGenerationExtensionTest.php @@ -21,7 +21,7 @@ public function testCorrectParametersHaveBeenSet() $this->load([ 'popup_types' => ['abc'], 'debug' => true, - ]); + ]); $this->assertContainerBuilderHasParameter('kunstmaan_lead_generation.popup_types'); $this->assertContainerBuilderHasParameter('kunstmaan_lead_generation.debug', true); diff --git a/src/Kunstmaan/MediaBundle/AdminList/ItemAction/MediaDeleteItemAction.php b/src/Kunstmaan/MediaBundle/AdminList/ItemAction/MediaDeleteItemAction.php index 13ba04e3f1..3104f9c35b 100644 --- a/src/Kunstmaan/MediaBundle/AdminList/ItemAction/MediaDeleteItemAction.php +++ b/src/Kunstmaan/MediaBundle/AdminList/ItemAction/MediaDeleteItemAction.php @@ -25,8 +25,8 @@ public function __construct($redirectUrl) public function getUrlFor($item) { return [ - 'path' => 'KunstmaanMediaBundle_media_delete', - 'params' => ['mediaId' => $item->getId(), 'redirectUrl' => $this->redirectUrl], + 'path' => 'KunstmaanMediaBundle_media_delete', + 'params' => ['mediaId' => $item->getId(), 'redirectUrl' => $this->redirectUrl], ]; } diff --git a/src/Kunstmaan/MediaBundle/AdminList/ItemAction/MediaEditItemAction.php b/src/Kunstmaan/MediaBundle/AdminList/ItemAction/MediaEditItemAction.php index f9dace9e1d..04d588b17f 100644 --- a/src/Kunstmaan/MediaBundle/AdminList/ItemAction/MediaEditItemAction.php +++ b/src/Kunstmaan/MediaBundle/AdminList/ItemAction/MediaEditItemAction.php @@ -12,8 +12,8 @@ class MediaEditItemAction implements ItemActionInterface public function getUrlFor($item) { return [ - 'path' => 'KunstmaanMediaBundle_media_show', - 'params' => ['mediaId' => $item->getId()], + 'path' => 'KunstmaanMediaBundle_media_show', + 'params' => ['mediaId' => $item->getId()], ]; } diff --git a/src/Kunstmaan/MediaPagePartBundle/Form/AudioPagePartAdminType.php b/src/Kunstmaan/MediaPagePartBundle/Form/AudioPagePartAdminType.php index 3f135df9a5..42c8406367 100644 --- a/src/Kunstmaan/MediaPagePartBundle/Form/AudioPagePartAdminType.php +++ b/src/Kunstmaan/MediaPagePartBundle/Form/AudioPagePartAdminType.php @@ -51,7 +51,7 @@ public function getBlockPrefix() public function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults([ - 'data_class' => 'Kunstmaan\MediaPagePartBundle\Entity\AudioPagePart', + 'data_class' => 'Kunstmaan\MediaPagePartBundle\Entity\AudioPagePart', ]); } } diff --git a/src/Kunstmaan/MediaPagePartBundle/Form/DownloadPagePartAdminType.php b/src/Kunstmaan/MediaPagePartBundle/Form/DownloadPagePartAdminType.php index b4e6ee8a7e..56b97a5ef4 100644 --- a/src/Kunstmaan/MediaPagePartBundle/Form/DownloadPagePartAdminType.php +++ b/src/Kunstmaan/MediaPagePartBundle/Form/DownloadPagePartAdminType.php @@ -49,7 +49,7 @@ public function getBlockPrefix() public function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults([ - 'data_class' => 'Kunstmaan\MediaPagePartBundle\Entity\DownloadPagePart', + 'data_class' => 'Kunstmaan\MediaPagePartBundle\Entity\DownloadPagePart', ]); } } diff --git a/src/Kunstmaan/MediaPagePartBundle/Form/ImagePagePartAdminType.php b/src/Kunstmaan/MediaPagePartBundle/Form/ImagePagePartAdminType.php index 53fe6bc890..da850abe33 100644 --- a/src/Kunstmaan/MediaPagePartBundle/Form/ImagePagePartAdminType.php +++ b/src/Kunstmaan/MediaPagePartBundle/Form/ImagePagePartAdminType.php @@ -65,7 +65,7 @@ public function getBlockPrefix() public function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults([ - 'data_class' => 'Kunstmaan\MediaPagePartBundle\Entity\ImagePagePart', + 'data_class' => 'Kunstmaan\MediaPagePartBundle\Entity\ImagePagePart', ]); } } diff --git a/src/Kunstmaan/MediaPagePartBundle/Form/SlidePagePartAdminType.php b/src/Kunstmaan/MediaPagePartBundle/Form/SlidePagePartAdminType.php index 063e056eed..e7dbe0f204 100644 --- a/src/Kunstmaan/MediaPagePartBundle/Form/SlidePagePartAdminType.php +++ b/src/Kunstmaan/MediaPagePartBundle/Form/SlidePagePartAdminType.php @@ -50,7 +50,7 @@ public function getBlockPrefix() public function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults([ - 'data_class' => 'Kunstmaan\MediaPagePartBundle\Entity\SlidePagePart', + 'data_class' => 'Kunstmaan\MediaPagePartBundle\Entity\SlidePagePart', ]); } } diff --git a/src/Kunstmaan/MediaPagePartBundle/Form/VideoPagePartAdminType.php b/src/Kunstmaan/MediaPagePartBundle/Form/VideoPagePartAdminType.php index 405faeef46..f456e34c1b 100644 --- a/src/Kunstmaan/MediaPagePartBundle/Form/VideoPagePartAdminType.php +++ b/src/Kunstmaan/MediaPagePartBundle/Form/VideoPagePartAdminType.php @@ -51,7 +51,7 @@ public function getBlockPrefix() public function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults([ - 'data_class' => 'Kunstmaan\MediaPagePartBundle\Entity\VideoPagePart', + 'data_class' => 'Kunstmaan\MediaPagePartBundle\Entity\VideoPagePart', ]); } } diff --git a/src/Kunstmaan/NodeBundle/Form/PageAdminType.php b/src/Kunstmaan/NodeBundle/Form/PageAdminType.php index 54639b211f..42521fcbed 100644 --- a/src/Kunstmaan/NodeBundle/Form/PageAdminType.php +++ b/src/Kunstmaan/NodeBundle/Form/PageAdminType.php @@ -40,7 +40,7 @@ public function buildForm(FormBuilderInterface $builder, array $options) public function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults([ - 'data_class' => 'Kunstmaan\NodeBundle\Entity\AbstractPage', + 'data_class' => 'Kunstmaan\NodeBundle\Entity\AbstractPage', ]); } diff --git a/src/Kunstmaan/PagePartBundle/Form/HeaderPagePartAdminType.php b/src/Kunstmaan/PagePartBundle/Form/HeaderPagePartAdminType.php index 3bd33a1998..b9d15bdc74 100644 --- a/src/Kunstmaan/PagePartBundle/Form/HeaderPagePartAdminType.php +++ b/src/Kunstmaan/PagePartBundle/Form/HeaderPagePartAdminType.php @@ -22,9 +22,9 @@ public function buildForm(FormBuilderInterface $builder, array $options) 'niv', ChoiceType::class, [ - 'label' => 'pagepart.header.type', - 'choices' => ['Header 1' => '1', 'Header 2' => '2', 'Header 3' => '3', 'Header 4' => '4', 'Header 5' => '5', 'Header 6' => '6'], - 'required' => true, + 'label' => 'pagepart.header.type', + 'choices' => ['Header 1' => '1', 'Header 2' => '2', 'Header 3' => '3', 'Header 4' => '4', 'Header 5' => '5', 'Header 6' => '6'], + 'required' => true, ] ); $builder->add('title', TextType::class, [ @@ -48,7 +48,7 @@ public function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults( [ - 'data_class' => 'Kunstmaan\PagePartBundle\Entity\HeaderPagePart', + 'data_class' => 'Kunstmaan\PagePartBundle\Entity\HeaderPagePart', ] ); } diff --git a/src/Kunstmaan/PagePartBundle/Form/LinePagePartAdminType.php b/src/Kunstmaan/PagePartBundle/Form/LinePagePartAdminType.php index fad53bbdad..66fbd40666 100644 --- a/src/Kunstmaan/PagePartBundle/Form/LinePagePartAdminType.php +++ b/src/Kunstmaan/PagePartBundle/Form/LinePagePartAdminType.php @@ -33,7 +33,7 @@ public function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults( [ - 'data_class' => 'Kunstmaan\PagePartBundle\Entity\LinePagePart', + 'data_class' => 'Kunstmaan\PagePartBundle\Entity\LinePagePart', ] ); } diff --git a/src/Kunstmaan/PagePartBundle/PagePartAdmin/Builder.php b/src/Kunstmaan/PagePartBundle/PagePartAdmin/Builder.php index 7698d587e8..6f6b2ecc10 100644 --- a/src/Kunstmaan/PagePartBundle/PagePartAdmin/Builder.php +++ b/src/Kunstmaan/PagePartBundle/PagePartAdmin/Builder.php @@ -13,12 +13,12 @@ class Builder public function getPageParts() { $pageParts = [['name' => 'Header', 'class' => 'Kunstmaan\PagePartBundle\Entity\HeaderPagePart'], - ['name' => 'Text', 'class' => 'Kunstmaan\PagePartBundle\Entity\TextPagePart'], - ['name' => 'Link', 'class' => 'Kunstmaan\PagePartBundle\Entity\LinkPagePart'], - ['name' => 'Raw HTML', 'class' => 'Kunstmaan\PagePartBundle\Entity\RawHTMLPagePart'], - ['name' => 'Line', 'class' => 'Kunstmaan\PagePartBundle\Entity\LinePagePart'], - ['name' => 'TOC', 'class' => 'Kunstmaan\PagePartBundle\Entity\TocPagePart'], - ['name' => 'Link To Top', 'class' => 'Kunstmaan\PagePartBundle\Entity\ToTopPagePart'], ]; + ['name' => 'Text', 'class' => 'Kunstmaan\PagePartBundle\Entity\TextPagePart'], + ['name' => 'Link', 'class' => 'Kunstmaan\PagePartBundle\Entity\LinkPagePart'], + ['name' => 'Raw HTML', 'class' => 'Kunstmaan\PagePartBundle\Entity\RawHTMLPagePart'], + ['name' => 'Line', 'class' => 'Kunstmaan\PagePartBundle\Entity\LinePagePart'], + ['name' => 'TOC', 'class' => 'Kunstmaan\PagePartBundle\Entity\TocPagePart'], + ['name' => 'Link To Top', 'class' => 'Kunstmaan\PagePartBundle\Entity\ToTopPagePart'], ]; return $pageParts; } diff --git a/src/Kunstmaan/SeoBundle/Form/SeoType.php b/src/Kunstmaan/SeoBundle/Form/SeoType.php index f791d2edee..4685a05be0 100644 --- a/src/Kunstmaan/SeoBundle/Form/SeoType.php +++ b/src/Kunstmaan/SeoBundle/Form/SeoType.php @@ -110,7 +110,7 @@ public function getBlockPrefix() public function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults([ - 'data_class' => 'Kunstmaan\SeoBundle\Entity\Seo', + 'data_class' => 'Kunstmaan\SeoBundle\Entity\Seo', ]); } } diff --git a/src/Kunstmaan/TaggingBundle/Form/TagsAdminType.php b/src/Kunstmaan/TaggingBundle/Form/TagsAdminType.php index d5a516b75f..5f676c66ae 100644 --- a/src/Kunstmaan/TaggingBundle/Form/TagsAdminType.php +++ b/src/Kunstmaan/TaggingBundle/Form/TagsAdminType.php @@ -44,12 +44,12 @@ public function getDefaultOptions(array $options) } return [ - 'choices' => $result, - 'multiple' => true, - 'required' => false, - 'attr' => [ - 'class' => 'js-advanced-select form-control advanced-select', - ], + 'choices' => $result, + 'multiple' => true, + 'required' => false, + 'attr' => [ + 'class' => 'js-advanced-select form-control advanced-select', + ], ]; }