Skip to content

Commit

Permalink
[TASK] Declare PHP classes final (#462)
Browse files Browse the repository at this point in the history
  • Loading branch information
lolli42 authored Oct 30, 2023
1 parent ed76d23 commit 9b4ee26
Show file tree
Hide file tree
Showing 87 changed files with 87 additions and 87 deletions.
2 changes: 1 addition & 1 deletion Classes/Command/GeneratorCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
/**
* Generate TCA for Styleguide backend (create / delete)
*/
class GeneratorCommand extends Command
final class GeneratorCommand extends Command
{
protected function configure(): void
{
Expand Down
2 changes: 1 addition & 1 deletion Classes/Controller/BackendController.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
* Styleguide main backend module in the help toolbar
*/
#[Controller]
class BackendController
final class BackendController
{
/**
* @var non-empty-array<int, string>
Expand Down
2 changes: 1 addition & 1 deletion Classes/Form/Element/User1Element.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
/**
* A user function rendering a type=user TCA type used in user_1
*/
class User1Element extends AbstractFormElement
final class User1Element extends AbstractFormElement
{
use OnFieldChangeTrait;

Expand Down
2 changes: 1 addition & 1 deletion Classes/Service/KauderwelschService.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
/**
* Get test strings
*/
class KauderwelschService
final class KauderwelschService
{
/**
* Lorem ipsum test with fixed length.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
/**
* Implement some standard stuff
*/
class AbstractFieldGenerator
abstract class AbstractFieldGenerator
{
/**
* @var KauderwelschService
Expand Down
2 changes: 1 addition & 1 deletion Classes/TcaDataGenerator/FieldGenerator/ConfigDefault.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
/**
* Use "default" value if set in config
*/
class ConfigDefault extends AbstractFieldGenerator implements FieldGeneratorInterface
final class ConfigDefault extends AbstractFieldGenerator implements FieldGeneratorInterface
{
/**
* Match if ['config']['default'] is set.
Expand Down
2 changes: 1 addition & 1 deletion Classes/TcaDataGenerator/FieldGenerator/TypeCheck.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
/**
* Generate data for type=check fields
*/
class TypeCheck extends AbstractFieldGenerator implements FieldGeneratorInterface
final class TypeCheck extends AbstractFieldGenerator implements FieldGeneratorInterface
{
/**
* @var array General match if type=check
Expand Down
2 changes: 1 addition & 1 deletion Classes/TcaDataGenerator/FieldGenerator/TypeColor.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
/**
* Generate data for type=color fields
*/
class TypeColor extends AbstractFieldGenerator implements FieldGeneratorInterface
final class TypeColor extends AbstractFieldGenerator implements FieldGeneratorInterface
{
/**
* General match if type=color
Expand Down
2 changes: 1 addition & 1 deletion Classes/TcaDataGenerator/FieldGenerator/TypeDatetime.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
/**
* Generate data for type=datetime fields
*/
class TypeDatetime extends AbstractFieldGenerator implements FieldGeneratorInterface
final class TypeDatetime extends AbstractFieldGenerator implements FieldGeneratorInterface
{
/**
* General match if type=datetime
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
/**
* Generate data for type=datetime fields with dbType=datetime
*/
class TypeDatetimeDbTypeDatetime extends AbstractFieldGenerator implements FieldGeneratorInterface
final class TypeDatetimeDbTypeDatetime extends AbstractFieldGenerator implements FieldGeneratorInterface
{
/**
* General match if type=datetime and dbType=datetime
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
/**
* Generate data for type=datetime fields with format=date
*/
class TypeDatetimeFormatDate extends AbstractFieldGenerator implements FieldGeneratorInterface
final class TypeDatetimeFormatDate extends AbstractFieldGenerator implements FieldGeneratorInterface
{
/**
* General match if type=datetime and format=date
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
/**
* Generate data for type=datetime fields with format=date and dbType=date
*/
class TypeDatetimeFormatDateDbTypeDate extends AbstractFieldGenerator implements FieldGeneratorInterface
final class TypeDatetimeFormatDateDbTypeDate extends AbstractFieldGenerator implements FieldGeneratorInterface
{
/**
* General match if type=datetime, format=date and dbType=date
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
/**
* Generate data for type=datetime fields with format=time
*/
class TypeDatetimeFormatTime extends AbstractFieldGenerator implements FieldGeneratorInterface
final class TypeDatetimeFormatTime extends AbstractFieldGenerator implements FieldGeneratorInterface
{
/**
* General match if type=datetime and format=time
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
/**
* Generate data for type=datetime fields with format=timesec
*/
class TypeDatetimeFormatTimesec extends AbstractFieldGenerator implements FieldGeneratorInterface
final class TypeDatetimeFormatTimesec extends AbstractFieldGenerator implements FieldGeneratorInterface
{
/**
* General match if type=datetime and format=timesec
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
/**
* Generate data for mandatory type=datetime fields with format=date
*/
class TypeDatetimeRequiredFormatDate extends AbstractFieldGenerator implements FieldGeneratorInterface
final class TypeDatetimeRequiredFormatDate extends AbstractFieldGenerator implements FieldGeneratorInterface
{
/**
* General match if type=datetime, format=date and required=true
Expand Down
2 changes: 1 addition & 1 deletion Classes/TcaDataGenerator/FieldGenerator/TypeEmail.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
/**
* Generate data for type=email fields
*/
class TypeEmail extends AbstractFieldGenerator implements FieldGeneratorInterface
final class TypeEmail extends AbstractFieldGenerator implements FieldGeneratorInterface
{
/**
* @var array General match if type=email
Expand Down
2 changes: 1 addition & 1 deletion Classes/TcaDataGenerator/FieldGenerator/TypeFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
/**
* Generate data for type=file fields
*/
class TypeFile extends AbstractFieldGenerator implements FieldGeneratorInterface
final class TypeFile extends AbstractFieldGenerator implements FieldGeneratorInterface
{
/**
* @var array General match if type=file
Expand Down
2 changes: 1 addition & 1 deletion Classes/TcaDataGenerator/FieldGenerator/TypeFlex.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
/**
* Generate data for type=flex fields
*/
class TypeFlex extends AbstractFieldGenerator implements FieldGeneratorInterface
final class TypeFlex extends AbstractFieldGenerator implements FieldGeneratorInterface
{
/**
* @var array General match if type=input
Expand Down
2 changes: 1 addition & 1 deletion Classes/TcaDataGenerator/FieldGenerator/TypeFolder.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
/**
* Generate data for type=folder fields
*/
class TypeFolder extends AbstractFieldGenerator implements FieldGeneratorInterface
final class TypeFolder extends AbstractFieldGenerator implements FieldGeneratorInterface
{
/**
* @var array General match if type=group
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
/**
* Generate data for type=group fields
*/
class TypeGroupAllowedBeUsers extends AbstractFieldGenerator implements FieldGeneratorInterface
final class TypeGroupAllowedBeUsers extends AbstractFieldGenerator implements FieldGeneratorInterface
{
/**
* @var array General match if type=group
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
/**
* Generate data for type=group fields
*/
class TypeGroupAllowedBeUsersBeGroups extends AbstractFieldGenerator implements FieldGeneratorInterface
final class TypeGroupAllowedBeUsersBeGroups extends AbstractFieldGenerator implements FieldGeneratorInterface
{
/**
* @var array General match if type=group
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
/**
* Generate data for type=group fields
*/
class TypeGroupAllowedPages extends AbstractFieldGenerator implements FieldGeneratorInterface
final class TypeGroupAllowedPages extends AbstractFieldGenerator implements FieldGeneratorInterface
{
/**
* @var array Match if type=group and allowed=pages
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
/**
* Generate data for type=group fields
*/
class TypeGroupAllowedStaticdata extends AbstractFieldGenerator implements FieldGeneratorInterface
final class TypeGroupAllowedStaticdata extends AbstractFieldGenerator implements FieldGeneratorInterface
{
/**
* @var array General match if type=group
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
/**
* Generate data for type=group fields
*/
class TypeGroupAllowedSysFiles extends AbstractFieldGenerator implements FieldGeneratorInterface
final class TypeGroupAllowedSysFiles extends AbstractFieldGenerator implements FieldGeneratorInterface
{
/**
* @var array Match if type=group and allowed=pages
Expand Down
2 changes: 1 addition & 1 deletion Classes/TcaDataGenerator/FieldGenerator/TypeGroupFal.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
/**
* Generate data for type=group fields
*/
class TypeGroupFal extends AbstractFieldGenerator implements FieldGeneratorInterface
final class TypeGroupFal extends AbstractFieldGenerator implements FieldGeneratorInterface
{
/**
* @var array General match if type=group
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
/**
* Generate data for type=none fields
*/
class TypeImageManipulation extends AbstractFieldGenerator implements FieldGeneratorInterface
final class TypeImageManipulation extends AbstractFieldGenerator implements FieldGeneratorInterface
{
/**
* @var array General match if type=input
Expand Down
2 changes: 1 addition & 1 deletion Classes/TcaDataGenerator/FieldGenerator/TypeInline1n.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
/**
* Generate data for type=inline fields
*/
class TypeInline1n extends AbstractFieldGenerator implements FieldGeneratorInterface
final class TypeInline1n extends AbstractFieldGenerator implements FieldGeneratorInterface
{
/**
* @var array General match if type=input
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* Special implementation for inline_1 of tx_styleguide_inline_expandsingle creates
* multiple child rows.
*/
class TypeInlineExpandsingle extends AbstractFieldGenerator implements FieldGeneratorInterface
final class TypeInlineExpandsingle extends AbstractFieldGenerator implements FieldGeneratorInterface
{
/**
* @var array General match if type=input
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* Generate data for fal_1 field of
* tx_styleguide_elements_select_single_12_foreign
*/
class TypeInlineFalSelectSingle12Foreign extends AbstractFieldGenerator implements FieldGeneratorInterface
final class TypeInlineFalSelectSingle12Foreign extends AbstractFieldGenerator implements FieldGeneratorInterface
{
/**
* Well ... this one is called twice and we want one image for the first image
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
* Special implementation for inline_1 of
* tx_styleguide_inline_usecombination and tx_styleguide_inline_usecombinationbox
*/
class TypeInlineUsecombination extends AbstractFieldGenerator implements FieldGeneratorInterface
final class TypeInlineUsecombination extends AbstractFieldGenerator implements FieldGeneratorInterface
{
/**
* @var array General match if type=input
Expand Down
2 changes: 1 addition & 1 deletion Classes/TcaDataGenerator/FieldGenerator/TypeInput.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
/**
* Generate data for type=input fields
*/
class TypeInput extends AbstractFieldGenerator implements FieldGeneratorInterface
final class TypeInput extends AbstractFieldGenerator implements FieldGeneratorInterface
{
/**
* @var array General match if type=input
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* Generate data for type=input fields
* "lipsum 23" for some special children
*/
class TypeInputDynamicTextWithRecordUid extends AbstractFieldGenerator implements FieldGeneratorInterface
final class TypeInputDynamicTextWithRecordUid extends AbstractFieldGenerator implements FieldGeneratorInterface
{
/**
* @var array General match if type=input
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
/**
* Generate data for type=input fields
*/
class TypeInputEvalAlphanum extends AbstractFieldGenerator implements FieldGeneratorInterface
final class TypeInputEvalAlphanum extends AbstractFieldGenerator implements FieldGeneratorInterface
{
/**
* @var array General match if type=input
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
/**
* Generate data for type=input fields
*/
class TypeInputEvalIsIn extends AbstractFieldGenerator implements FieldGeneratorInterface
final class TypeInputEvalIsIn extends AbstractFieldGenerator implements FieldGeneratorInterface
{
/**
* @var array General match if type=input
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
/**
* Generate data for type=input fields
*/
class TypeInputEvalMd5 extends AbstractFieldGenerator implements FieldGeneratorInterface
final class TypeInputEvalMd5 extends AbstractFieldGenerator implements FieldGeneratorInterface
{
/**
* @var array General match if type=input
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
/**
* Generate data for type=input fields
*/
class TypeInputEvalNum extends AbstractFieldGenerator implements FieldGeneratorInterface
final class TypeInputEvalNum extends AbstractFieldGenerator implements FieldGeneratorInterface
{
/**
* @var array General match if type=input
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
/**
* Generate data for type=input fields
*/
class TypeInputEvalUpper extends AbstractFieldGenerator implements FieldGeneratorInterface
final class TypeInputEvalUpper extends AbstractFieldGenerator implements FieldGeneratorInterface
{
/**
* @var array General match if type=input
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
/**
* Generate data for type=input fields
*/
class TypeInputEvalYear extends AbstractFieldGenerator implements FieldGeneratorInterface
final class TypeInputEvalYear extends AbstractFieldGenerator implements FieldGeneratorInterface
{
/**
* @var array General match if type=input
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
/**
* Generate data for type=input fields
*/
class TypeInputForceL10nParent extends AbstractFieldGenerator implements FieldGeneratorInterface
final class TypeInputForceL10nParent extends AbstractFieldGenerator implements FieldGeneratorInterface
{
public function match(array $data): bool
{
Expand Down
2 changes: 1 addition & 1 deletion Classes/TcaDataGenerator/FieldGenerator/TypeInputMax4.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
/**
* Generate data for type=input fields
*/
class TypeInputMax4 extends AbstractFieldGenerator implements FieldGeneratorInterface
final class TypeInputMax4 extends AbstractFieldGenerator implements FieldGeneratorInterface
{
/**
* @var array General match if type=input
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
/**
* Generate data for type=input fields
*/
class TypeInputMax4Min4 extends AbstractFieldGenerator implements FieldGeneratorInterface
final class TypeInputMax4Min4 extends AbstractFieldGenerator implements FieldGeneratorInterface
{
/**
* @var array General match if type=input
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
/**
* Generate data for type=input fields
*/
class TypeInputWizardSelect extends AbstractFieldGenerator implements FieldGeneratorInterface
final class TypeInputWizardSelect extends AbstractFieldGenerator implements FieldGeneratorInterface
{
/**
* @var array General match if type=input
Expand Down
2 changes: 1 addition & 1 deletion Classes/TcaDataGenerator/FieldGenerator/TypeLink.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
/**
* Generate data for type=link fields
*/
class TypeLink extends AbstractFieldGenerator implements FieldGeneratorInterface
final class TypeLink extends AbstractFieldGenerator implements FieldGeneratorInterface
{
/**
* @var array General match if type=link
Expand Down
2 changes: 1 addition & 1 deletion Classes/TcaDataGenerator/FieldGenerator/TypeNone.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
/**
* Generate data for type=none fields
*/
class TypeNone extends AbstractFieldGenerator implements FieldGeneratorInterface
final class TypeNone extends AbstractFieldGenerator implements FieldGeneratorInterface
{
/**
* @var array General match if type=input
Expand Down
Loading

0 comments on commit 9b4ee26

Please sign in to comment.