From 017779f183275ac7a5cba530ae628adee06c323e Mon Sep 17 00:00:00 2001 From: Alexander Schnitzler <git@alexanderschnitzler.de> Date: Fri, 28 Feb 2020 10:56:49 +0100 Subject: [PATCH] [TASK] Cleanup php doc blocks with rector MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Releases: master Resolves: #90569 Change-Id: I6ed32592b2ad093800e5ebe98f31819a6b91b9ac Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/63479 Reviewed-by: Oliver Klee <typo3-coding@oliverklee.de> Reviewed-by: Björn Jacob <bjoern.jacob@tritum.de> Reviewed-by: Daniel Goerz <daniel.goerz@posteo.de> Tested-by: Björn Jacob <bjoern.jacob@tritum.de> Tested-by: TYPO3com <noreply@typo3.com> Tested-by: Daniel Goerz <daniel.goerz@posteo.de> --- .../backend/Classes/Controller/EditDocumentController.php | 2 +- .../backend/Classes/Controller/LinkBrowserController.php | 2 +- typo3/sysext/backend/Classes/Template/DocumentTemplate.php | 2 +- .../sysext/backend/Classes/Tree/TreeRepresentationNode.php | 2 +- typo3/sysext/backend/Classes/View/PageLayoutView.php | 2 +- .../sysext/backend/Tests/Unit/Form/FormDataCompilerTest.php | 2 +- .../Unit/Form/FormDataProvider/DatabaseLanguageRowsTest.php | 2 +- .../FormDataProvider/DatabaseUserPermissionCheckTest.php | 2 +- .../Tests/Unit/Form/FormDataProvider/TcaInlineTest.php | 2 +- .../Unit/Form/FormDataProvider/TcaSelectTreeItemsTest.php | 6 +++--- typo3/sysext/core/Classes/DataHandling/DataHandler.php | 2 +- typo3/sysext/core/Classes/Imaging/IconFactory.php | 6 +++--- typo3/sysext/core/Classes/Localization/LanguageService.php | 2 +- typo3/sysext/core/Classes/Package/PackageManager.php | 2 +- typo3/sysext/core/Classes/Resource/File.php | 2 +- .../core/Classes/Resource/Service/MagicImageService.php | 2 +- .../core/Classes/Utility/File/ExtendedFileUtility.php | 2 +- typo3/sysext/dashboard/Tests/Unit/WidgetRegistryTest.php | 2 +- .../Classes/Utility/Parser/ExtensionXmlPullParser.php | 6 +++--- .../Classes/ContextMenu/ItemProviders/FileProvider.php | 2 +- .../sysext/form/Classes/Controller/FormEditorController.php | 2 +- .../Classes/ContentObject/ContentObjectRenderer.php | 2 +- .../Tests/Functional/SiteHandling/MountPointTest.php | 4 ++-- .../Tests/Unit/ContentObject/ContentObjectRendererTest.php | 4 ++-- .../indexed_search/Classes/Controller/SearchController.php | 4 ++-- typo3/sysext/indexed_search/Classes/FileContentParser.php | 2 +- .../linkvalidator/Classes/Linktype/InternalLinktype.php | 2 +- .../recordlist/Classes/Controller/RecordListController.php | 2 +- .../recordlist/Classes/RecordList/DatabaseRecordList.php | 2 +- typo3/sysext/reports/Classes/Status.php | 2 +- typo3/sysext/scheduler/Classes/CronCommand/CronCommand.php | 4 ++-- typo3/sysext/workspaces/Classes/Hook/DataHandlerHook.php | 4 ++-- 32 files changed, 43 insertions(+), 43 deletions(-) diff --git a/typo3/sysext/backend/Classes/Controller/EditDocumentController.php b/typo3/sysext/backend/Classes/Controller/EditDocumentController.php index 3c595adce7d7..0c692dd466cc 100644 --- a/typo3/sysext/backend/Classes/Controller/EditDocumentController.php +++ b/typo3/sysext/backend/Classes/Controller/EditDocumentController.php @@ -1991,7 +1991,7 @@ class EditDocumentController * * @param string $table Table name * @param int $uid Uid for which to create a new language - * @param int $pid|null Pid of the record + * @param int|null $pid Pid of the record */ protected function languageSwitch(string $table, int $uid, $pid = null) { diff --git a/typo3/sysext/backend/Classes/Controller/LinkBrowserController.php b/typo3/sysext/backend/Classes/Controller/LinkBrowserController.php index 318f2cb0f1d6..254f2f72bc55 100644 --- a/typo3/sysext/backend/Classes/Controller/LinkBrowserController.php +++ b/typo3/sysext/backend/Classes/Controller/LinkBrowserController.php @@ -36,7 +36,7 @@ class LinkBrowserController extends AbstractLinkBrowserController protected function initCurrentUrl() { $currentLink = isset($this->parameters['currentValue']) ? trim($this->parameters['currentValue']) : ''; - /** @var array<string,string> $currentLinkParts */ + /** @var array<string, string> $currentLinkParts */ $currentLinkParts = GeneralUtility::makeInstance(TypoLinkCodecService::class)->decode($currentLink); $currentLinkParts['params'] = $currentLinkParts['additionalParams']; unset($currentLinkParts['additionalParams']); diff --git a/typo3/sysext/backend/Classes/Template/DocumentTemplate.php b/typo3/sysext/backend/Classes/Template/DocumentTemplate.php index e81933233cde..1278af8775a6 100644 --- a/typo3/sysext/backend/Classes/Template/DocumentTemplate.php +++ b/typo3/sysext/backend/Classes/Template/DocumentTemplate.php @@ -630,7 +630,7 @@ function jumpToUrl(URL) { /** * Returns generator meta tag * - * @return string <meta> tag with name "generator + * @return string HTML <meta> tag with name "generator" */ public function generator() { diff --git a/typo3/sysext/backend/Classes/Tree/TreeRepresentationNode.php b/typo3/sysext/backend/Classes/Tree/TreeRepresentationNode.php index 667392fdebc6..780e226ff26c 100644 --- a/typo3/sysext/backend/Classes/Tree/TreeRepresentationNode.php +++ b/typo3/sysext/backend/Classes/Tree/TreeRepresentationNode.php @@ -44,7 +44,7 @@ class TreeRepresentationNode extends \TYPO3\CMS\Backend\Tree\TreeNode /** * Node Icon * - * @var string | Icon + * @var string|Icon */ protected $icon = ''; diff --git a/typo3/sysext/backend/Classes/View/PageLayoutView.php b/typo3/sysext/backend/Classes/View/PageLayoutView.php index 2b1ec2780dbf..fd5ad18ee0f3 100644 --- a/typo3/sysext/backend/Classes/View/PageLayoutView.php +++ b/typo3/sysext/backend/Classes/View/PageLayoutView.php @@ -1501,7 +1501,7 @@ class PageLayoutView implements LoggerAwareInterface * that are not disabled with page TS. * * @param int $id Page id for which to create a new translation record of pages - * @return string <select> HTML element (if there were items for the box anyways...) + * @return string HTML <select> element (if there were items for the box anyways...) * @see getTable_tt_content() */ public function languageSelector($id) diff --git a/typo3/sysext/backend/Tests/Unit/Form/FormDataCompilerTest.php b/typo3/sysext/backend/Tests/Unit/Form/FormDataCompilerTest.php index 355abd42f0af..c43fe8e3dded 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/FormDataCompilerTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/FormDataCompilerTest.php @@ -31,7 +31,7 @@ class FormDataCompilerTest extends UnitTestCase protected $subject; /** - * @var FormDataGroupInterface | ObjectProphecy + * @var FormDataGroupInterface|ObjectProphecy */ protected $formDataGroupProphecy; diff --git a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseLanguageRowsTest.php b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseLanguageRowsTest.php index df0de7662c1a..604a480b6873 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseLanguageRowsTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseLanguageRowsTest.php @@ -33,7 +33,7 @@ class DatabaseLanguageRowsTest extends UnitTestCase protected $subject; /** - * @var BackendUserAuthentication | ObjectProphecy + * @var BackendUserAuthentication|ObjectProphecy */ protected $beUserProphecy; diff --git a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseUserPermissionCheckTest.php b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseUserPermissionCheckTest.php index 63adb339c31c..3e7e82a43743 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseUserPermissionCheckTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/DatabaseUserPermissionCheckTest.php @@ -34,7 +34,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; class DatabaseUserPermissionCheckTest extends UnitTestCase { /** - * @var BackendUserAuthentication | ObjectProphecy + * @var BackendUserAuthentication|ObjectProphecy */ protected $beUserProphecy; diff --git a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaInlineTest.php b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaInlineTest.php index e0238fe70e72..833766421de6 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaInlineTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaInlineTest.php @@ -25,7 +25,7 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase; class TcaInlineTest extends UnitTestCase { /** - * @var BackendUserAuthentication | ObjectProphecy + * @var BackendUserAuthentication|ObjectProphecy */ protected $beUserProphecy; diff --git a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaSelectTreeItemsTest.php b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaSelectTreeItemsTest.php index 792ee1aa665c..16faa0cfb3ce 100644 --- a/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaSelectTreeItemsTest.php +++ b/typo3/sysext/backend/Tests/Unit/Form/FormDataProvider/TcaSelectTreeItemsTest.php @@ -136,11 +136,11 @@ class TcaSelectTreeItemsTest extends UnitTestCase $this->mockDatabaseConnection(); - /** @var DatabaseTreeDataProvider|ObjectProphecy $treeDataProviderProphecy */ + /** @var DatabaseTreeDataProvider|ObjectProphecy $treeDataProviderProphecy */ $treeDataProviderProphecy = $this->prophesize(DatabaseTreeDataProvider::class); GeneralUtility::addInstance(DatabaseTreeDataProvider::class, $treeDataProviderProphecy->reveal()); - /** @var TableConfigurationTree|ObjectProphecy $treeDataProviderProphecy */ + /** @var TableConfigurationTree|ObjectProphecy $treeDataProviderProphecy */ $tableConfigurationTreeProphecy = $this->prophesize(TableConfigurationTree::class); GeneralUtility::addInstance(TableConfigurationTree::class, $tableConfigurationTreeProphecy->reveal()); $tableConfigurationTreeProphecy->setDataProvider(Argument::cetera())->shouldBeCalled(); @@ -210,7 +210,7 @@ class TcaSelectTreeItemsTest extends UnitTestCase $treeDataProviderProphecy = $this->prophesize(DatabaseTreeDataProvider::class); GeneralUtility::addInstance(DatabaseTreeDataProvider::class, $treeDataProviderProphecy->reveal()); - /** @var TableConfigurationTree|ObjectProphecy $treeDataProviderProphecy */ + /** @var TableConfigurationTree|ObjectProphecy $treeDataProviderProphecy */ $tableConfigurationTreeProphecy = $this->prophesize(TableConfigurationTree::class); GeneralUtility::addInstance(TableConfigurationTree::class, $tableConfigurationTreeProphecy->reveal()); $tableConfigurationTreeProphecy->render()->willReturn([]); diff --git a/typo3/sysext/core/Classes/DataHandling/DataHandler.php b/typo3/sysext/core/Classes/DataHandling/DataHandler.php index 2e0145a8ca17..0cce838aedb1 100644 --- a/typo3/sysext/core/Classes/DataHandling/DataHandler.php +++ b/typo3/sysext/core/Classes/DataHandling/DataHandler.php @@ -5779,7 +5779,7 @@ class DataHandler implements LoggerAwareInterface /** * Updates FlexForm data. * - * @param string $flexFormId, e.g. <table>:<uid>:<field> + * @param string $flexFormId e.g. <table>:<uid>:<field> * @param array $modifications Modifications with paths and values (e.g. 'sDEF/lDEV/field/vDEF' => 'TYPO3') */ protected function updateFlexFormData($flexFormId, array $modifications) diff --git a/typo3/sysext/core/Classes/Imaging/IconFactory.php b/typo3/sysext/core/Classes/Imaging/IconFactory.php index 197781eea214..b8fb13eea14a 100644 --- a/typo3/sysext/core/Classes/Imaging/IconFactory.php +++ b/typo3/sysext/core/Classes/Imaging/IconFactory.php @@ -248,9 +248,9 @@ class IconFactory /** * Returns recordType for icon based on a typeName and a suffix. * Fallback to page as typeName if resulting type is not configured. - * @param string $typeName - * @param string $suffix - * @param string $table + * @param string $typeName + * @param string $suffix + * @param string $table * @return string */ protected function getRecordTypeForPageType(string $typeName, string $suffix, string $table): string diff --git a/typo3/sysext/core/Classes/Localization/LanguageService.php b/typo3/sysext/core/Classes/Localization/LanguageService.php index 62ed7f136b7f..4555facc353a 100644 --- a/typo3/sysext/core/Classes/Localization/LanguageService.php +++ b/typo3/sysext/core/Classes/Localization/LanguageService.php @@ -276,7 +276,7 @@ class LanguageService * * @param string $fileRef $fileRef is a file-reference * @param bool $setGlobal Setting in global variable $LOCAL_LANG (or returning the variable), do not set this, will be dropped in TYPO3 v11.0 - * @param bool $mergeLocalOntoDefault, do not set this, will be dropped in TYPO3 v11.0 + * @param bool $mergeLocalOntoDefault do not set this, will be dropped in TYPO3 v11.0 * @return array returns the loaded label file */ public function includeLLFile($fileRef, $setGlobal = null, $mergeLocalOntoDefault = null) diff --git a/typo3/sysext/core/Classes/Package/PackageManager.php b/typo3/sysext/core/Classes/Package/PackageManager.php index 041767402b5c..79bee960e8bd 100644 --- a/typo3/sysext/core/Classes/Package/PackageManager.php +++ b/typo3/sysext/core/Classes/Package/PackageManager.php @@ -140,7 +140,7 @@ class PackageManager implements SingletonInterface /** * @internal - * @return string | null + * @return string|null */ public function getCacheIdentifier() { diff --git a/typo3/sysext/core/Classes/Resource/File.php b/typo3/sysext/core/Classes/Resource/File.php index 47a72bf0e373..eb6a7b6fe042 100644 --- a/typo3/sysext/core/Classes/Resource/File.php +++ b/typo3/sysext/core/Classes/Resource/File.php @@ -224,7 +224,7 @@ class File extends AbstractFile /** * Check if a file operation (= action) is allowed for this file * - * @param string $action, can be read, write, delete + * @param string $action can be read, write, delete * @return bool */ public function checkActionPermission($action) diff --git a/typo3/sysext/core/Classes/Resource/Service/MagicImageService.php b/typo3/sysext/core/Classes/Resource/Service/MagicImageService.php index 5b6695035d38..244da9616e85 100644 --- a/typo3/sysext/core/Classes/Resource/Service/MagicImageService.php +++ b/typo3/sysext/core/Classes/Resource/Service/MagicImageService.php @@ -68,7 +68,7 @@ class MagicImageService /** * Set maximum dimensions of magic images based on RTE configuration * - * @param array $rteConfiguration: RTE configuration probably coming from PageTSConfig + * @param array $rteConfiguration RTE configuration probably coming from PageTSConfig */ public function setMagicImageMaximumDimensions(array $rteConfiguration) { diff --git a/typo3/sysext/core/Classes/Utility/File/ExtendedFileUtility.php b/typo3/sysext/core/Classes/Utility/File/ExtendedFileUtility.php index 845e2313a8a9..2d73f7ae3c76 100644 --- a/typo3/sysext/core/Classes/Utility/File/ExtendedFileUtility.php +++ b/typo3/sysext/core/Classes/Utility/File/ExtendedFileUtility.php @@ -1051,7 +1051,7 @@ class ExtendedFileUtility extends BasicFileUtility * @param array $cmds $cmds['data'] is the ID-number (points to the global var that holds the filename-ref * ($_FILES['upload_' . $id]['name']) . $cmds['target'] is the target directory, $cmds['charset'] * is the the character set of the file name (utf-8 is needed for JS-interaction) - * @return File[] | FALSE Returns an array of new file objects upon success. False otherwise + * @return File[]|bool Returns an array of new file objects upon success. False otherwise */ public function func_upload($cmds) { diff --git a/typo3/sysext/dashboard/Tests/Unit/WidgetRegistryTest.php b/typo3/sysext/dashboard/Tests/Unit/WidgetRegistryTest.php index a8eec6489f2a..ae2514e29f6c 100644 --- a/typo3/sysext/dashboard/Tests/Unit/WidgetRegistryTest.php +++ b/typo3/sysext/dashboard/Tests/Unit/WidgetRegistryTest.php @@ -33,7 +33,7 @@ class WidgetRegistryTest extends UnitTestCase protected $subject; /** - * @var BackendUserAuthentication | ObjectProphecy + * @var BackendUserAuthentication|ObjectProphecy */ protected $beUserProphecy; diff --git a/typo3/sysext/extensionmanager/Classes/Utility/Parser/ExtensionXmlPullParser.php b/typo3/sysext/extensionmanager/Classes/Utility/Parser/ExtensionXmlPullParser.php index d106c21a0b85..a3b06d3ba544 100644 --- a/typo3/sysext/extensionmanager/Classes/Utility/Parser/ExtensionXmlPullParser.php +++ b/typo3/sysext/extensionmanager/Classes/Utility/Parser/ExtensionXmlPullParser.php @@ -142,7 +142,7 @@ class ExtensionXmlPullParser extends AbstractExtensionXmlParser /** * Method is invoked when parser accesses end tag of an element. * - * @param string $elementName: element name at parser's current position + * @param string $elementName element name at parser's current position */ protected function endElement($elementName) { @@ -164,8 +164,8 @@ class ExtensionXmlPullParser extends AbstractExtensionXmlParser * Method will read until it finds the end of the given element. * If element has no value, method returns NULL. * - * @param string $elementName: name of element to retrieve it's value from - * @return string an element's value if it has a value, otherwise NULL + * @param string $elementName name of element to retrieve it's value from + * @return string an element's value if it has a value, otherwise NULL */ protected function getElementValue(&$elementName) { diff --git a/typo3/sysext/filelist/Classes/ContextMenu/ItemProviders/FileProvider.php b/typo3/sysext/filelist/Classes/ContextMenu/ItemProviders/FileProvider.php index 78b56d1542c4..6c317a7613e1 100644 --- a/typo3/sysext/filelist/Classes/ContextMenu/ItemProviders/FileProvider.php +++ b/typo3/sysext/filelist/Classes/ContextMenu/ItemProviders/FileProvider.php @@ -258,7 +258,7 @@ class FileProvider extends \TYPO3\CMS\Backend\ContextMenu\ItemProviders\Abstract * Checks if folder and record are in the same filemount * Cannot copy folders between filemounts * - * @param File|Folder $fileOrFolderInClipBoard + * @param File|Folder $fileOrFolderInClipBoard * @return bool */ protected function isFoldersAreInTheSameRoot($fileOrFolderInClipBoard): bool diff --git a/typo3/sysext/form/Classes/Controller/FormEditorController.php b/typo3/sysext/form/Classes/Controller/FormEditorController.php index 3f7ea525e63a..eac1ee2a292c 100644 --- a/typo3/sysext/form/Classes/Controller/FormEditorController.php +++ b/typo3/sysext/form/Classes/Controller/FormEditorController.php @@ -261,7 +261,7 @@ class FormEditorController extends AbstractBackendController */ protected function getInsertRenderablesPanelConfiguration(array $formElementsDefinition): array { - /** @var array<string, array<string,string>> $formElementsByGroup */ + /** @var array<string, array<string, string>> $formElementsByGroup */ $formElementsByGroup = []; foreach ($formElementsDefinition as $formElementName => $formElementConfiguration) { diff --git a/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php b/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php index 488ab6ba4453..99e24378a83d 100644 --- a/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php +++ b/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php @@ -1039,7 +1039,7 @@ class ContentObjectRenderer implements LoggerAwareInterface * * @param string $file File TypoScript resource * @param array $conf TypoScript configuration properties - * @return string <img> tag, (possibly wrapped in links and other HTML) if any image found. + * @return string HTML <img> tag, (possibly wrapped in links and other HTML) if any image found. * @internal * @see IMAGE() */ diff --git a/typo3/sysext/frontend/Tests/Functional/SiteHandling/MountPointTest.php b/typo3/sysext/frontend/Tests/Functional/SiteHandling/MountPointTest.php index 15a8e8dc392c..369b92e4b5d2 100644 --- a/typo3/sysext/frontend/Tests/Functional/SiteHandling/MountPointTest.php +++ b/typo3/sysext/frontend/Tests/Functional/SiteHandling/MountPointTest.php @@ -51,9 +51,9 @@ use TYPO3\TestingFramework\Core\Functional\Framework\Frontend\ResponseContent; * - News of Canada - MountPoint within the same site * - Archived news - MountPoint to another site * - * @todo: add Tests for having a PageFolder as mounted page (e.g. id 10000) + * @todo add Tests for having a PageFolder as mounted page (e.g. id 10000) * @todo Add tests for multilingual setups - * @todo: Add tests with various TypoScript settings activated + * @todo Add tests with various TypoScript settings activated */ class MountPointTest extends AbstractTestCase { diff --git a/typo3/sysext/frontend/Tests/Unit/ContentObject/ContentObjectRendererTest.php b/typo3/sysext/frontend/Tests/Unit/ContentObject/ContentObjectRendererTest.php index 9ec5e0714771..941d4b3f27ec 100644 --- a/typo3/sysext/frontend/Tests/Unit/ContentObject/ContentObjectRendererTest.php +++ b/typo3/sysext/frontend/Tests/Unit/ContentObject/ContentObjectRendererTest.php @@ -2456,7 +2456,7 @@ class ContentObjectRendererTest extends UnitTestCase } /** - * @return \PHPUnit\Framework\MockObject\MockObject | AbstractContentObject + * @return \PHPUnit\Framework\MockObject\MockObject|AbstractContentObject */ protected function createContentObjectThrowingExceptionFixture() { @@ -5445,7 +5445,7 @@ class ContentObjectRendererTest extends UnitTestCase /** * Data provider for stdWrap_encodeForJavaScriptValue. * - * @return array [] + * @return array[] */ public function stdWrap_encodeForJavaScriptValueDataProvider(): array { diff --git a/typo3/sysext/indexed_search/Classes/Controller/SearchController.php b/typo3/sysext/indexed_search/Classes/Controller/SearchController.php index 021daf930f4d..f77b064c830e 100644 --- a/typo3/sysext/indexed_search/Classes/Controller/SearchController.php +++ b/typo3/sysext/indexed_search/Classes/Controller/SearchController.php @@ -672,7 +672,7 @@ class SearchController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionControlle * @param string $imageType File extension / item type * @param string $alt Title attribute value in icon. * @param array $specRowConf TypoScript configuration specifically for search result. - * @return string <img> tag for icon + * @return string HTML <img> tag for icon */ public function makeItemTypeIcon($imageType, $alt, $specRowConf) { @@ -1633,7 +1633,7 @@ class SearchController extends \TYPO3\CMS\Extbase\Mvc\Controller\ActionControlle * * @param string $linkText Link text (nodeValue) * @param array $linkData - * @return string <A> tag wrapped title string. + * @return string HTML <A> tag wrapped title string. */ protected function linkPageATagWrap(string $linkText, array $linkData): string { diff --git a/typo3/sysext/indexed_search/Classes/FileContentParser.php b/typo3/sysext/indexed_search/Classes/FileContentParser.php index 2fbbba8a5db9..80a26cf999f4 100644 --- a/typo3/sysext/indexed_search/Classes/FileContentParser.php +++ b/typo3/sysext/indexed_search/Classes/FileContentParser.php @@ -435,7 +435,7 @@ class FileContentParser /** * Wraps the "splitLabel function" of the language object. * - * @param string $reference: Reference/key of the label + * @param string $reference Reference/key of the label * @return string The label of the reference/key to be fetched */ protected function sL($reference) diff --git a/typo3/sysext/linkvalidator/Classes/Linktype/InternalLinktype.php b/typo3/sysext/linkvalidator/Classes/Linktype/InternalLinktype.php index e438979edc73..ac46878531ae 100644 --- a/typo3/sysext/linkvalidator/Classes/Linktype/InternalLinktype.php +++ b/typo3/sysext/linkvalidator/Classes/Linktype/InternalLinktype.php @@ -60,7 +60,7 @@ class InternalLinktype extends AbstractLinktype * Checks a given URL + /path/filename.ext for validity * * @param string $url Url to check as page-id or page-id#anchor (if anchor is present) - * @param array $softRefEntry: The soft reference entry which builds the context of that url + * @param array $softRefEntry The soft reference entry which builds the context of that url * @param \TYPO3\CMS\Linkvalidator\LinkAnalyzer $reference Parent instance * @return bool TRUE on success or FALSE on error */ diff --git a/typo3/sysext/recordlist/Classes/Controller/RecordListController.php b/typo3/sysext/recordlist/Classes/Controller/RecordListController.php index da0ddb6dea45..7da22e5371dd 100644 --- a/typo3/sysext/recordlist/Classes/Controller/RecordListController.php +++ b/typo3/sysext/recordlist/Classes/Controller/RecordListController.php @@ -559,7 +559,7 @@ class RecordListController * that are not disabled with page TS. * * @param int $id Page id for which to create a new translation record of pages - * @return string <select> HTML element (if there were items for the box anyways...) + * @return string HTML <select> element (if there were items for the box anyways...) */ protected function languageSelector(int $id): string { diff --git a/typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php b/typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php index 560bb99252f1..20f971c367df 100644 --- a/typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php +++ b/typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php @@ -2475,7 +2475,7 @@ class DatabaseRecordList * @param string $cmd Clipboard command (eg. "setCB" or "delete") * @param string $warning Warning text, if any ("delete" uses this for confirmation * @param string $title title attribute for the anchor - * @return string <a> tag wrapped link. + * @return string HTML <a> tag wrapped link. */ public function linkClipboardHeaderIcon($string, $table, $cmd, $warning = '', $title = '') { diff --git a/typo3/sysext/reports/Classes/Status.php b/typo3/sysext/reports/Classes/Status.php index 3bdf87d66cfd..105e5d2edab1 100644 --- a/typo3/sysext/reports/Classes/Status.php +++ b/typo3/sysext/reports/Classes/Status.php @@ -55,7 +55,7 @@ class Status * @param string $title Status title, eg. "Deprecation log" * @param string $value Status value, eg. "Disabled" * @param string $message Optional message further describing the title/value combination - * Example:, eg "The deprecation log is important and does foo, to disable it do bar" + * Example:, eg "The deprecation log is important and does foo, to disable it do bar" * @param int $severity A severity level. Use one of the constants above! */ public function __construct($title, $value, $message = '', $severity = self::OK) diff --git a/typo3/sysext/scheduler/Classes/CronCommand/CronCommand.php b/typo3/sysext/scheduler/Classes/CronCommand/CronCommand.php index 59d9979817ee..b0fe4c610e91 100644 --- a/typo3/sysext/scheduler/Classes/CronCommand/CronCommand.php +++ b/typo3/sysext/scheduler/Classes/CronCommand/CronCommand.php @@ -177,8 +177,8 @@ class CronCommand * Determine if a given number validates a cron command section. The given cron * command must be a 'normalized' list with only comma separated integers or '*' * - * @param string $commandExpression: cron command - * @param int $numberToMatch: number to look up + * @param string $commandExpression cron command + * @param int $numberToMatch number to look up * @return bool TRUE if number is in list */ protected function isInCommandList($commandExpression, $numberToMatch) diff --git a/typo3/sysext/workspaces/Classes/Hook/DataHandlerHook.php b/typo3/sysext/workspaces/Classes/Hook/DataHandlerHook.php index e123fd8c35f4..404f58069791 100644 --- a/typo3/sysext/workspaces/Classes/Hook/DataHandlerHook.php +++ b/typo3/sysext/workspaces/Classes/Hook/DataHandlerHook.php @@ -862,8 +862,8 @@ class DataHandlerHook * * @param string $tableName Table name * @param array $configuration TCA field configuration - * @param array $liveData: Live record data - * @param array $versionData: Version record data + * @param array $liveData Live record data + * @param array $versionData Version record data * @param DataHandler $dataHandler Calling data-handler object */ protected function version_swap_processFields($tableName, array $configuration, array $liveData, array $versionData, DataHandler $dataHandler) -- GitLab