Commit 93956ccb authored by Wouter Wolters's avatar Wouter Wolters Committed by Andreas Fernandez
Browse files

[TASK] Remove NULL initialization and redundant assignments

Class properties explicitly initialized with NULL and
redundant assignments in constructors are removed.

Resolves: #85287
Releases: master
Change-Id: I44c565a0b54e7e98ffa6d2d1de5335a6212a5742
Reviewed-on: https://review.typo3.org/57243


Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: Alexander Schnitzler's avatarAlexander Schnitzler <typo3@alexanderschnitzler.de>
Reviewed-by: Jigal van Hemert's avatarJigal van Hemert <jigal.van.hemert@typo3.org>
Reviewed-by: default avatarStefan Neufeind <typo3.neufeind@speedpartner.de>
Tested-by: default avatarStefan Neufeind <typo3.neufeind@speedpartner.de>
Reviewed-by: Andreas Fernandez's avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: Andreas Fernandez's avatarAndreas Fernandez <a.fernandez@scripting-base.de>
parent 8378c8a6
......@@ -28,7 +28,7 @@ class HelpToolbarItem implements ToolbarItemInterface
/**
* @var BackendModule
*/
protected $helpModuleMenu = null;
protected $helpModuleMenu;
/**
* Constructor
......
......@@ -68,7 +68,7 @@ class SystemInformationToolbarItem implements ToolbarItemInterface
/**
* @var Dispatcher
*/
protected $signalSlotDispatcher = null;
protected $signalSlotDispatcher;
/**
* @var int
......
......@@ -64,7 +64,7 @@ class LoginController implements LoggerAwareInterface
*
* @var string
*/
protected $loginProviderIdentifier = null;
protected $loginProviderIdentifier;
/**
* List of registered and sorted login providers
......
......@@ -91,7 +91,7 @@ class TreeController
*
* @var array|null
*/
protected $domains = null;
protected $domains;
/**
* Instance of the icon factory, to be used for generating the items.
......
......@@ -85,7 +85,7 @@ class FormResultCompiler
/**
* @var PageRenderer
*/
protected $pageRenderer = null;
protected $pageRenderer;
/**
* Merge existing data with the given result array
......
......@@ -91,12 +91,12 @@ class FrontendBackendUserAuthentication extends BackendUserAuthentication
* @var \TYPO3\CMS\Adminpanel\View\AdminPanelView Instance of admin panel
* @deprecated since TYPO3v9, property will be removed in TYPO3 v10 - see extension "adminpanel" for new API
*/
public $adminPanel = null;
public $adminPanel;
/**
* @var \TYPO3\CMS\Core\FrontendEditing\FrontendEditingController
*/
public $frontendEdit = null;
public $frontendEdit;
/**
* @var array
......
......@@ -75,7 +75,7 @@ abstract class AbstractFunctionModule
/**
* @var BaseScriptClass
*/
public $extObj = null;
public $extObj;
/**
* Can be hardcoded to the name of a locallang.xlf file (from the same directory as the class file) to use/load
......@@ -107,7 +107,7 @@ abstract class AbstractFunctionModule
/**
* @var PageRenderer
*/
protected $pageRenderer = null;
protected $pageRenderer;
/**
* Initialize the object
......
......@@ -184,7 +184,7 @@ class BaseScriptClass
/**
* @var PageRenderer
*/
protected $pageRenderer = null;
protected $pageRenderer;
/**
* Initializes the backend module by setting internal variables, initializing the menu.
......
......@@ -78,7 +78,7 @@ class LiveSearch
/**
* @var \TYPO3\CMS\Backend\Search\LiveSearch\QueryParser
*/
protected $queryParser = null;
protected $queryParser;
/**
* Initialize access settings
......
......@@ -214,7 +214,7 @@ function jumpToUrl(URL) {
/**
* @var PageRenderer
*/
protected $pageRenderer = null;
protected $pageRenderer;
/**
* Alternative template file
......
......@@ -24,14 +24,14 @@ abstract class AbstractTree
*
* @var \TYPO3\CMS\Backend\Tree\AbstractTreeDataProvider
*/
protected $dataProvider = null;
protected $dataProvider;
/**
* Tree Node Decorator
*
* @var \TYPO3\CMS\Backend\Tree\Renderer\AbstractTreeRenderer
*/
protected $nodeRenderer = null;
protected $nodeRenderer;
/**
* @param \TYPO3\CMS\Backend\Tree\AbstractTreeDataProvider $dataProvider
......
......@@ -24,7 +24,7 @@ abstract class AbstractTreeDataProvider
*
* @var \TYPO3\CMS\Backend\Tree\TreeNode
*/
protected $rootNode = null;
protected $rootNode;
/**
* Returns the root node
......
......@@ -33,14 +33,14 @@ class TreeNode implements \TYPO3\CMS\Backend\Tree\ComparableNodeInterface, \Seri
*
* @var \TYPO3\CMS\Backend\Tree\TreeNode
*/
protected $parentNode = null;
protected $parentNode;
/**
* Child Nodes
*
* @var \TYPO3\CMS\Backend\Tree\TreeNodeCollection
*/
protected $childNodes = null;
protected $childNodes;
/**
* Constructor
......
......@@ -105,7 +105,7 @@ abstract class AbstractTreeView
*
* @var array|null
*/
public $MOUNTS = null;
public $MOUNTS;
/**
* Database table to get the tree data from.
......
......@@ -37,7 +37,7 @@ class FolderTreeView extends AbstractTreeView
*
* @var ResourceStorage[]
*/
protected $storages = null;
protected $storages;
/**
* @var array
......
......@@ -77,7 +77,7 @@ abstract class AbstractController extends ActionController
/**
* @var \TYPO3\CMS\Belog\Domain\Repository\LogEntryRepository
*/
protected $logEntryRepository = null;
protected $logEntryRepository;
/**
* @var BackendTemplateView
......
......@@ -79,13 +79,13 @@ class Constraint extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
* Manual date start
* @var \DateTime
*/
protected $manualDateStart = null;
protected $manualDateStart;
/**
* Manual date stop
* @var \DateTime
*/
protected $manualDateStop = null;
protected $manualDateStop;
/**
* Whether the plugin is called in page context (submodule of Web > Info)
......
......@@ -22,7 +22,7 @@ class ConstraintTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
/**
* @var \TYPO3\CMS\Belog\Domain\Model\Constraint
*/
protected $subject = null;
protected $subject;
protected function setUp()
{
......
......@@ -22,7 +22,7 @@ class LogEntryTest extends \TYPO3\TestingFramework\Core\Unit\UnitTestCase
/**
* @var \TYPO3\CMS\Belog\Domain\Model\LogEntry
*/
protected $subject = null;
protected $subject;
protected function setUp()
{
......
......@@ -283,7 +283,7 @@ abstract class AbstractUserAuthentication implements LoggerAwareInterface
* @var array|null contains user- AND session-data from database (joined tables)
* @internal
*/
public $user = null;
public $user;
/**
* Will be added to the url (eg. '&login=ab7ef8d...')
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment