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
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ public function getName()
2828
return $this->getBlockPrefix();
2929
}
3030

31-
public function getBlockPrefix()
31+
public function getBlockPrefix(): string
3232
{
3333
return 'ezplatform_content_forms_content_edit';
3434
}
3535

36-
public function getParent()
36+
public function getParent(): ?string
3737
{
3838
return BaseContentType::class;
3939
}

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

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

42-
public function getBlockPrefix()
42+
public function getBlockPrefix(): string
4343
{
4444
return 'ezplatform_content_forms_content_field';
4545
}

src/lib/Form/Type/FieldType/Author/AuthorCollectionType.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function getName()
2222
return $this->getBlockPrefix();
2323
}
2424

25-
public function getBlockPrefix()
25+
public function getBlockPrefix(): string
2626
{
2727
return 'ezplatform_fieldtype_ezauthor_authors';
2828
}
@@ -38,7 +38,7 @@ public function configureOptions(OptionsResolver $resolver)
3838
]);
3939
}
4040

41-
public function getParent()
41+
public function getParent(): ?string
4242
{
4343
return CollectionType::class;
4444
}

src/lib/Form/Type/FieldType/Author/AuthorEntryType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function getName()
3333
/**
3434
* @return string
3535
*/
36-
public function getBlockPrefix()
36+
public function getBlockPrefix(): string
3737
{
3838
return 'ezplatform_fieldtype_ezauthor_authors_entry';
3939
}

src/lib/Form/Type/FieldType/AuthorFieldType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function getName()
5454
/**
5555
* @return string
5656
*/
57-
public function getBlockPrefix()
57+
public function getBlockPrefix(): string
5858
{
5959
return 'ezplatform_fieldtype_ezauthor';
6060
}

src/lib/Form/Type/FieldType/BinaryFileFieldType.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ public function getName()
2121
return $this->getBlockPrefix();
2222
}
2323

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

29-
public function getParent()
29+
public function getParent(): ?string
3030
{
3131
return BinaryBaseFieldType::class;
3232
}

src/lib/Form/Type/FieldType/CheckboxFieldType.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ public function getName()
3232
return $this->getBlockPrefix();
3333
}
3434

35-
public function getBlockPrefix()
35+
public function getBlockPrefix(): string
3636
{
3737
return 'ezplatform_fieldtype_ezboolean';
3838
}
3939

40-
public function getParent()
40+
public function getParent(): ?string
4141
{
4242
return CheckboxType::class;
4343
}

src/lib/Form/Type/FieldType/CountryFieldType.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ public function getName()
3636
return $this->getBlockPrefix();
3737
}
3838

39-
public function getBlockPrefix()
39+
public function getBlockPrefix(): string
4040
{
4141
return 'ezplatform_fieldtype_ezcountry';
4242
}
4343

44-
public function getParent()
44+
public function getParent(): ?string
4545
{
4646
return ChoiceType::class;
4747
}

src/lib/Form/Type/FieldType/DateFieldType.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ public function getName()
3636
return $this->getBlockPrefix();
3737
}
3838

39-
public function getBlockPrefix()
39+
public function getBlockPrefix(): string
4040
{
4141
return 'ezplatform_fieldtype_ezdate';
4242
}
4343

44-
public function getParent()
44+
public function getParent(): ?string
4545
{
4646
return IntegerType::class;
4747
}

src/lib/Form/Type/FieldType/DateTimeFieldType.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ public function getName()
2626
return $this->getBlockPrefix();
2727
}
2828

29-
public function getBlockPrefix()
29+
public function getBlockPrefix(): string
3030
{
3131
return 'ezplatform_fieldtype_ezdatetime';
3232
}
3333

34-
public function getParent()
34+
public function getParent(): ?string
3535
{
3636
return IntegerType::class;
3737
}

src/lib/Form/Type/FieldType/FloatFieldType.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ public function getName()
3535
return $this->getBlockPrefix();
3636
}
3737

38-
public function getBlockPrefix()
38+
public function getBlockPrefix(): string
3939
{
4040
return 'ezplatform_fieldtype_ezfloat';
4141
}
4242

43-
public function getParent()
43+
public function getParent(): ?string
4444
{
4545
return NumberType::class;
4646
}

src/lib/Form/Type/FieldType/ISBNFieldType.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ public function getName()
3232
return $this->getBlockPrefix();
3333
}
3434

35-
public function getBlockPrefix()
35+
public function getBlockPrefix(): string
3636
{
3737
return 'ezplatform_fieldtype_ezisbn';
3838
}
3939

40-
public function getParent()
40+
public function getParent(): ?string
4141
{
4242
return TextType::class;
4343
}

src/lib/Form/Type/FieldType/ImageAssetFieldType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function getName()
5555
return $this->getBlockPrefix();
5656
}
5757

58-
public function getBlockPrefix()
58+
public function getBlockPrefix(): string
5959
{
6060
return 'ezplatform_fieldtype_ezimageasset';
6161
}

src/lib/Form/Type/FieldType/ImageFieldType.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ public function getName()
3535
return $this->getBlockPrefix();
3636
}
3737

38-
public function getBlockPrefix()
38+
public function getBlockPrefix(): string
3939
{
4040
return 'ezplatform_fieldtype_ezimage';
4141
}
4242

43-
public function getParent()
43+
public function getParent(): ?string
4444
{
4545
return BinaryBaseFieldType::class;
4646
}

src/lib/Form/Type/FieldType/IntegerFieldType.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ public function getName()
3535
return $this->getBlockPrefix();
3636
}
3737

38-
public function getBlockPrefix()
38+
public function getBlockPrefix(): string
3939
{
4040
return 'ezplatform_fieldtype_ezinteger';
4141
}
4242

43-
public function getParent()
43+
public function getParent(): ?string
4444
{
4545
return IntegerType::class;
4646
}

src/lib/Form/Type/FieldType/KeywordFieldType.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ public function getName()
2323
return $this->getBlockPrefix();
2424
}
2525

26-
public function getBlockPrefix()
26+
public function getBlockPrefix(): string
2727
{
2828
return 'ezplatform_fieldtype_ezkeyword';
2929
}
3030

31-
public function getParent()
31+
public function getParent(): ?string
3232
{
3333
return TextType::class;
3434
}

src/lib/Form/Type/FieldType/MapLocationFieldType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function getName()
3737
return $this->getBlockPrefix();
3838
}
3939

40-
public function getBlockPrefix()
40+
public function getBlockPrefix(): string
4141
{
4242
return 'ezplatform_fieldtype_ezgmaplocation';
4343
}

src/lib/Form/Type/FieldType/MediaFieldType.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ public function getName()
2525
return $this->getBlockPrefix();
2626
}
2727

28-
public function getBlockPrefix()
28+
public function getBlockPrefix(): string
2929
{
3030
return 'ezplatform_fieldtype_ezmedia';
3131
}
3232

33-
public function getParent()
33+
public function getParent(): ?string
3434
{
3535
return BinaryBaseFieldType::class;
3636
}

src/lib/Form/Type/FieldType/RelationFieldType.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@ public function getName()
4747
return $this->getBlockPrefix();
4848
}
4949

50-
public function getBlockPrefix()
50+
public function getBlockPrefix(): string
5151
{
5252
return 'ezplatform_fieldtype_ezobjectrelation';
5353
}
5454

55-
public function getParent()
55+
public function getParent(): ?string
5656
{
5757
return IntegerType::class;
5858
}

src/lib/Form/Type/FieldType/RelationListFieldType.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@ public function getName()
4747
return $this->getBlockPrefix();
4848
}
4949

50-
public function getBlockPrefix()
50+
public function getBlockPrefix(): string
5151
{
5252
return 'ezplatform_fieldtype_ezobjectrelationlist';
5353
}
5454

55-
public function getParent()
55+
public function getParent(): ?string
5656
{
5757
return TextType::class;
5858
}

src/lib/Form/Type/FieldType/SelectionFieldType.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ public function getName()
2525
return $this->getBlockPrefix();
2626
}
2727

28-
public function getBlockPrefix()
28+
public function getBlockPrefix(): string
2929
{
3030
return 'ezplatform_fieldtype_ezselection';
3131
}
3232

33-
public function getParent()
33+
public function getParent(): ?string
3434
{
3535
return ChoiceType::class;
3636
}

src/lib/Form/Type/FieldType/TextBlockFieldType.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ public function getName()
3535
return $this->getBlockPrefix();
3636
}
3737

38-
public function getBlockPrefix()
38+
public function getBlockPrefix(): string
3939
{
4040
return 'ezplatform_fieldtype_eztext';
4141
}
4242

43-
public function getParent()
43+
public function getParent(): ?string
4444
{
4545
return TextareaType::class;
4646
}

0 commit comments

Comments
 (0)