Commit aed4b6b0 authored by Alexander Schnitzler's avatar Alexander Schnitzler Committed by Georg Ringer
Browse files

[CLEANUP] The correct case must be used for standard PHP types in phpdoc

This patch applies the phpdoc_types rule of the
php-cs-fixer. See http://cs.sensiolabs.org/ -> phpdoc_types

Releases: master, 8.7
Resolves: #83106
Change-Id: I958b75d85a08169a987afe9eed0baa4d86139770
Reviewed-on: https://review.typo3.org/54770

Reviewed-by: Wouter Wolters's avatarWouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters's avatarWouter Wolters <typo3@wouterwolters.nl>
Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer's avatarGeorg Ringer <georg.ringer@gmail.com>
parent 63a2a917
......@@ -81,5 +81,6 @@ return PhpCsFixer\Config::create()
'phpdoc_trim' => true,
'no_superfluous_elseif' => true,
'no_useless_else' => true,
'phpdoc_types' => true,
])
->setFinder($finder);
......@@ -115,7 +115,7 @@ class Avatar
*
* @param array $backendUser be_users record
* @param int $size
* @return Image|NULL
* @return Image|null
*/
public function getImage(array $backendUser, $size)
{
......
......@@ -24,7 +24,7 @@ interface AvatarProviderInterface
*
* @param array $backendUser be_users record
* @param int $size
* @return Image|NULL
* @return Image|null
*/
public function getImage(array $backendUser, $size);
}
......@@ -31,7 +31,7 @@ class DefaultAvatarProvider implements AvatarProviderInterface
*
* @param array $backendUser be_users record
* @param int $size
* @return Image|NULL
* @return Image|null
*/
public function getImage(array $backendUser, $size)
{
......
......@@ -606,7 +606,7 @@ class Clipboard
* @param string $table Tablename (_FILE for files)
* @param mixed $uid "destination": can be positive or negative indicating how the paste is done (paste into / paste after)
* @param bool $setRedirect If set, then the redirect URL will point back to the current script, but with CB reset.
* @param array|NULL $update Additional key/value pairs which should get set in the moved/copied record (via DataHandler)
* @param array|null $update Additional key/value pairs which should get set in the moved/copied record (via DataHandler)
* @return string
*/
public function pasteUrl($table, $uid, $setRedirect = true, array $update = null)
......@@ -940,7 +940,7 @@ class Clipboard
*
* @param string $ref [tablename]:[paste-uid], see description
* @param array $CMD Command-array
* @param NULL|array If additional values should get set in the copied/moved record this will be an array containing key=>value pairs
* @param null|array If additional values should get set in the copied/moved record this will be an array containing key=>value pairs
* @return array Modified Command-array
*/
public function makePasteCmdArray($ref, $CMD, array $update = null)
......
......@@ -144,7 +144,7 @@ class AjaxLoginController
}
/**
* @return BackendUserAuthentication|NULL
* @return BackendUserAuthentication|null
*/
protected function getBackendUser()
{
......
......@@ -442,7 +442,7 @@ class ElementHistoryController
*
* @param string $table
* @param int $uid
* @return array|NULL
* @return array|null
*/
protected function getRecord($table, $uid)
{
......
......@@ -209,7 +209,7 @@ class EditDocumentController
/**
* Workspace used for the editing action.
*
* @var NULL|int
* @var null|int
*/
protected $workspace;
......
......@@ -706,7 +706,7 @@ class FormInlineAjaxController extends AbstractFormEngineAjaxController
* Get inlineFirstPid from a given objectId string
*
* @param string $domObjectId The id attribute of an element
* @return int|NULL Pid or null
* @return int|null Pid or null
*/
protected function getInlineFirstPidFromDomObjectId($domObjectId)
{
......
......@@ -110,7 +110,7 @@ class OnlineMediaController
* @param string $url
* @param string $targetFolderIdentifier
* @param string[] $allowedExtensions
* @return File|NULL
* @return File|null
*/
protected function addMediaFromUrl($url, $targetFolderIdentifier, array $allowedExtensions = [])
{
......
......@@ -71,7 +71,7 @@ class BackendModuleRepository implements \TYPO3\CMS\Core\SingletonInterface
/**
* @param string $groupName
* @return \SplObjectStorage|FALSE
* @return \SplObjectStorage|false
**/
public function findByGroupName($groupName = '')
{
......
......@@ -614,7 +614,7 @@ class InlineControlContainer extends AbstractContainer
* Helper method used in inline
*
* @param string $formElementName The form element name
* @return array|NULL
* @return array|null
*/
protected function extractFlexFormParts($formElementName)
{
......
......@@ -66,7 +66,7 @@ class AjaxRequestHandler implements RequestHandlerInterface
* Handles any AJAX request in the TYPO3 Backend
*
* @param ServerRequestInterface $request
* @return NULL|\Psr\Http\Message\ResponseInterface
* @return null|\Psr\Http\Message\ResponseInterface
*/
public function handleRequest(ServerRequestInterface $request)
{
......
......@@ -213,7 +213,7 @@ class PageTsBackendLayoutDataProvider implements DataProviderInterface
*
* @param string $identifier
* @param int $pageId
* @return NULL|BackendLayout
* @return null|BackendLayout
*/
public function getBackendLayout($identifier, $pageId)
{
......
......@@ -106,7 +106,7 @@ class CategoryPermissionsAspect
*
* @param int $categoryMountPoint
* @param TreeNodeCollection $treeNodeCollection
* @return NULL|TreeNode
* @return null|TreeNode
*/
protected function lookUpCategoryMountPointInTreeNodes($categoryMountPoint, TreeNodeCollection $treeNodeCollection)
{
......
......@@ -124,7 +124,7 @@ class TreeNode implements \TYPO3\CMS\Backend\Tree\ComparableNodeInterface, \Seri
/**
* Sets the parent node
*
* @param NULL|\TYPO3\CMS\Backend\Tree\TreeNode $parentNode
* @param null|\TYPO3\CMS\Backend\Tree\TreeNode $parentNode
*/
public function setParentNode(\TYPO3\CMS\Backend\Tree\TreeNode $parentNode = null)
{
......
......@@ -104,7 +104,7 @@ abstract class AbstractTreeView
* values are the ID of the root element (COULD be zero or anything else.
* For pages that would be the uid of the page, zero for the pagetree root.)
*
* @var array|NULL
* @var array|null
*/
public $MOUNTS = null;
......
......@@ -110,7 +110,7 @@ class BackendUtility
* @param string $fields List of fields to select
* @param string $where Additional WHERE clause, eg. " AND blablabla = 0
* @param bool $useDeleteClause Use the deleteClause to check if a record is deleted (default TRUE)
* @return array|NULL Returns the row if found, otherwise NULL
* @return array|null Returns the row if found, otherwise NULL
*/
public static function getRecord($table, $uid, $fields = '*', $where = '', $useDeleteClause = true)
{
......@@ -626,7 +626,7 @@ class BackendUtility
* @param string $table Table name (present in TCA)
* @param array $rec Record from $table
* @param bool $useFieldNameAsKey If $useFieldNameAsKey is set, then the fieldname is associative keys in the return array, otherwise just numeric keys.
* @return array|NULL
* @return array|null
*/
public static function getTCAtypes($table, $rec, $useFieldNameAsKey = false)
{
......@@ -1200,8 +1200,8 @@ class BackendUtility
* @param string $tableName Name of the table of the record
* @param string $fieldName Name of the field of the record
* @param array $element Record data
* @param NULL|int $workspaceId Workspace to fetch data for
* @return NULL|\TYPO3\CMS\Core\Resource\FileReference[]
* @param null|int $workspaceId Workspace to fetch data for
* @return null|\TYPO3\CMS\Core\Resource\FileReference[]
*/
public static function resolveFileReferences($tableName, $fieldName, $element, $workspaceId = null)
{
......@@ -1847,7 +1847,7 @@ class BackendUtility
* @param bool $forceResult If BackendUtility::getRecordTitle is used to process the value, this parameter is forwarded.
* @param int $pid Optional page uid is used to evaluate page TSConfig for the given field
* @throws \InvalidArgumentException
* @return string|NULL
* @return string|null
*/
public static function getProcessedValue(
$table,
......@@ -2511,7 +2511,7 @@ class BackendUtility
*
* @param int $pageUid Page UID
* @param string $backPath Must point back to TYPO3_mainDir (where the site is assumed to be one level above)
* @param array|NULL $rootLine If root line is supplied the function will look for the first found domain record and use that URL instead (if found)
* @param array|null $rootLine If root line is supplied the function will look for the first found domain record and use that URL instead (if found)
* @param string $anchorSection Optional anchor to the URL
* @param string $alternativeUrl An alternative URL that, if set, will ignore other parameters except $switchFocus: It will return the window.open command wrapped around this URL!
* @param string $additionalGetVars Additional GET variables.
......@@ -2710,7 +2710,7 @@ class BackendUtility
* line.
*
* @param int $pageId The page ID to use, must be > 0
* @param array|NULL $rootLine The root line structure to use
* @param array|null $rootLine The root line structure to use
* @return string The full domain including the protocol http:// or https://, but without the trailing '/'
*/
public static function getViewDomain($pageId, $rootLine = null)
......@@ -3456,7 +3456,7 @@ class BackendUtility
* Returns first found domain record "domainName" (without trailing slash) if found in the input $rootLine
*
* @param array $rootLine Root line array
* @return string|NULL Domain name or NULL
* @return string|null Domain name or NULL
*/
public static function firstDomainRecord($rootLine)
{
......@@ -3644,7 +3644,7 @@ class BackendUtility
* @param string $table Table name (or "_FILE" if its a file)
* @param string $ref Reference: If table, then int-uid, if _FILE, then file reference (relative to PATH_site)
* @param string $msg Message with %s, eg. "There were %s records pointing to this file!
* @param string|NULL $count Reference count
* @param string|null $count Reference count
* @return string Output string (or int count value if no msg string specified)
*/
public static function referenceCount($table, $ref, $msg = '', $count = null)
......@@ -3746,10 +3746,10 @@ class BackendUtility
* @param string $table Table name to select from
* @param int $uid Record uid for which to find versions.
* @param string $fields Field list to select
* @param int|NULL $workspace Search in workspace ID and Live WS, if 0 search only in LiveWS, if NULL search in all WS.
* @param int|null $workspace Search in workspace ID and Live WS, if 0 search only in LiveWS, if NULL search in all WS.
* @param bool $includeDeletedRecords If set, deleted-flagged versions are included! (Only for clean-up script!)
* @param array $row The current record
* @return array|NULL Array of versions of table/uid
* @return array|null Array of versions of table/uid
*/
public static function selectVersionsOfRecord(
$table,
......@@ -4071,7 +4071,7 @@ class BackendUtility
* @param string $table Table name
* @param int $uid Record UID of draft, offline version
* @param string $fields Field list, default is *
* @return array|NULL If found, the record, otherwise NULL
* @return array|null If found, the record, otherwise NULL
*/
public static function getLiveVersionOfRecord($table, $uid, $fields = '*')
{
......@@ -4165,7 +4165,7 @@ class BackendUtility
* @param string $table Table name
* @param int $uid Record UID of online version
* @param string $fields Field list, default is *
* @param int|NULL $workspace The workspace to be used
* @param int|null $workspace The workspace to be used
* @return array|bool If found, the record, otherwise false
*/
public static function getMovePlaceholder($table, $uid, $fields = '*', $workspace = null)
......
......@@ -92,7 +92,7 @@ class BackendLayoutCollection
* Gets a backend layout by (regular) identifier.
*
* @param string $identifier
* @return NULL|BackendLayout
* @return null|BackendLayout
*/
public function get($identifier)
{
......
......@@ -93,7 +93,7 @@ class DataProviderCollection implements \TYPO3\CMS\Core\SingletonInterface
*
* @param string $combinedIdentifier
* @param int $pageId
* @return NULL|BackendLayout
* @return null|BackendLayout
*/
public function getBackendLayout($combinedIdentifier, $pageId)
{
......
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