Project

General

Profile

Actions

Bug #59000

closed

Code Cleanups in ExtraPageContextMenuOptions

Added by Sebastian Michaelsen over 10 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Code Cleanup
Target version:
-
Start date:
2014-05-21
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

\TYPO3\CMS\ExtraPageCmOptions\ExtraPageContextMenuOptions could use a few cleanups:

  • Use local variables with type hinting instead of $GLOBALS['BE_USER'] and $GLOBALS['LANG']
  • Don't use & on object function parameters (objects are always automatically passed by reference)
  • Rename and type-hint the "$backRef" parameter
Actions

Also available in: Atom PDF