Commit a3301a61 authored by Alexander Schnitzler's avatar Alexander Schnitzler Committed by Wouter Wolters
Browse files

[CLEANUP] Alwas put null at the last position

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

Releases: master, 8.7
Resolves: #83109
Change-Id: I57291fb0b113ad01e2a171c1cfd6a9943d6302ad
Reviewed-on: https://review.typo3.org/54779

Reviewed-by: Alexander Opitz's avatarAlexander Opitz <opitz.alexander@googlemail.com>
Tested-by: Alexander Opitz's avatarAlexander Opitz <opitz.alexander@googlemail.com>
Reviewed-by: Wouter Wolters's avatarWouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters's avatarWouter Wolters <typo3@wouterwolters.nl>
parent a5efad31
......@@ -82,5 +82,6 @@ return PhpCsFixer\Config::create()
'no_superfluous_elseif' => true,
'no_useless_else' => true,
'phpdoc_types' => true,
'phpdoc_types_order' => ['null_adjustment' => 'always_last', 'sort_algorithm' => 'none'],
])
->setFinder($finder);
......@@ -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 array|null 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)
......
......@@ -209,7 +209,7 @@ class EditDocumentController
/**
* Workspace used for the editing action.
*
* @var null|int
* @var int|null
*/
protected $workspace;
......
......@@ -196,7 +196,7 @@ class ImageManipulationElement extends AbstractFormElement
*
* @param array $row
* @param string $fieldName
* @return null|File
* @return File|null
*/
protected function getFile(array $row, $fieldName)
{
......
......@@ -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 \Psr\Http\Message\ResponseInterface|null
*/
public function handleRequest(ServerRequestInterface $request)
{
......
......@@ -213,7 +213,7 @@ class PageTsBackendLayoutDataProvider implements DataProviderInterface
*
* @param string $identifier
* @param int $pageId
* @return null|BackendLayout
* @return BackendLayout|null
*/
public function getBackendLayout($identifier, $pageId)
{
......
......@@ -106,7 +106,7 @@ class CategoryPermissionsAspect
*
* @param int $categoryMountPoint
* @param TreeNodeCollection $treeNodeCollection
* @return null|TreeNode
* @return TreeNode|null
*/
protected function lookUpCategoryMountPointInTreeNodes($categoryMountPoint, TreeNodeCollection $treeNodeCollection)
{
......
......@@ -143,7 +143,7 @@ class MetaInformation
/**
* Setting page uid
*
* @return null|int Record uid
* @return int|null Record uid
*/
public function getRecordInformationUid()
{
......
......@@ -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 \TYPO3\CMS\Backend\Tree\TreeNode|null $parentNode
*/
public function setParentNode(\TYPO3\CMS\Backend\Tree\TreeNode $parentNode = null)
{
......
......@@ -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 int|null $workspaceId Workspace to fetch data for
* @return \TYPO3\CMS\Core\Resource\FileReference[]|null
*/
public static function resolveFileReferences($tableName, $fieldName, $element, $workspaceId = null)
{
......
......@@ -92,7 +92,7 @@ class BackendLayoutCollection
* Gets a backend layout by (regular) identifier.
*
* @param string $identifier
* @return null|BackendLayout
* @return BackendLayout|null
*/
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 BackendLayout|null
*/
public function getBackendLayout($combinedIdentifier, $pageId)
{
......
......@@ -33,7 +33,7 @@ interface DataProviderInterface
*
* @param string $identifier
* @param int $pageId
* @return null|BackendLayout
* @return BackendLayout|null
*/
public function getBackendLayout($identifier, $pageId);
}
......@@ -59,7 +59,7 @@ class DefaultDataProvider implements DataProviderInterface
*
* @param string $identifier
* @param int $pageId
* @return null|BackendLayout
* @return BackendLayout|null
*/
public function getBackendLayout($identifier, $pageId)
{
......
......@@ -417,7 +417,7 @@ class BackendLayoutView implements \TYPO3\CMS\Core\SingletonInterface
* Gets a page record.
*
* @param int $pageId
* @return null|array
* @return array|null
*/
protected function getPage($pageId)
{
......
......@@ -1995,7 +1995,7 @@ class BackendUserAuthentication extends AbstractUserAuthentication
* temporary files in user context. The folder _temp_ below the default upload folder
* of the user is used.
*
* @return null|\TYPO3\CMS\Core\Resource\Folder
* @return \TYPO3\CMS\Core\Resource\Folder|null
* @see \TYPO3\CMS\Core\Authentication\BackendUserAuthentication::getDefaultUploadFolder();
*/
public function getDefaultUploadTemporaryFolder()
......
......@@ -51,7 +51,7 @@ class RecordCollectionRepository
* Finds a record collection by uid.
*
* @param int $uid The uid to be looked up
* @return null|\TYPO3\CMS\Core\Collection\AbstractRecordCollection
* @return \TYPO3\CMS\Core\Collection\AbstractRecordCollection|null
*/
public function findByUid($uid)
{
......@@ -83,7 +83,7 @@ class RecordCollectionRepository
/**
* Finds all record collections.
*
* @return null|\TYPO3\CMS\Core\Collection\AbstractRecordCollection[]
* @return \TYPO3\CMS\Core\Collection\AbstractRecordCollection[]|null
*/
public function findAll()
{
......@@ -111,7 +111,7 @@ class RecordCollectionRepository
* Finds record collection by type.
*
* @param string $type Type to be looked up
* @return null|\TYPO3\CMS\Core\Collection\AbstractRecordCollection[]
* @return \TYPO3\CMS\Core\Collection\AbstractRecordCollection[]|null
*/
public function findByType($type)
{
......@@ -129,7 +129,7 @@ class RecordCollectionRepository
*
* @param string $type Type to be looked up
* @param string $tableName Name of the table to be looked up
* @return null|\TYPO3\CMS\Core\Collection\AbstractRecordCollection[]
* @return \TYPO3\CMS\Core\Collection\AbstractRecordCollection[]|null
*/
public function findByTypeAndTableName($type, $tableName)
{
......@@ -163,7 +163,7 @@ class RecordCollectionRepository
* Queries for multiple records for the given conditions.
*
* @param array $conditions Conditions concatenated with AND for query
* @return null|\TYPO3\CMS\Core\Collection\AbstractRecordCollection[]
* @return \TYPO3\CMS\Core\Collection\AbstractRecordCollection[]|null
*/
protected function queryMultipleRecords(array $conditions = [])
{
......
......@@ -194,7 +194,7 @@ abstract class AbstractConditionMatcher
*
* @param string $key The condition to match against its criteria.
* @param string $value
* @return null|bool Result of the evaluation; NULL if condition could not be evaluated
* @return bool|null Result of the evaluation; NULL if condition could not be evaluated
*/
protected function evaluateConditionCommon($key, $value)
{
......@@ -356,7 +356,7 @@ abstract class AbstractConditionMatcher
* e.g. "[MyCompany\MyPackage\ConditionMatcher\MyOwnConditionMatcher = myvalue]"
*
* @param string $condition The condition to match
* @return null|bool Result of the evaluation; NULL if condition could not be evaluated
* @return bool|null Result of the evaluation; NULL if condition could not be evaluated
* @throws \TYPO3\CMS\Core\Configuration\TypoScript\Exception\InvalidTypoScriptConditionException
*/
protected function evaluateCustomDefinedCondition($condition)
......
......@@ -27,7 +27,7 @@ interface RequestHandlerInterface
* Handles a CLI request
*
* @param InputInterface $input
* @return null|OutputInterface
* @return OutputInterface|null
* @api
*/
public function handleRequest(InputInterface $input);
......
......@@ -32,7 +32,7 @@ class FileDumpController
*
* @param ServerRequestInterface $request
* @param ResponseInterface $response
* @return null|ResponseInterface
* @return ResponseInterface|null
*
* @throws \InvalidArgumentException
* @throws \RuntimeException
......@@ -96,7 +96,7 @@ class FileDumpController
/**
* @param ServerRequestInterface $request
* @param string $parameter
* @return null|mixed
* @return mixed|null
*/
protected function getGetOrPost(ServerRequestInterface $request, $parameter)
{
......
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