Skip to content

Commit 2c61299

Browse files
committed
[Rector] Applied all Symfony 5.x rectors to the production codebase
Applied rules: * AddReturnTypeDeclarationRector
1 parent 12c6521 commit 2c61299

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+67
-67
lines changed

src/lib/Content/View/Filter/ContentCreateViewFilter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function __construct(
5454
$this->languagePreferenceProvider = $languagePreferenceProvider;
5555
}
5656

57-
public static function getSubscribedEvents()
57+
public static function getSubscribedEvents(): array
5858
{
5959
return [ViewEvents::FILTER_BUILDER_PARAMETERS => 'handleContentCreateForm'];
6060
}

src/lib/Content/View/Filter/ContentEditViewFilter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function __construct(
6161
$this->locationService = $locationService;
6262
}
6363

64-
public static function getSubscribedEvents()
64+
public static function getSubscribedEvents(): array
6565
{
6666
return [ViewEvents::FILTER_BUILDER_PARAMETERS => 'handleContentEditForm'];
6767
}

src/lib/EventListener/ViewTemplatesListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function __construct(ConfigResolverInterface $configResolver)
3030
$this->configResolver = $configResolver;
3131
}
3232

33-
public static function getSubscribedEvents()
33+
public static function getSubscribedEvents(): array
3434
{
3535
return [MVCEvents::PRE_CONTENT_VIEW => 'setViewTemplates'];
3636
}

src/lib/Form/EventSubscriber/SuppressValidationSubscriber.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919
class SuppressValidationSubscriber implements EventSubscriberInterface
2020
{
21-
public static function getSubscribedEvents()
21+
public static function getSubscribedEvents(): array
2222
{
2323
return [
2424
FormEvents::POST_SUBMIT => [

src/lib/Form/EventSubscriber/UserFieldsSubscriber.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*/
2121
class UserFieldsSubscriber implements EventSubscriberInterface
2222
{
23-
public static function getSubscribedEvents()
23+
public static function getSubscribedEvents(): array
2424
{
2525
return [
2626
FormEvents::SUBMIT => 'handleUserAccountField',

src/lib/Form/Processor/User/UserCancelFormProcessor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function __construct(
3131
$this->urlGenerator = $urlGenerator;
3232
}
3333

34-
public static function getSubscribedEvents()
34+
public static function getSubscribedEvents(): array
3535
{
3636
return [
3737
ContentFormEvents::USER_CANCEL => ['processCancel', 10],

src/lib/Form/Processor/User/UserCreateFormProcessor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function __construct(
3939
$this->urlGenerator = $urlGenerator;
4040
}
4141

42-
public static function getSubscribedEvents()
42+
public static function getSubscribedEvents(): array
4343
{
4444
return [
4545
ContentFormEvents::USER_CREATE => ['processCreate', 20],

src/lib/Form/Processor/User/UserUpdateFormProcessor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function __construct(
4141
$this->urlGenerator = $urlGenerator;
4242
}
4343

44-
public static function getSubscribedEvents()
44+
public static function getSubscribedEvents(): array
4545
{
4646
return [
4747
ContentFormEvents::USER_UPDATE => ['processUpdate', 20],

src/lib/Form/Type/Content/BaseContentType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function getName()
3030
return $this->getBlockPrefix();
3131
}
3232

33-
public function getBlockPrefix()
33+
public function getBlockPrefix(): string
3434
{
3535
return 'ezplatform_content_forms_content';
3636
}

src/lib/Form/Type/Content/ContentDraftCreateType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function getName()
2121
return $this->getBlockPrefix();
2222
}
2323

24-
public function getBlockPrefix()
24+
public function getBlockPrefix(): string
2525
{
2626
return 'ezplatform_content_forms_content_draft_create';
2727
}

0 commit comments

Comments
 (0)