Project

General

Profile

Actions

Task #38335

closed

Useless method overriding in EXT:form

Added by Andy Grunwald almost 12 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Code Cleanup
Target version:
Start date:
2012-06-23
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.0
PHP Version:
Tags:
Complexity:
easy
Sprint Focus:

Description

In sysext "form" many methods are implemented twice.
Many methods just call his parents without any modification.

One example is tx_form_System_Validate_Digit::__construct():

/**
 * Constructor
 *
 * @param array $arguments Typoscript configuration
 * @return void
 */
public function __construct($arguments) {
    parent::__construct($arguments);
}

This is quite useless, because due OOP, the parent method is called, if the local class does not provide a local / override method.

Actions

Also available in: Atom PDF