Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IBX-8138: [Rector] Applied rules from Symfony 5 Rector set lists #71

Merged
merged 2 commits into from
Aug 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/lib/Content/View/Filter/ContentCreateViewFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function __construct(
$this->languagePreferenceProvider = $languagePreferenceProvider;
}

public static function getSubscribedEvents()
public static function getSubscribedEvents(): array
{
return [ViewEvents::FILTER_BUILDER_PARAMETERS => 'handleContentCreateForm'];
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/Content/View/Filter/ContentEditViewFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public function __construct(
$this->locationService = $locationService;
}

public static function getSubscribedEvents()
public static function getSubscribedEvents(): array
{
return [ViewEvents::FILTER_BUILDER_PARAMETERS => 'handleContentEditForm'];
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/EventListener/ViewTemplatesListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function __construct(ConfigResolverInterface $configResolver)
$this->configResolver = $configResolver;
}

public static function getSubscribedEvents()
public static function getSubscribedEvents(): array
{
return [MVCEvents::PRE_CONTENT_VIEW => 'setViewTemplates'];
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/
class SuppressValidationSubscriber implements EventSubscriberInterface
{
public static function getSubscribedEvents()
public static function getSubscribedEvents(): array
{
return [
FormEvents::POST_SUBMIT => [
Expand Down
2 changes: 1 addition & 1 deletion src/lib/Form/EventSubscriber/UserFieldsSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*/
class UserFieldsSubscriber implements EventSubscriberInterface
{
public static function getSubscribedEvents()
public static function getSubscribedEvents(): array
{
return [
FormEvents::SUBMIT => 'handleUserAccountField',
Expand Down
2 changes: 1 addition & 1 deletion src/lib/Form/Processor/User/UserCancelFormProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public function __construct(
$this->urlGenerator = $urlGenerator;
}

public static function getSubscribedEvents()
public static function getSubscribedEvents(): array
{
return [
ContentFormEvents::USER_CANCEL => ['processCancel', 10],
Expand Down
2 changes: 1 addition & 1 deletion src/lib/Form/Processor/User/UserCreateFormProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function __construct(
$this->urlGenerator = $urlGenerator;
}

public static function getSubscribedEvents()
public static function getSubscribedEvents(): array
{
return [
ContentFormEvents::USER_CREATE => ['processCreate', 20],
Expand Down
2 changes: 1 addition & 1 deletion src/lib/Form/Processor/User/UserUpdateFormProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function __construct(
$this->urlGenerator = $urlGenerator;
}

public static function getSubscribedEvents()
public static function getSubscribedEvents(): array
{
return [
ContentFormEvents::USER_UPDATE => ['processUpdate', 20],
Expand Down
2 changes: 1 addition & 1 deletion src/lib/Form/Type/Content/BaseContentType.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function getName()
return $this->getBlockPrefix();
}

public function getBlockPrefix()
public function getBlockPrefix(): string
{
return 'ezplatform_content_forms_content';
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/Form/Type/Content/ContentDraftCreateType.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function getName()
return $this->getBlockPrefix();
}

public function getBlockPrefix()
public function getBlockPrefix(): string
{
return 'ezplatform_content_forms_content_draft_create';
}
Expand Down
4 changes: 2 additions & 2 deletions src/lib/Form/Type/Content/ContentEditType.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@ public function getName()
return $this->getBlockPrefix();
}

public function getBlockPrefix()
public function getBlockPrefix(): string
{
return 'ezplatform_content_forms_content_edit';
}

public function getParent()
public function getParent(): ?string
{
return BaseContentType::class;
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/Form/Type/Content/ContentFieldType.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function getName()
return $this->getBlockPrefix();
}

public function getBlockPrefix()
public function getBlockPrefix(): string
{
return 'ezplatform_content_forms_content_field';
}
Expand Down
4 changes: 2 additions & 2 deletions src/lib/Form/Type/FieldType/Author/AuthorCollectionType.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public function getName()
return $this->getBlockPrefix();
}

public function getBlockPrefix()
public function getBlockPrefix(): string
{
return 'ezplatform_fieldtype_ezauthor_authors';
}
Expand All @@ -38,7 +38,7 @@ public function configureOptions(OptionsResolver $resolver)
]);
}

public function getParent()
public function getParent(): ?string
{
return CollectionType::class;
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/Form/Type/FieldType/Author/AuthorEntryType.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function getName()
/**
* @return string
*/
public function getBlockPrefix()
public function getBlockPrefix(): string
{
return 'ezplatform_fieldtype_ezauthor_authors_entry';
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/Form/Type/FieldType/AuthorFieldType.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function getName()
/**
* @return string
*/
public function getBlockPrefix()
public function getBlockPrefix(): string
{
return 'ezplatform_fieldtype_ezauthor';
}
Expand Down
4 changes: 2 additions & 2 deletions src/lib/Form/Type/FieldType/BinaryFileFieldType.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ public function getName()
return $this->getBlockPrefix();
}

public function getBlockPrefix()
public function getBlockPrefix(): string
{
return 'ezplatform_fieldtype_ezbinaryfile';
}

public function getParent()
public function getParent(): ?string
{
return BinaryBaseFieldType::class;
}
Expand Down
4 changes: 2 additions & 2 deletions src/lib/Form/Type/FieldType/CheckboxFieldType.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ public function getName()
return $this->getBlockPrefix();
}

public function getBlockPrefix()
public function getBlockPrefix(): string
{
return 'ezplatform_fieldtype_ezboolean';
}

public function getParent()
public function getParent(): ?string
{
return CheckboxType::class;
}
Expand Down
4 changes: 2 additions & 2 deletions src/lib/Form/Type/FieldType/CountryFieldType.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ public function getName()
return $this->getBlockPrefix();
}

public function getBlockPrefix()
public function getBlockPrefix(): string
{
return 'ezplatform_fieldtype_ezcountry';
}

public function getParent()
public function getParent(): ?string
{
return ChoiceType::class;
}
Expand Down
4 changes: 2 additions & 2 deletions src/lib/Form/Type/FieldType/DateFieldType.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ public function getName()
return $this->getBlockPrefix();
}

public function getBlockPrefix()
public function getBlockPrefix(): string
{
return 'ezplatform_fieldtype_ezdate';
}

public function getParent()
public function getParent(): ?string
{
return IntegerType::class;
}
Expand Down
4 changes: 2 additions & 2 deletions src/lib/Form/Type/FieldType/DateTimeFieldType.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ public function getName()
return $this->getBlockPrefix();
}

public function getBlockPrefix()
public function getBlockPrefix(): string
{
return 'ezplatform_fieldtype_ezdatetime';
}

public function getParent()
public function getParent(): ?string
{
return IntegerType::class;
}
Expand Down
4 changes: 2 additions & 2 deletions src/lib/Form/Type/FieldType/FloatFieldType.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ public function getName()
return $this->getBlockPrefix();
}

public function getBlockPrefix()
public function getBlockPrefix(): string
{
return 'ezplatform_fieldtype_ezfloat';
}

public function getParent()
public function getParent(): ?string
{
return NumberType::class;
}
Expand Down
4 changes: 2 additions & 2 deletions src/lib/Form/Type/FieldType/ISBNFieldType.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ public function getName()
return $this->getBlockPrefix();
}

public function getBlockPrefix()
public function getBlockPrefix(): string
{
return 'ezplatform_fieldtype_ezisbn';
}

public function getParent()
public function getParent(): ?string
{
return TextType::class;
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/Form/Type/FieldType/ImageAssetFieldType.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public function getName()
return $this->getBlockPrefix();
}

public function getBlockPrefix()
public function getBlockPrefix(): string
{
return 'ezplatform_fieldtype_ezimageasset';
}
Expand Down
4 changes: 2 additions & 2 deletions src/lib/Form/Type/FieldType/ImageFieldType.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ public function getName()
return $this->getBlockPrefix();
}

public function getBlockPrefix()
public function getBlockPrefix(): string
{
return 'ezplatform_fieldtype_ezimage';
}

public function getParent()
public function getParent(): ?string
{
return BinaryBaseFieldType::class;
}
Expand Down
4 changes: 2 additions & 2 deletions src/lib/Form/Type/FieldType/IntegerFieldType.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ public function getName()
return $this->getBlockPrefix();
}

public function getBlockPrefix()
public function getBlockPrefix(): string
{
return 'ezplatform_fieldtype_ezinteger';
}

public function getParent()
public function getParent(): ?string
{
return IntegerType::class;
}
Expand Down
4 changes: 2 additions & 2 deletions src/lib/Form/Type/FieldType/KeywordFieldType.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ public function getName()
return $this->getBlockPrefix();
}

public function getBlockPrefix()
public function getBlockPrefix(): string
{
return 'ezplatform_fieldtype_ezkeyword';
}

public function getParent()
public function getParent(): ?string
{
return TextType::class;
}
Expand Down
2 changes: 1 addition & 1 deletion src/lib/Form/Type/FieldType/MapLocationFieldType.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function getName()
return $this->getBlockPrefix();
}

public function getBlockPrefix()
public function getBlockPrefix(): string
{
return 'ezplatform_fieldtype_ezgmaplocation';
}
Expand Down
4 changes: 2 additions & 2 deletions src/lib/Form/Type/FieldType/MediaFieldType.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ public function getName()
return $this->getBlockPrefix();
}

public function getBlockPrefix()
public function getBlockPrefix(): string
{
return 'ezplatform_fieldtype_ezmedia';
}

public function getParent()
public function getParent(): ?string
{
return BinaryBaseFieldType::class;
}
Expand Down
4 changes: 2 additions & 2 deletions src/lib/Form/Type/FieldType/RelationFieldType.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ public function getName()
return $this->getBlockPrefix();
}

public function getBlockPrefix()
public function getBlockPrefix(): string
{
return 'ezplatform_fieldtype_ezobjectrelation';
}

public function getParent()
public function getParent(): ?string
{
return IntegerType::class;
}
Expand Down
4 changes: 2 additions & 2 deletions src/lib/Form/Type/FieldType/RelationListFieldType.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ public function getName()
return $this->getBlockPrefix();
}

public function getBlockPrefix()
public function getBlockPrefix(): string
{
return 'ezplatform_fieldtype_ezobjectrelationlist';
}

public function getParent()
public function getParent(): ?string
{
return TextType::class;
}
Expand Down
4 changes: 2 additions & 2 deletions src/lib/Form/Type/FieldType/SelectionFieldType.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ public function getName()
return $this->getBlockPrefix();
}

public function getBlockPrefix()
public function getBlockPrefix(): string
{
return 'ezplatform_fieldtype_ezselection';
}

public function getParent()
public function getParent(): ?string
{
return ChoiceType::class;
}
Expand Down
4 changes: 2 additions & 2 deletions src/lib/Form/Type/FieldType/TextBlockFieldType.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ public function getName()
return $this->getBlockPrefix();
}

public function getBlockPrefix()
public function getBlockPrefix(): string
{
return 'ezplatform_fieldtype_eztext';
}

public function getParent()
public function getParent(): ?string
{
return TextareaType::class;
}
Expand Down
Loading
Loading