diff --git a/Build/php-cs-fixer/config.php b/Build/php-cs-fixer/config.php index 87cb160403eb9b32e229d03316ea1837e66afe11..241f74c2bac7164ba6755886ec77257c950b01fb 100644 --- a/Build/php-cs-fixer/config.php +++ b/Build/php-cs-fixer/config.php @@ -57,7 +57,7 @@ return (new \PhpCsFixer\Config()) 'declare_parentheses' => true, 'dir_constant' => true, 'function_to_constant' => ['functions' => ['get_called_class', 'get_class', 'get_class_this', 'php_sapi_name', 'phpversion', 'pi']], - 'function_typehint_space' => true, + 'type_declaration_spaces' => true, 'global_namespace_import' => ['import_classes' => false, 'import_constants' => false, 'import_functions' => false], 'list_syntax' => ['syntax' => 'short'], 'modernize_strpos' => true, diff --git a/composer.json b/composer.json index f4817e8199fc8d15491259eede118ceb5b039a71..d80da272a7703ccc032ae55f14b74014d7080cba 100644 --- a/composer.json +++ b/composer.json @@ -109,7 +109,7 @@ "codeception/module-filesystem": "^3.0.0", "codeception/module-webdriver": "^4.0.0", "composer/composer": "^2.5.5", - "friendsofphp/php-cs-fixer": "^3.16.0", + "friendsofphp/php-cs-fixer": "^3.26.1", "friendsoftypo3/phpstan-typo3": "^0.9.0", "php-webdriver/webdriver": "^1.14.0", "phpstan/phpstan": "^1.10.32", diff --git a/composer.lock b/composer.lock index 6e147b9b0b11be2d3c126d16f3e97c4c1e63f970..7be6ea35f3cab6d4f80811cac75ff603925f5366 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "89b0c5aa2dff022c787e32d5371363e5", + "content-hash": "e52fd4005a288e97210463682015f7fd", "packages": [ { "name": "bacon/bacon-qr-code", @@ -6083,23 +6083,21 @@ }, { "name": "friendsofphp/php-cs-fixer", - "version": "v3.16.0", + "version": "v3.26.1", "source": { "type": "git", "url": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer.git", - "reference": "d40f9436e1c448d309fa995ab9c14c5c7a96f2dc" + "reference": "d023ba6684055f6ea1da1352d8a02baca0426983" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHP-CS-Fixer/PHP-CS-Fixer/zipball/d40f9436e1c448d309fa995ab9c14c5c7a96f2dc", - "reference": "d40f9436e1c448d309fa995ab9c14c5c7a96f2dc", + "url": "https://api.github.com/repos/PHP-CS-Fixer/PHP-CS-Fixer/zipball/d023ba6684055f6ea1da1352d8a02baca0426983", + "reference": "d023ba6684055f6ea1da1352d8a02baca0426983", "shasum": "" }, "require": { "composer/semver": "^3.3", "composer/xdebug-handler": "^3.0.3", - "doctrine/annotations": "^2", - "doctrine/lexer": "^2 || ^3", "ext-json": "*", "ext-tokenizer": "*", "php": "^7.4 || ^8.0", @@ -6116,6 +6114,7 @@ "symfony/stopwatch": "^5.4 || ^6.0" }, "require-dev": { + "facile-it/paraunit": "^1.3 || ^2.0", "justinrainbow/json-schema": "^5.2", "keradus/cli-executor": "^2.0", "mikey179/vfsstream": "^1.6.11", @@ -6167,7 +6166,7 @@ ], "support": { "issues": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/issues", - "source": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/tree/v3.16.0" + "source": "https://github.com/PHP-CS-Fixer/PHP-CS-Fixer/tree/v3.26.1" }, "funding": [ { @@ -6175,7 +6174,7 @@ "type": "github" } ], - "time": "2023-04-02T19:30:06+00:00" + "time": "2023-09-08T19:09:07+00:00" }, { "name": "friendsoftypo3/phpstan-typo3", diff --git a/typo3/sysext/backend/Classes/Attribute/Controller.php b/typo3/sysext/backend/Classes/Attribute/Controller.php index 8deed45cb2a7b4cd3ba84b7b88589af67e2c0644..bd08983a5d8f61d670f9c7021b7cccb17371ff50 100644 --- a/typo3/sysext/backend/Classes/Attribute/Controller.php +++ b/typo3/sysext/backend/Classes/Attribute/Controller.php @@ -23,7 +23,7 @@ namespace TYPO3\CMS\Backend\Attribute; #[\Attribute(\Attribute::TARGET_CLASS)] class Controller { - public const TAG_NAME='backend.controller'; + public const TAG_NAME = 'backend.controller'; public function __construct() { diff --git a/typo3/sysext/backend/Classes/Controller/ContentElement/ElementInformationController.php b/typo3/sysext/backend/Classes/Controller/ContentElement/ElementInformationController.php index 775fae8d716e6ee38f77580368274fd4c0b6ca6b..e4e6e88938d9d775a17251962862b2dc38de964d 100644 --- a/typo3/sysext/backend/Classes/Controller/ContentElement/ElementInformationController.php +++ b/typo3/sysext/backend/Classes/Controller/ContentElement/ElementInformationController.php @@ -196,7 +196,7 @@ class ElementInformationController // Check if there is a FileRenderer if ($fileRenderer !== null) { $preview['fileRenderer'] = $fileRenderer->render($this->fileObject, $width, $height); - // else check if we can create an Image preview + // else check if we can create an Image preview } elseif ($this->fileObject->isImage()) { $preview['fileObject'] = $this->fileObject; $preview['width'] = $width; diff --git a/typo3/sysext/backend/Classes/Controller/LiveSearchController.php b/typo3/sysext/backend/Classes/Controller/LiveSearchController.php index 69daf4b3ffc17b7ccf75e35857d00172c90d3bd0..accdef4d114b35f1c3a561883220a375217d6ded 100644 --- a/typo3/sysext/backend/Classes/Controller/LiveSearchController.php +++ b/typo3/sysext/backend/Classes/Controller/LiveSearchController.php @@ -58,7 +58,7 @@ class LiveSearchController 'currentPage' => $pagination->getPaginator()->getCurrentPageNumber(), 'firstPage' => $pagination->getFirstPageNumber(), 'lastPage' => $pagination->getLastPageNumber(), - 'allPageNumbers'=> $pagination->getAllPageNumbers(), + 'allPageNumbers' => $pagination->getAllPageNumbers(), 'previousPageNumber' => $pagination->getPreviousPageNumber(), 'nextPageNumber' => $pagination->getNextPageNumber(), 'hasMorePages' => $pagination->getHasMorePages(), diff --git a/typo3/sysext/backend/Classes/Controller/LoginController.php b/typo3/sysext/backend/Classes/Controller/LoginController.php index 53d59e0445c0e33905cf356f499fb02e18182695..321e532ac4bbe8d62702bb5771fff7f6406eb834 100644 --- a/typo3/sysext/backend/Classes/Controller/LoginController.php +++ b/typo3/sysext/backend/Classes/Controller/LoginController.php @@ -393,7 +393,7 @@ class LoginController if ($this->loginRefresh) { $formProtection->setSessionTokenFromRegistry(); $formProtection->persistSessionToken(); - // triggering `TYPO3/CMS/Backend/LoginRefresh` module happens in `TYPO3/CMS/Backend/Login` + // triggering `TYPO3/CMS/Backend/LoginRefresh` module happens in `TYPO3/CMS/Backend/Login` } else { $formProtection->storeSessionTokenInRegistry(); $this->redirectToUrl(); diff --git a/typo3/sysext/backend/Classes/Form/InlineStackProcessor.php b/typo3/sysext/backend/Classes/Form/InlineStackProcessor.php index 1596a20c1a863b5c9bf45503ca89def3c1cfbaac..604791577b86733cf2ea0cbc876822af1d7c3ac0 100644 --- a/typo3/sysext/backend/Classes/Form/InlineStackProcessor.php +++ b/typo3/sysext/backend/Classes/Form/InlineStackProcessor.php @@ -280,7 +280,7 @@ class InlineStackProcessor $parts[] = implode('][', $levelData['flexform']); } $name = '[' . implode('][', $parts) . ']'; - // Use in object id attributes: + // Use in object id attributes: } else { $name = implode('-', $parts); diff --git a/typo3/sysext/backend/Classes/RecordList/DatabaseRecordList.php b/typo3/sysext/backend/Classes/RecordList/DatabaseRecordList.php index ec117254a0f46f3d92dc30fd96d7c05ce9768f3a..0d83a8ff65b7ff400101bfbce545dbc1f3d689b0 100644 --- a/typo3/sysext/backend/Classes/RecordList/DatabaseRecordList.php +++ b/typo3/sysext/backend/Classes/RecordList/DatabaseRecordList.php @@ -1311,7 +1311,7 @@ class DatabaseRecordList 'currentUrl' => $this->listURL('', $table, 'pointer'), 'currentPage' => $currentPage, 'totalPages' => $totalPages, - 'firstElement' => ((($currentPage -1) * $itemsPerPage) + 1), + 'firstElement' => ((($currentPage - 1) * $itemsPerPage) + 1), 'lastElement' => $lastElementNumber, 'colspan' => $paginationColumns, ]) @@ -1501,7 +1501,7 @@ class DatabaseRecordList $params = [ 'edit' => [ $table => [ - (0-(($row['_MOVE_PLH'] ?? 0) ? $row['_MOVE_PLH_uid'] : $row['uid'])) => 'new', + (0 - (($row['_MOVE_PLH'] ?? 0) ? $row['_MOVE_PLH_uid'] : $row['uid'])) => 'new', ], ], 'returnUrl' => $this->listURL(), diff --git a/typo3/sysext/backend/Configuration/SiteConfiguration/site_language.php b/typo3/sysext/backend/Configuration/SiteConfiguration/site_language.php index 31e147327460073782073a61d5157af70ae91f7f..6299cd2026585895c31566b2532fd0293e9fc8d1 100644 --- a/typo3/sysext/backend/Configuration/SiteConfiguration/site_language.php +++ b/typo3/sysext/backend/Configuration/SiteConfiguration/site_language.php @@ -70,7 +70,7 @@ return [ 'placeholder' => 'en-US', 'valuePicker' => [ 'mode' => '', - 'items' =>\TYPO3\CMS\Backend\Configuration\TCA\UserFunctions::getAllSystemLocales(), + 'items' => \TYPO3\CMS\Backend\Configuration\TCA\UserFunctions::getAllSystemLocales(), ], ], ], diff --git a/typo3/sysext/backend/Tests/Functional/Controller/Page/TreeControllerTest.php b/typo3/sysext/backend/Tests/Functional/Controller/Page/TreeControllerTest.php index 0fa746ca51b8d89a906523247c1c55a223cb2e83..80958ab21a592761c32cae3e69ad9be6d2d643d2 100644 --- a/typo3/sysext/backend/Tests/Functional/Controller/Page/TreeControllerTest.php +++ b/typo3/sysext/backend/Tests/Functional/Controller/Page/TreeControllerTest.php @@ -327,7 +327,7 @@ final class TreeControllerTest extends FunctionalTestCase [ 'uid' => 0, 'title' => 'New TYPO3 site', - '_children' =>[ + '_children' => [ [ 'uid' => 1000, 'title' => 'ACME Inc', @@ -434,7 +434,7 @@ final class TreeControllerTest extends FunctionalTestCase [ 'uid' => 0, 'title' => 'New TYPO3 site', - '_children' =>[ + '_children' => [ [ 'uid' => 1210, 'title' => 'EN: Frontend Editing', @@ -468,7 +468,7 @@ final class TreeControllerTest extends FunctionalTestCase [ 'uid' => 0, 'title' => 'New TYPO3 site', - '_children' =>[ + '_children' => [ [ 'uid' => 1000, 'title' => 'ACME Inc', @@ -652,7 +652,7 @@ final class TreeControllerTest extends FunctionalTestCase [ 'uid' => 0, 'title' => 'New TYPO3 site', - '_children' =>[ + '_children' => [ [ 'uid' => 1000, 'title' => 'ACME Inc', diff --git a/typo3/sysext/backend/Tests/Functional/Controller/ResetPasswordControllerTest.php b/typo3/sysext/backend/Tests/Functional/Controller/ResetPasswordControllerTest.php index ad36edd9cfb744f479cedcad60df4edbd8ef4812..81dc893cafa45ae818c44b0f488b9adc3014d8ea 100644 --- a/typo3/sysext/backend/Tests/Functional/Controller/ResetPasswordControllerTest.php +++ b/typo3/sysext/backend/Tests/Functional/Controller/ResetPasswordControllerTest.php @@ -148,7 +148,7 @@ final class ResetPasswordControllerTest extends FunctionalTestCase */ public function initiatePasswordResetValidatesGivenEmailAddress(): void { - $request = $this->request->withParsedBody(['email' =>'email..email@example.com']); + $request = $this->request->withParsedBody(['email' => 'email..email@example.com']); $GLOBALS['TYPO3_REQUEST'] = $request; self::assertStringContainsString( 'The entered email address is invalid. Please try again.', diff --git a/typo3/sysext/backend/Tests/Unit/Utility/BackendUtilityTest.php b/typo3/sysext/backend/Tests/Unit/Utility/BackendUtilityTest.php index 0fa33f482773edaf81418fd82630445e712425b8..ca2f4f23a399d4310dbf8004bb83b8e36f7e83be 100644 --- a/typo3/sysext/backend/Tests/Unit/Utility/BackendUtilityTest.php +++ b/typo3/sysext/backend/Tests/Unit/Utility/BackendUtilityTest.php @@ -1289,7 +1289,7 @@ final class BackendUtilityTest extends UnitTestCase { $GLOBALS['BE_USER'] = new BackendUserAuthentication(); $GLOBALS['TCA']['myTable'] = [ - 'ctrl'=> [ + 'ctrl' => [ 'tstamp' => 'updatedon', // Won't be added due to defined in "columns" 'crdate' => 'createdon', diff --git a/typo3/sysext/core/Classes/Authentication/AbstractUserAuthentication.php b/typo3/sysext/core/Classes/Authentication/AbstractUserAuthentication.php index 9d99df6c7b2da8e3c87040a0d84fe67cb388e019..8cb82e4ab33f0732db14ba98970a750d9d55c78e 100644 --- a/typo3/sysext/core/Classes/Authentication/AbstractUserAuthentication.php +++ b/typo3/sysext/core/Classes/Authentication/AbstractUserAuthentication.php @@ -540,7 +540,7 @@ abstract class AbstractUserAuthentication implements LoggerAwareInterface if ($ret < 100) { $authenticated = true; } - // $ret is between 100 and 199 which means "I'm not responsible, ask others" + // $ret is between 100 and 199 which means "I'm not responsible, ask others" } else { // $ret is < 0 $authenticated = false; @@ -553,8 +553,8 @@ abstract class AbstractUserAuthentication implements LoggerAwareInterface break; } } - // mimic user authentication to mitigate observable timing discrepancies - // @link https://cwe.mitre.org/data/definitions/208.html + // mimic user authentication to mitigate observable timing discrepancies + // @link https://cwe.mitre.org/data/definitions/208.html } elseif ($activeLogin) { $subType = 'authUser' . $this->loginType; foreach ($this->getAuthServices($subType, $loginData, $authenticatedUserFromSession, $request) as $serviceObj) { diff --git a/typo3/sysext/core/Classes/Authentication/Mfa/MfaViewType.php b/typo3/sysext/core/Classes/Authentication/Mfa/MfaViewType.php index dc708b26fde6edd0eb7e85bf6a09157f70e86c28..45d020559b31c1ade99762e62166b3a88055bb58 100644 --- a/typo3/sysext/core/Classes/Authentication/Mfa/MfaViewType.php +++ b/typo3/sysext/core/Classes/Authentication/Mfa/MfaViewType.php @@ -25,6 +25,6 @@ use TYPO3\CMS\Core\Type\Enumeration; class MfaViewType extends Enumeration { public const SETUP = 'setup'; - public const EDIT ='edit'; - public const AUTH ='auth'; + public const EDIT = 'edit'; + public const AUTH = 'auth'; } diff --git a/typo3/sysext/core/Classes/DataHandling/DataHandler.php b/typo3/sysext/core/Classes/DataHandling/DataHandler.php index 4008f4724545fcc1224df3b7cb8cfe4fb73fe4e4..da1d3ccb14dba5c88b3e755771236bbec9531cdd 100644 --- a/typo3/sysext/core/Classes/DataHandling/DataHandler.php +++ b/typo3/sysext/core/Classes/DataHandling/DataHandler.php @@ -4235,7 +4235,7 @@ class DataHandler implements LoggerAwareInterface } else { if (!MathUtility::canBeInterpretedAsInteger($realDestPid)) { $newId = $this->copyRecord($v['table'], $v['id'], -(int)($v['id'])); - // If the destination page id is a NEW string, keep it on the same page + // If the destination page id is a NEW string, keep it on the same page } elseif ($this->BE_USER->workspace > 0 && BackendUtility::isTableWorkspaceEnabled($v['table'])) { // A filled $workspaceOptions indicated that this call // has it's origin in previous versionizeRecord() processing @@ -4249,7 +4249,7 @@ class DataHandler implements LoggerAwareInterface $workspaceOptions['label'] ?? 'Auto-created for WS #' . $this->BE_USER->workspace, $workspaceOptions['delete'] ?? false ); - // Otherwise just use plain copyRecord() to create placeholders etc. + // Otherwise just use plain copyRecord() to create placeholders etc. } else { // If a record has been copied already during this request, // prevent superfluous duplication and use the existing copy @@ -8528,15 +8528,15 @@ class DataHandler implements LoggerAwareInterface default: $result = (string)$submittedValue === (string)$storedValue; } - // Null values are allowed, but currently there's a real (not NULL) value. - // Thus, ensure no NULL value was submitted and fallback to the regular behaviour. + // Null values are allowed, but currently there's a real (not NULL) value. + // Thus, ensure no NULL value was submitted and fallback to the regular behaviour. } elseif ($storedValue !== null) { $result = ( $submittedValue !== null && $this->isSubmittedValueEqualToStoredValue($submittedValue, $storedValue, $storedType, false) ); - // Null values are allowed, and currently there's a NULL value. - // Thus, check whether a NULL value was submitted. + // Null values are allowed, and currently there's a NULL value. + // Thus, check whether a NULL value was submitted. } else { $result = ($submittedValue === null); } diff --git a/typo3/sysext/core/Classes/DataHandling/Localization/DataMapProcessor.php b/typo3/sysext/core/Classes/DataHandling/Localization/DataMapProcessor.php index cce37df8cdd5e2d53a799d4d5bbf90fe6bc52d22..0b275df5730cf8a1ffa0eb2117a07915a9a9655d 100644 --- a/typo3/sysext/core/Classes/DataHandling/Localization/DataMapProcessor.php +++ b/typo3/sysext/core/Classes/DataHandling/Localization/DataMapProcessor.php @@ -1026,7 +1026,7 @@ class DataMapProcessor // implicit: use origin pointer if table cannot be translated if (!$isTranslatable) { $ancestorId = (int)$dependentElement[$fieldNames['origin']]; - // only consider element if it reflects the desired language + // only consider element if it reflects the desired language } elseif ((int)$dependentElement[$fieldNames['language']] === $desiredLanguage) { $ancestorId = $this->resolveAncestorId($fieldNames, $dependentElement); } else { diff --git a/typo3/sysext/core/Classes/Database/Query/Expression/CompositeExpression.php b/typo3/sysext/core/Classes/Database/Query/Expression/CompositeExpression.php index b91d32e3e561ba36495efa1af8c43e43c21c69d3..c55ec89ea50e55153e3945958ee200f99bccb6f5 100644 --- a/typo3/sysext/core/Classes/Database/Query/Expression/CompositeExpression.php +++ b/typo3/sysext/core/Classes/Database/Query/Expression/CompositeExpression.php @@ -125,7 +125,7 @@ class CompositeExpression extends \Doctrine\DBAL\Query\Expression\CompositeExpre * @param self|string|null $part * @param self|string|null ...$parts */ - public static function and($part=null, ...$parts): self + public static function and($part = null, ...$parts): self { $mergedParts = array_merge([$part], $parts); array_filter($mergedParts, static fn ($value) => !is_null($value)); @@ -136,7 +136,7 @@ class CompositeExpression extends \Doctrine\DBAL\Query\Expression\CompositeExpre * @param self|string|null $part * @param self|string|null ...$parts */ - public static function or($part=null, ...$parts): self + public static function or($part = null, ...$parts): self { $mergedParts = array_merge([$part], $parts); array_filter($mergedParts, static fn ($value) => !is_null($value)); @@ -149,7 +149,7 @@ class CompositeExpression extends \Doctrine\DBAL\Query\Expression\CompositeExpre * @param self|string|null $part * @param self|string|null ...$parts */ - public function with($part=null, ...$parts): self + public function with($part = null, ...$parts): self { $mergedParts = array_merge([$part], $parts); $that = clone $this; diff --git a/typo3/sysext/core/Classes/Database/RelationHandler.php b/typo3/sysext/core/Classes/Database/RelationHandler.php index 3923835a540ccb1c271e79b583fb6a04b13989d2..7a3e13a6a9e4cd0f34aa1f0dd6c6555fa1968ffe 100644 --- a/typo3/sysext/core/Classes/Database/RelationHandler.php +++ b/typo3/sysext/core/Classes/Database/RelationHandler.php @@ -1322,7 +1322,7 @@ class RelationHandler } $purgedItemIds = []; - $callable =[$this, $purgeCallback]; + $callable = [$this, $purgeCallback]; if (is_callable($callable)) { $purgedItemIds = $callable($itemTableName, $itemIds); } diff --git a/typo3/sysext/core/Classes/DependencyInjection/ServiceProviderCompilationPass.php b/typo3/sysext/core/Classes/DependencyInjection/ServiceProviderCompilationPass.php index f69b4b405d16295a47f62d24eda20caa958a8526..0c40cbbc9309cb769e0e71f5570bfee90c6c2105 100644 --- a/typo3/sysext/core/Classes/DependencyInjection/ServiceProviderCompilationPass.php +++ b/typo3/sysext/core/Classes/DependencyInjection/ServiceProviderCompilationPass.php @@ -236,7 +236,7 @@ class ServiceProviderCompilationPass implements CompilerPassInterface } return [ $serviceName . '_decorated_' . $counter, - $counter === 1 ? $serviceName : $serviceName . '_decorated_' . ($counter-1), + $counter === 1 ? $serviceName : $serviceName . '_decorated_' . ($counter - 1), ]; } } diff --git a/typo3/sysext/core/Classes/Html/SimpleParser.php b/typo3/sysext/core/Classes/Html/SimpleParser.php index 7c9528cfa2117fb4e59b2cc08dd7a6b79f121001..b2bab6b1d950beadb09c673fc883338a3d20aa70 100644 --- a/typo3/sysext/core/Classes/Html/SimpleParser.php +++ b/typo3/sysext/core/Classes/Html/SimpleParser.php @@ -128,53 +128,53 @@ class SimpleParser $this->next(SimpleNode::TYPE_CDATA); $this->append('<![CDATA['); $skip = 8; - // comment start + // comment start } elseif ($character === '<' && $this->isType(SimpleNode::TYPE_TEXT) && substr($string, $i, 4) === '<!--' ) { $this->next(SimpleNode::TYPE_COMMENT); $this->append('<!--'); $skip = 3; - // element start + // element start } elseif ($character === '<' && $this->isType(SimpleNode::TYPE_TEXT) && preg_match('#^</?[a-z]#i', substr($string, $i, 3)) ) { $this->next(SimpleNode::TYPE_ELEMENT); $this->append($character); - // CDATA end + // CDATA end } elseif ($character === ']' && $this->isType(SimpleNode::TYPE_CDATA) && substr($string, $i, 3) === ']]>' ) { $this->append(']]>'); $this->next(SimpleNode::TYPE_TEXT); $skip = 2; - // comment end + // comment end } elseif ($character === '-' && $this->isType(SimpleNode::TYPE_COMMENT) && substr($string, $i, 3) === '-->' ) { $this->append('-->'); $this->next(SimpleNode::TYPE_TEXT); $skip = 2; - // element end + // element end } elseif ($character === '>' && $this->isType(SimpleNode::TYPE_ELEMENT) && !$this->inAttribute() ) { $this->append($character); $this->next(SimpleNode::TYPE_TEXT); - // element attribute start + // element attribute start } elseif (($character === '"' || $character === "'") && $this->isType(SimpleNode::TYPE_ELEMENT) && !$this->inAttribute() ) { $this->attribute = $character; $this->append($character); - // element attribute end + // element attribute end } elseif (($character === '"' || $character === "'") && $this->isType(SimpleNode::TYPE_ELEMENT) && $this->attribute === $character ) { $this->append($character); $this->attribute = null; - // anything else (put to current type) + // anything else (put to current type) } else { $this->append($character); } diff --git a/typo3/sysext/core/Classes/Imaging/ImageDimension.php b/typo3/sysext/core/Classes/Imaging/ImageDimension.php index ea39a7e28305c6acbad1488d0023fb93647c7c24..8bd1e46412d92d41e20ba3afb4ebb5ed85c8fe73 100644 --- a/typo3/sysext/core/Classes/Imaging/ImageDimension.php +++ b/typo3/sysext/core/Classes/Imaging/ImageDimension.php @@ -72,7 +72,7 @@ class ImageDimension (int)$processedFile->getOriginalFile()->getProperty('height') ); } - if ($imageDimension->width <=0 || $imageDimension->height <=0) { + if ($imageDimension->width <= 0 || $imageDimension->height <= 0) { throw new \BadMethodCallException('Width and height of the image must be greater than zero', 1597310560); } $result = GeneralUtility::makeInstance(GraphicalFunctions::class)->getImageScale( diff --git a/typo3/sysext/core/Classes/LinkHandling/LegacyLinkNotationConverter.php b/typo3/sysext/core/Classes/LinkHandling/LegacyLinkNotationConverter.php index 9ac39b3bca5d2a204d97f5fcb05cb47ff1d5acb7..889b484a297c5f514fcae36d194494c23744e87b 100644 --- a/typo3/sysext/core/Classes/LinkHandling/LegacyLinkNotationConverter.php +++ b/typo3/sysext/core/Classes/LinkHandling/LegacyLinkNotationConverter.php @@ -145,7 +145,7 @@ class LegacyLinkNotationConverter if (!$isIdOrAlias && $isLocalFile !== 1 && $urlChar && (!$containsSlash || $urlChar < $fileChar)) { $result['type'] = LinkService::TYPE_URL; $result['url'] = UrlLinkHandler::getDefaultScheme() . '://' . $linkParameter; - // file (internal) or folder + // file (internal) or folder } elseif ($containsSlash || $isLocalFile) { $result = $this->getFileOrFolderObjectFromMixedIdentifier($linkParameter); } else { diff --git a/typo3/sysext/core/Classes/Localization/DateFormatter.php b/typo3/sysext/core/Classes/Localization/DateFormatter.php index be6fa5f72dd358cb8ee80bcafde271cf3a64926a..e651a3a38be6396f4aed6526e56184ae16d148b3 100644 --- a/typo3/sysext/core/Classes/Localization/DateFormatter.php +++ b/typo3/sysext/core/Classes/Localization/DateFormatter.php @@ -153,7 +153,7 @@ class DateFormatter }, '%j' => function (\DateTimeInterface $timestamp, string $_): string { // Day number in year, 001 to 366 - return sprintf('%03d', (int)($timestamp->format('z'))+1); + return sprintf('%03d', (int)($timestamp->format('z')) + 1); }, '%u' => 'N', '%w' => 'w', diff --git a/typo3/sysext/core/Classes/Routing/Aspect/PersistedPatternMapper.php b/typo3/sysext/core/Classes/Routing/Aspect/PersistedPatternMapper.php index 040c2ac2d63f5b280ea8aa8643d97b438c09b159..054680cca5707e578d981b1b259c2d11cd0bc19c 100644 --- a/typo3/sysext/core/Classes/Routing/Aspect/PersistedPatternMapper.php +++ b/typo3/sysext/core/Classes/Routing/Aspect/PersistedPatternMapper.php @@ -285,7 +285,7 @@ class PersistedPatternMapper implements PersistedMappableAspectInterface, Static $queryBuilder->expr()->eq('uid', $idParameter), $queryBuilder->expr()->eq($this->languageParentFieldName, $idParameter) ); - // otherwise - basically uid is not in pattern - restrict to languages and apply fallbacks + // otherwise - basically uid is not in pattern - restrict to languages and apply fallbacks } elseif ($languageAware) { $languageIds = $this->resolveAllRelevantLanguageIds(); $constraints[] = $queryBuilder->expr()->in( diff --git a/typo3/sysext/core/Classes/Security/ContentSecurityPolicy/PolicyProvider.php b/typo3/sysext/core/Classes/Security/ContentSecurityPolicy/PolicyProvider.php index 11db971af5f5752342a1a32eb948b5a7ddad1502..7a613db74afc9f925bc9ca75b8363cd496a61ce9 100644 --- a/typo3/sysext/core/Classes/Security/ContentSecurityPolicy/PolicyProvider.php +++ b/typo3/sysext/core/Classes/Security/ContentSecurityPolicy/PolicyProvider.php @@ -135,7 +135,7 @@ final class PolicyProvider $siteLanguage = $siteLanguage instanceof SiteLanguage ? $siteLanguage : $site->getDefaultLanguage(); $uri = $siteLanguage->getBase(); $uri = $uri->withPath(rtrim($uri->getPath(), '/') . '/'); - // otherwise fall back to current request URI + // otherwise fall back to current request URI } else { $uri = new Uri($normalizedParams->getSitePath()); } diff --git a/typo3/sysext/core/Classes/TypoScript/IncludeTree/TreeFromLineStreamBuilder.php b/typo3/sysext/core/Classes/TypoScript/IncludeTree/TreeFromLineStreamBuilder.php index b0970e9ae7ba6fd58e2da8ed2aed8ca0d14e1cb8..257d9f011b5f807bad5b349f796f9f31343951b0 100644 --- a/typo3/sysext/core/Classes/TypoScript/IncludeTree/TreeFromLineStreamBuilder.php +++ b/typo3/sysext/core/Classes/TypoScript/IncludeTree/TreeFromLineStreamBuilder.php @@ -366,7 +366,7 @@ final class TreeFromLineStreamBuilder private function processIncludeTyposcript(IncludeInterface $node, Token $includeTyposcriptValueToken, LineInterface $importKeywordOldLine): void { $fullString = $includeTyposcriptValueToken->getValue(); - $potentialSourceArray = preg_split('#.*(source="[^"]*").*|>#', $fullString, -1, PREG_SPLIT_DELIM_CAPTURE|PREG_SPLIT_NO_EMPTY); + $potentialSourceArray = preg_split('#.*(source="[^"]*").*|>#', $fullString, -1, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY); $source = ''; foreach ($potentialSourceArray as $candidate) { $candidate = trim($candidate); @@ -380,7 +380,7 @@ final class TreeFromLineStreamBuilder // No 'source="..."' return; } - $potentialConditionArray = preg_split('#.*(condition="(?:\\\\\\\\|\\\\"|[^\"])*").*|>#', $fullString, 2, PREG_SPLIT_DELIM_CAPTURE|PREG_SPLIT_NO_EMPTY); + $potentialConditionArray = preg_split('#.*(condition="(?:\\\\\\\\|\\\\"|[^\"])*").*|>#', $fullString, 2, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY); $condition = ''; foreach ($potentialConditionArray as $candidate) { $candidate = trim($candidate); @@ -394,7 +394,7 @@ final class TreeFromLineStreamBuilder break; } } - $potentialExtensionsArray = preg_split('#.*(extensions*="[^"]*").*|>#', $fullString, 2, PREG_SPLIT_DELIM_CAPTURE|PREG_SPLIT_NO_EMPTY); + $potentialExtensionsArray = preg_split('#.*(extensions*="[^"]*").*|>#', $fullString, 2, PREG_SPLIT_DELIM_CAPTURE | PREG_SPLIT_NO_EMPTY); $extensions = []; foreach ($potentialExtensionsArray as $candidate) { $candidate = trim($candidate); diff --git a/typo3/sysext/core/Classes/Utility/ExtensionManagementUtility.php b/typo3/sysext/core/Classes/Utility/ExtensionManagementUtility.php index ba27a20ad66af57ee1506b4c52abad26471d31fa..662bea904a4ffbd7eb335930c4d1f4795ba8171a 100644 --- a/typo3/sysext/core/Classes/Utility/ExtensionManagementUtility.php +++ b/typo3/sysext/core/Classes/Utility/ExtensionManagementUtility.php @@ -543,7 +543,7 @@ class ExtensionManagementUtility $fileFieldTCAConfig = [ 'type' => 'file', 'allowed' => $allowedFileExtensions, - 'disallowed'=> $disallowedFileExtensions, + 'disallowed' => $disallowedFileExtensions, ]; ArrayUtility::mergeRecursiveWithOverrule($fileFieldTCAConfig, $customSettingOverride); return $fileFieldTCAConfig; diff --git a/typo3/sysext/core/Classes/Utility/StringUtility.php b/typo3/sysext/core/Classes/Utility/StringUtility.php index 78c2a591e78d6f0be41378e303940f6bf8a011e1..884805e20f27b23b8287f1b82eed7fc858a8390e 100644 --- a/typo3/sysext/core/Classes/Utility/StringUtility.php +++ b/typo3/sysext/core/Classes/Utility/StringUtility.php @@ -138,22 +138,22 @@ class StringUtility switch ($pad_type) { case STR_PAD_RIGHT: - $string .= str_repeat($pad_string, (int)(($length - $len)/$pad_string_len)); + $string .= str_repeat($pad_string, (int)(($length - $len) / $pad_string_len)); $string .= mb_substr($pad_string, 0, ($length - $len) % $pad_string_len); return $string; case STR_PAD_LEFT: - $leftPad = str_repeat($pad_string, (int)(($length - $len)/$pad_string_len)); + $leftPad = str_repeat($pad_string, (int)(($length - $len) / $pad_string_len)); $leftPad .= mb_substr($pad_string, 0, ($length - $len) % $pad_string_len); return $leftPad . $string; case STR_PAD_BOTH: - $leftPadCount = (int)(($length - $len)/2); + $leftPadCount = (int)(($length - $len) / 2); $len += $leftPadCount; $padded = ((int)($leftPadCount / $pad_string_len)) * $pad_string_len; $leftPad = str_repeat($pad_string, (int)($leftPadCount / $pad_string_len)); $leftPad .= mb_substr($pad_string, 0, $leftPadCount - $padded); - $string = $leftPad . $string . str_repeat($pad_string, (int)(($length - $len)/$pad_string_len)); + $string = $leftPad . $string . str_repeat($pad_string, (int)(($length - $len) / $pad_string_len)); $string .= mb_substr($pad_string, 0, ($length - $len) % $pad_string_len); return $string; } diff --git a/typo3/sysext/core/Configuration/TCA/pages.php b/typo3/sysext/core/Configuration/TCA/pages.php index 54169b41f4ded3826a3305e212ff2976099fbbb6..deb7dbbeb86550e5b17d02827889361b8eb62120 100644 --- a/typo3/sysext/core/Configuration/TCA/pages.php +++ b/typo3/sysext/core/Configuration/TCA/pages.php @@ -278,7 +278,7 @@ return [ ], ], 'categories' => [ - 'config'=> [ + 'config' => [ 'type' => 'category', ], ], diff --git a/typo3/sysext/core/Configuration/TCA/sys_file_metadata.php b/typo3/sysext/core/Configuration/TCA/sys_file_metadata.php index cbf81c426c84866c227d7d15131453a4eeea57d3..9e29bc103637778b9c852e8046d2fbeb6b61a20e 100644 --- a/typo3/sysext/core/Configuration/TCA/sys_file_metadata.php +++ b/typo3/sysext/core/Configuration/TCA/sys_file_metadata.php @@ -37,7 +37,7 @@ return [ ], ], 'categories' => [ - 'config'=> [ + 'config' => [ 'type' => 'category', ], ], diff --git a/typo3/sysext/core/Tests/Acceptance/Application/Impexp/UsersCest.php b/typo3/sysext/core/Tests/Acceptance/Application/Impexp/UsersCest.php index 7dec389295172d9e52043bba76a9ba0fa914e807..c9f575cccda3f26943a5fd31e829821d2735a9b5 100644 --- a/typo3/sysext/core/Tests/Acceptance/Application/Impexp/UsersCest.php +++ b/typo3/sysext/core/Tests/Acceptance/Application/Impexp/UsersCest.php @@ -193,7 +193,7 @@ final class UsersCest extends AbstractCest } $I->waitForElementVisible($this->inModuleHeader . ' [name=BackendUserModuleMenu]'); - $I->selectOption($this->inModuleHeader . ' [name=BackendUserModuleMenu]', ['text'=>'Backend user groups']); + $I->selectOption($this->inModuleHeader . ' [name=BackendUserModuleMenu]', ['text' => 'Backend user groups']); $I->waitForText('Backend user groups'); $I->click('//table/tbody/tr[descendant::a[@data-contextmenu-uid="' . $userGroupId . '"]]/td[2]/a'); $I->waitForElementVisible('#EditDocumentController'); @@ -224,7 +224,7 @@ final class UsersCest extends AbstractCest } $I->waitForElementVisible($this->inModuleHeader . ' [name=BackendUserModuleMenu]'); - $I->selectOption($this->inModuleHeader . ' [name=BackendUserModuleMenu]', ['text'=>'Backend users']); + $I->selectOption($this->inModuleHeader . ' [name=BackendUserModuleMenu]', ['text' => 'Backend users']); $I->waitForElement('#typo3-backend-user-list'); $I->click('//table[@id="typo3-backend-user-list"]/tbody/tr[descendant::a[@data-contextmenu-uid="' . $userId . '"]]//a[@title="Edit"]'); $I->waitForElement('#EditDocumentController'); diff --git a/typo3/sysext/core/Tests/Functional/Resource/StorageRepositoryTest.php b/typo3/sysext/core/Tests/Functional/Resource/StorageRepositoryTest.php index 90d8463ec97a98ead92cb653128ed47305f00f8d..0e3586038fefdeb60f0e29721a09b39893230d7a 100644 --- a/typo3/sysext/core/Tests/Functional/Resource/StorageRepositoryTest.php +++ b/typo3/sysext/core/Tests/Functional/Resource/StorageRepositoryTest.php @@ -156,7 +156,7 @@ final class StorageRepositoryTest extends FunctionalTestCase $processingFolder = $subject->getProcessingFolder($file); self::assertInstanceOf(Folder::class, $processingFolder); self::assertNotEquals($rootProcessingFolder, $processingFolder); - for ($i = ResourceStorage::PROCESSING_FOLDER_LEVELS; $i>0; $i--) { + for ($i = ResourceStorage::PROCESSING_FOLDER_LEVELS; $i > 0; $i--) { $processingFolder = $processingFolder->getParentFolder(); } self::assertEquals($rootProcessingFolder, $processingFolder); diff --git a/typo3/sysext/core/Tests/Functional/Utility/RootlineUtilityTest.php b/typo3/sysext/core/Tests/Functional/Utility/RootlineUtilityTest.php index bfc08b0d51431389a32d0777a1fc5c7fecb3084d..2b3d0316740139f510aa54b87b66cf91b5ceaf05 100644 --- a/typo3/sysext/core/Tests/Functional/Utility/RootlineUtilityTest.php +++ b/typo3/sysext/core/Tests/Functional/Utility/RootlineUtilityTest.php @@ -125,7 +125,7 @@ final class RootlineUtilityTest extends FunctionalTestCase 'uid' => 1330, 't3ver_oid' => 0, 't3ver_wsid' => 0, - 't3ver_state' =>0, + 't3ver_state' => 0, 'title' => 'EN: Board Games', ], 1 => [ diff --git a/typo3/sysext/core/Tests/Unit/Authentication/BackendUserAuthenticationTest.php b/typo3/sysext/core/Tests/Unit/Authentication/BackendUserAuthenticationTest.php index 17a12f8921f8b4d1b044a03d8dff32585ac7849b..0da56ba8639c2f782f924b8c2720ae3d38581680 100644 --- a/typo3/sysext/core/Tests/Unit/Authentication/BackendUserAuthenticationTest.php +++ b/typo3/sysext/core/Tests/Unit/Authentication/BackendUserAuthenticationTest.php @@ -229,7 +229,7 @@ final class BackendUserAuthenticationTest extends UnitTestCase 1, [ 'addFile' => 0, - 'recursivedeleteFolder' =>0, + 'recursivedeleteFolder' => 0, ], [ 'addFile' => 0, @@ -254,7 +254,7 @@ final class BackendUserAuthenticationTest extends UnitTestCase 0, [ 'addFile' => 0, - 'recursivedeleteFolder' =>0, + 'recursivedeleteFolder' => 0, ], [ 'addFile' => false, diff --git a/typo3/sysext/core/Tests/Unit/Authentication/Mfa/Provider/TotpTest.php b/typo3/sysext/core/Tests/Unit/Authentication/Mfa/Provider/TotpTest.php index e425ccda8a1c386a7b0bd33645b335760990f2b4..2ba45b6c26249a95af29445febaf5d2370408d24 100644 --- a/typo3/sysext/core/Tests/Unit/Authentication/Mfa/Provider/TotpTest.php +++ b/typo3/sysext/core/Tests/Unit/Authentication/Mfa/Provider/TotpTest.php @@ -174,13 +174,13 @@ final class TotpTest extends UnitTestCase public function generateEncodedSecretTest(): void { // Check 100 times WITHOUT additional auth factors - for ($i=0; $i<100; $i++) { + for ($i = 0; $i < 100; $i++) { // Assert correct length and secret only contains allowed alphabet self::assertMatchesRegularExpression('/^[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]{32}$/', Totp::generateEncodedSecret()); } // Check 100 times WITH additional auth factors - for ($i=0; $i<100; $i++) { + for ($i = 0; $i < 100; $i++) { $authFactors = ['uid' => 5, 'username' => 'non.admin']; // Assert correct length and secret only contains allowed alphabet self::assertMatchesRegularExpression('/^[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]{32}$/', Totp::generateEncodedSecret($authFactors)); diff --git a/typo3/sysext/core/Tests/Unit/Crypto/PasswordHashing/Pbkdf2PasswordHashTest.php b/typo3/sysext/core/Tests/Unit/Crypto/PasswordHashing/Pbkdf2PasswordHashTest.php index 6a63b85a706449594b9c0aed3678e6f84d3c4973..c56a46520f80635a8f067263ce3aed1fafe5def4 100644 --- a/typo3/sysext/core/Tests/Unit/Crypto/PasswordHashing/Pbkdf2PasswordHashTest.php +++ b/typo3/sysext/core/Tests/Unit/Crypto/PasswordHashing/Pbkdf2PasswordHashTest.php @@ -234,7 +234,7 @@ final class Pbkdf2PasswordHashTest extends UnitTestCase */ public function checkPasswordIsCompatibleWithPythonPasslibHashes(): void { - $passlibSaltedHash= '$pbkdf2-sha256$6400$.6UI/S.nXIk8jcbdHx3Fhg$98jZicV16ODfEsEZeYPGHU3kbrUrvUEXOPimVSQDD44'; + $passlibSaltedHash = '$pbkdf2-sha256$6400$.6UI/S.nXIk8jcbdHx3Fhg$98jZicV16ODfEsEZeYPGHU3kbrUrvUEXOPimVSQDD44'; $subject = new Pbkdf2PasswordHash(['hash_count' => 1000]); self::assertTrue($subject->checkPassword('password', $passlibSaltedHash)); } diff --git a/typo3/sysext/core/Tests/Unit/DependencyInjection/ConsoleCommandPassTest.php b/typo3/sysext/core/Tests/Unit/DependencyInjection/ConsoleCommandPassTest.php index 55389294a208a1f29ef3c01e4a849f26a891891b..e9acce06c44ea99b251e54ffcd0f78c5d3ef93be 100644 --- a/typo3/sysext/core/Tests/Unit/DependencyInjection/ConsoleCommandPassTest.php +++ b/typo3/sysext/core/Tests/Unit/DependencyInjection/ConsoleCommandPassTest.php @@ -66,7 +66,7 @@ final class ConsoleCommandPassTest extends UnitTestCase 'serviceProvider' => CommandRegistryServiceProvider::class, ], 'package1' => [ - 'path' =>__DIR__ . '/Fixtures/Package1/', + 'path' => __DIR__ . '/Fixtures/Package1/', ], ]); diff --git a/typo3/sysext/core/Tests/Unit/Session/UserSessionManagerTest.php b/typo3/sysext/core/Tests/Unit/Session/UserSessionManagerTest.php index 16f3fb2cd93961c187e364db1198668426d820c9..416f7637fe4d69536875a14d0f248078df20c51e 100644 --- a/typo3/sysext/core/Tests/Unit/Session/UserSessionManagerTest.php +++ b/typo3/sysext/core/Tests/Unit/Session/UserSessionManagerTest.php @@ -77,7 +77,7 @@ final class UserSessionManagerTest extends UnitTestCase 60, new IpLocker(0, 0) ); - $expiredSession = UserSession::createFromRecord('random-string', ['ses_tstamp' => time()-500]); + $expiredSession = UserSession::createFromRecord('random-string', ['ses_tstamp' => time() - 500]); self::assertTrue($subject->hasExpired($expiredSession)); $newSession = UserSession::createFromRecord('random-string', ['ses_tstamp' => time()]); self::assertFalse($subject->hasExpired($newSession)); @@ -167,7 +167,7 @@ final class UserSessionManagerTest extends UnitTestCase 60, new IpLocker(0, 0) ); - $session = UserSession::createFromRecord('random-string', ['ses_tstamp' => time()-500]); + $session = UserSession::createFromRecord('random-string', ['ses_tstamp' => time() - 500]); $session = $subject->updateSession($session); self::assertSame(7654321, $session->getLastUpdated()); } @@ -190,7 +190,7 @@ final class UserSessionManagerTest extends UnitTestCase 60, new IpLocker(0, 0) ); - $session = UserSession::createFromRecord('random-string', ['ses_tstamp' => time()-500]); + $session = UserSession::createFromRecord('random-string', ['ses_tstamp' => time() - 500]); $session = $subject->fixateAnonymousSession($session); self::assertSame(IpLocker::DISABLED_LOCK_VALUE, $session->getIpLock()); self::assertNull($session->getUserId()); diff --git a/typo3/sysext/core/Tests/Unit/Utility/GeneralUtilityTest.php b/typo3/sysext/core/Tests/Unit/Utility/GeneralUtilityTest.php index 96a989dcb2dee50d657815cdeffba578ad1cca98..bdff547257dc057a326bfd40f907cdd27b5460ad 100644 --- a/typo3/sysext/core/Tests/Unit/Utility/GeneralUtilityTest.php +++ b/typo3/sysext/core/Tests/Unit/Utility/GeneralUtilityTest.php @@ -629,7 +629,7 @@ final class GeneralUtilityTest extends UnitTestCase 'emptyValuesAreRemoved' => [ '0,1,, 0, 2,,0', true, - [0=>0, 1=>1, 3=>0, 4=>2, 6=>0], // note does not renumber keys! + [0 => 0, 1 => 1, 3 => 0, 4 => 2, 6 => 0], // note does not renumber keys! ], ]; } diff --git a/typo3/sysext/extbase/Classes/Annotation/IgnoreValidation.php b/typo3/sysext/extbase/Classes/Annotation/IgnoreValidation.php index f6d59cae8f0e269a3fa3f6a18ead1f6242d7df28..6078f80f207fac9aaa310354ac01bc182299b991 100644 --- a/typo3/sysext/extbase/Classes/Annotation/IgnoreValidation.php +++ b/typo3/sysext/extbase/Classes/Annotation/IgnoreValidation.php @@ -21,7 +21,7 @@ namespace TYPO3\CMS\Extbase\Annotation; * @Annotation * @Target({"METHOD"}) */ -#[\Attribute(\Attribute::TARGET_METHOD|\Attribute::IS_REPEATABLE)] +#[\Attribute(\Attribute::TARGET_METHOD | \Attribute::IS_REPEATABLE)] class IgnoreValidation { /** diff --git a/typo3/sysext/extbase/Classes/Annotation/Validate.php b/typo3/sysext/extbase/Classes/Annotation/Validate.php index 7280e001ec43d0cf6db2ae85f204d59a0ce55bc3..106be4de1d432ecc3bfe1e036938cc435a97ea9b 100644 --- a/typo3/sysext/extbase/Classes/Annotation/Validate.php +++ b/typo3/sysext/extbase/Classes/Annotation/Validate.php @@ -23,7 +23,7 @@ use Doctrine\Common\Annotations\Annotation\Required; * @Annotation * @Target({"PROPERTY", "METHOD"}) */ -#[\Attribute(\Attribute::TARGET_PROPERTY|\Attribute::TARGET_METHOD|\Attribute::IS_REPEATABLE)] +#[\Attribute(\Attribute::TARGET_PROPERTY | \Attribute::TARGET_METHOD | \Attribute::IS_REPEATABLE)] class Validate { /** diff --git a/typo3/sysext/extbase/Classes/Persistence/Generic/Storage/Typo3DbBackend.php b/typo3/sysext/extbase/Classes/Persistence/Generic/Storage/Typo3DbBackend.php index 64c1aeb50a86a06d5ba0cfabf44414ec09cd4367..96944057d2612b747163fabfb6d5c5207b85226b 100644 --- a/typo3/sysext/extbase/Classes/Persistence/Generic/Storage/Typo3DbBackend.php +++ b/typo3/sysext/extbase/Classes/Persistence/Generic/Storage/Typo3DbBackend.php @@ -251,7 +251,7 @@ class Typo3DbBackend implements BackendInterface, SingletonInterface throw new SqlErrorException($e->getPrevious()->getMessage(), 1472064721, $e); } $rows = $result->fetchAllAssociative(); - // Prepared Doctrine DBAL statement + // Prepared Doctrine DBAL statement } elseif ($realStatement instanceof \Doctrine\DBAL\Statement) { try { $result = $realStatement->executeQuery($parameters); diff --git a/typo3/sysext/extbase/Classes/Routing/ExtbasePluginEnhancer.php b/typo3/sysext/extbase/Classes/Routing/ExtbasePluginEnhancer.php index 72d793cc8451d34d04b3711d61c319736e896bf6..ca7cfc38dd4d36c834b13390086bdb888f4413c1 100644 --- a/typo3/sysext/extbase/Classes/Routing/ExtbasePluginEnhancer.php +++ b/typo3/sysext/extbase/Classes/Routing/ExtbasePluginEnhancer.php @@ -230,10 +230,10 @@ class ExtbasePluginEnhancer extends PluginEnhancer // use default action name if controller matches if ($tryUpdate && empty($target['action']) && $controllerName === ($target['controller'] ?? null)) { $target['action'] = $actionName; - // use default controller name if action is defined (implies: non-default-controllers must be given) + // use default controller name if action is defined (implies: non-default-controllers must be given) } elseif ($tryUpdate && empty($target['controller']) && !empty($target['action'])) { $target['controller'] = $controllerName; - // fallback and override + // fallback and override } else { $target['controller'] = $controllerName; $target['action'] = $actionName; diff --git a/typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/blog_example/Configuration/TCA/tx_blogexample_domain_model_blog.php b/typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/blog_example/Configuration/TCA/tx_blogexample_domain_model_blog.php index c673fb187ecc36c4a7544fdc7feb255201b235c8..438824c87e082e83bd06fe98435abee34019e4db 100644 --- a/typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/blog_example/Configuration/TCA/tx_blogexample_domain_model_blog.php +++ b/typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/blog_example/Configuration/TCA/tx_blogexample_domain_model_blog.php @@ -30,7 +30,7 @@ return [ ], ], 'categories' => [ - 'config'=> [ + 'config' => [ 'type' => 'category', ], ], diff --git a/typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/blog_example/Configuration/TCA/tx_blogexample_domain_model_post.php b/typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/blog_example/Configuration/TCA/tx_blogexample_domain_model_post.php index 5dd7d44f54927650c3a3eab88391383901e3943e..4c049429f08a8f5d126f5aebb0132294a07fe8a5 100644 --- a/typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/blog_example/Configuration/TCA/tx_blogexample_domain_model_post.php +++ b/typo3/sysext/extbase/Tests/Functional/Fixtures/Extensions/blog_example/Configuration/TCA/tx_blogexample_domain_model_post.php @@ -39,7 +39,7 @@ return [ ], ], 'categories' => [ - 'config'=> [ + 'config' => [ 'type' => 'category', ], ], diff --git a/typo3/sysext/extbase/Tests/Functional/Persistence/CountTest.php b/typo3/sysext/extbase/Tests/Functional/Persistence/CountTest.php index 8e54472e1d506e794b0fbf762bcd3dc24b925d2c..4356130f76988695581c1f58df31e7a8ae0cd3c2 100644 --- a/typo3/sysext/extbase/Tests/Functional/Persistence/CountTest.php +++ b/typo3/sysext/extbase/Tests/Functional/Persistence/CountTest.php @@ -57,7 +57,7 @@ final class CountTest extends FunctionalTestCase public function offsetCountTest(): void { $query = $this->get(PostRepository::class)->createQuery(); - $query->setLimit($this->numberOfRecordsInFixture+1); + $query->setLimit($this->numberOfRecordsInFixture + 1); $query->setOffset(6); self::assertSame($this->numberOfRecordsInFixture - 6, $query->count()); } @@ -68,7 +68,7 @@ final class CountTest extends FunctionalTestCase public function exceedingOffsetCountTest(): void { $query = $this->get(PostRepository::class)->createQuery(); - $query->setLimit($this->numberOfRecordsInFixture+1); + $query->setLimit($this->numberOfRecordsInFixture + 1); $query->setOffset($this->numberOfRecordsInFixture + 5); self::assertSame(0, $query->count()); } diff --git a/typo3/sysext/extbase/Tests/Unit/Mvc/Web/Routing/UriBuilderTest.php b/typo3/sysext/extbase/Tests/Unit/Mvc/Web/Routing/UriBuilderTest.php index e252dbb6eb8c900d5ea08ed54b071a455a4224a7..459e9e09a6bce51c68df4d633e6833a7f3cbd27f 100644 --- a/typo3/sysext/extbase/Tests/Unit/Mvc/Web/Routing/UriBuilderTest.php +++ b/typo3/sysext/extbase/Tests/Unit/Mvc/Web/Routing/UriBuilderTest.php @@ -129,7 +129,7 @@ final class UriBuilderTest extends UnitTestCase */ public function uriForPrefixesArgumentsWithExtensionAndPluginNameAndSetsControllerArgument(): void { - $expectedArguments =['foo' => 'bar', 'baz' => ['extbase' => 'fluid'], 'controller' => 'SomeController']; + $expectedArguments = ['foo' => 'bar', 'baz' => ['extbase' => 'fluid'], 'controller' => 'SomeController']; $GLOBALS['TSFE'] = null; $this->mockRequest->method('getAttribute')->with('applicationType')->willReturn(SystemEnvironmentBuilder::REQUESTTYPE_BE); $this->subject->uriFor(null, ['foo' => 'bar', 'baz' => ['extbase' => 'fluid']], 'SomeController', 'SomeExtension', 'SomePlugin'); diff --git a/typo3/sysext/fluid/Classes/ViewHelpers/FormViewHelper.php b/typo3/sysext/fluid/Classes/ViewHelpers/FormViewHelper.php index f1837b32a542f04b1606fd800b4bb6bab6b32aaf..c943eb902d8d1fc67f38b42813927849736cb783 100644 --- a/typo3/sysext/fluid/Classes/ViewHelpers/FormViewHelper.php +++ b/typo3/sysext/fluid/Classes/ViewHelpers/FormViewHelper.php @@ -468,7 +468,7 @@ class FormViewHelper extends AbstractFormViewHelper // basically "request token, yes" - uses form-action URI as scope if ($isTrulyRequestToken || $requestToken === '@nonce') { $requestToken = RequestToken::create($formAction); - // basically "request token with 'my-scope'" - uses 'my-scope' + // basically "request token with 'my-scope'" - uses 'my-scope' } elseif (is_string($requestToken) && $requestToken !== '') { $requestToken = RequestToken::create($requestToken); } diff --git a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Format/CurrencyViewHelperTest.php b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Format/CurrencyViewHelperTest.php index 620ab1d34f9b89b23151b6ee94096a0d2ead82e0..5a6fce0d9cca4bb170f98e6fb327ebcc829d6d4c 100644 --- a/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Format/CurrencyViewHelperTest.php +++ b/typo3/sysext/fluid/Tests/Functional/ViewHelpers/Format/CurrencyViewHelperTest.php @@ -40,7 +40,7 @@ final class CurrencyViewHelperTest extends FunctionalTestCase '<f:format.currency currencySign="foo" prependCurrency="true" decimalSeparator="," thousandsSeparator=".">123</f:format.currency>', 'foo 123,00', ], - 'respects currency separator' =>[ + 'respects currency separator' => [ '<f:format.currency currencySign="foo" separateCurrency="false" prependCurrency="true" decimalSeparator="," thousandsSeparator=".">123</f:format.currency>', 'foo123,00', ], diff --git a/typo3/sysext/form/Tests/Functional/Mvc/Validation/FileSizeValidatorTest.php b/typo3/sysext/form/Tests/Functional/Mvc/Validation/FileSizeValidatorTest.php index 8b4d173c00014f1aafef6d7f1de1116582524319..9d21665664c2b89a73b7f1ab0a63561aee1801dd 100644 --- a/typo3/sysext/form/Tests/Functional/Mvc/Validation/FileSizeValidatorTest.php +++ b/typo3/sysext/form/Tests/Functional/Mvc/Validation/FileSizeValidatorTest.php @@ -72,7 +72,7 @@ final class FileSizeValidatorTest extends FunctionalTestCase $validator = new FileSizeValidator(); $validator->setOptions($options); $mockedStorage = $this->getMockBuilder(ResourceStorage::class)->disableOriginalConstructor()->getMock(); - $file = new File(['identifier' => '/foo', 'name'=> 'bar.txt', 'size' => '1'], $mockedStorage); + $file = new File(['identifier' => '/foo', 'name' => 'bar.txt', 'size' => '1'], $mockedStorage); self::assertTrue($validator->validate($file)->hasErrors()); } diff --git a/typo3/sysext/form/Tests/Unit/Mvc/Persistence/FormPersistenceManagerTest.php b/typo3/sysext/form/Tests/Unit/Mvc/Persistence/FormPersistenceManagerTest.php index 18d57bdbb62d49043c7988c42e6b4f79c6a99762..535b4d707876e1c4d91051320dd2e6f38aea0aad 100644 --- a/typo3/sysext/form/Tests/Unit/Mvc/Persistence/FormPersistenceManagerTest.php +++ b/typo3/sysext/form/Tests/Unit/Mvc/Persistence/FormPersistenceManagerTest.php @@ -42,7 +42,7 @@ final class FormPersistenceManagerTest extends UnitTestCase $mockFormPersistenceManager = $this->getAccessibleMock(FormPersistenceManager::class, null, [], '', false); - $runtimeCache= $this->getMockBuilder(VariableFrontend::class) + $runtimeCache = $this->getMockBuilder(VariableFrontend::class) ->onlyMethods(['get', 'set']) ->disableOriginalConstructor() ->getMock(); @@ -67,7 +67,7 @@ final class FormPersistenceManagerTest extends UnitTestCase $mockFormPersistenceManager = $this->getAccessibleMock(FormPersistenceManager::class, null, [], '', false); - $runtimeCache= $this->getMockBuilder(VariableFrontend::class) + $runtimeCache = $this->getMockBuilder(VariableFrontend::class) ->onlyMethods(['get', 'set']) ->disableOriginalConstructor() ->getMock(); @@ -132,7 +132,7 @@ final class FormPersistenceManagerTest extends UnitTestCase $mockFormPersistenceManager = $this->getAccessibleMock(FormPersistenceManager::class, null, [], '', false); - $runtimeCache= $this->getMockBuilder(VariableFrontend::class) + $runtimeCache = $this->getMockBuilder(VariableFrontend::class) ->onlyMethods(['get', 'set']) ->disableOriginalConstructor() ->getMock(); @@ -220,7 +220,7 @@ final class FormPersistenceManagerTest extends UnitTestCase $mockFormPersistenceManager = $this->getAccessibleMock(FormPersistenceManager::class, ['exists'], [], '', false); - $runtimeCache= $this->getMockBuilder(VariableFrontend::class) + $runtimeCache = $this->getMockBuilder(VariableFrontend::class) ->onlyMethods(['get', 'set']) ->disableOriginalConstructor() ->getMock(); @@ -288,7 +288,7 @@ final class FormPersistenceManagerTest extends UnitTestCase { $mockFormPersistenceManager = $this->getAccessibleMock(FormPersistenceManager::class, null, [], '', false); - $runtimeCache= $this->getMockBuilder(VariableFrontend::class) + $runtimeCache = $this->getMockBuilder(VariableFrontend::class) ->onlyMethods(['get', 'set']) ->disableOriginalConstructor() ->getMock(); diff --git a/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php b/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php index c194080ef2a6fbf62825438549d0b8ffad312ffe..6a3904289ad5783fe769b4fa99eceefef418b22e 100644 --- a/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php +++ b/typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php @@ -4366,7 +4366,7 @@ class ContentObjectRenderer implements LoggerAwareInterface if (method_exists($value, 'get' . ucfirst($currentKey))) { $getterMethod = 'get' . ucfirst($currentKey); $value = $value->$getterMethod(...)(); - // server request attribute, such as "routing" + // server request attribute, such as "routing" } elseif ($value instanceof ServerRequestInterface) { $value = $value->getAttribute($currentKey); } else { diff --git a/typo3/sysext/frontend/Classes/DataProcessing/GalleryProcessor.php b/typo3/sysext/frontend/Classes/DataProcessing/GalleryProcessor.php index 03a43279731153c515f3d6cb962d6780a194a81d..8510254d6f2c2d7a8096146d370af136d7dd3d2b 100644 --- a/typo3/sysext/frontend/Classes/DataProcessing/GalleryProcessor.php +++ b/typo3/sysext/frontend/Classes/DataProcessing/GalleryProcessor.php @@ -422,7 +422,7 @@ class GalleryProcessor implements DataProcessorInterface // Recalculate gallery width $this->galleryData['width'] = floor($maximumRowWidth / $mediaScalingCorrection); - // User entered a predefined width + // User entered a predefined width } elseif ($this->equalMediaWidth) { $mediaScalingCorrection = 1; @@ -446,7 +446,7 @@ class GalleryProcessor implements DataProcessorInterface // Recalculate gallery width $this->galleryData['width'] = floor($totalRowWidth / $mediaScalingCorrection); - // Automatic setting of width and height + // Automatic setting of width and height } else { $maxMediaWidth = (int)($galleryWidthMinusBorderAndSpacing / $this->galleryData['count']['columns']); foreach ($this->fileObjects as $key => $fileObject) { diff --git a/typo3/sysext/frontend/Classes/Middleware/PageArgumentValidator.php b/typo3/sysext/frontend/Classes/Middleware/PageArgumentValidator.php index cf0c9fcceed2c808f9ac0125b8f6a586314ce333..701f288191fbd80265f02e034ae8f2c731522426 100644 --- a/typo3/sysext/frontend/Classes/Middleware/PageArgumentValidator.php +++ b/typo3/sysext/frontend/Classes/Middleware/PageArgumentValidator.php @@ -100,7 +100,7 @@ class PageArgumentValidator implements MiddlewareInterface, LoggerAwareInterface ['code' => PageAccessFailureReasons::CACHEHASH_COMPARISON_FAILED] ); } - // No cHash given but was required + // No cHash given but was required } elseif (!$this->evaluatePageArgumentsWithoutCacheHash($pageArguments, $pageNotFoundOnValidationError)) { return GeneralUtility::makeInstance(ErrorController::class)->pageNotFoundAction( $request, diff --git a/typo3/sysext/indexed_search/Classes/EventListener/FrontendGenerationPageIndexingTrigger.php b/typo3/sysext/indexed_search/Classes/EventListener/FrontendGenerationPageIndexingTrigger.php index 671ced815d0f975abacc3516f7c1bb3bf04d581e..4c1643636541f0cca2435cab4a837449d6979fc8 100644 --- a/typo3/sysext/indexed_search/Classes/EventListener/FrontendGenerationPageIndexingTrigger.php +++ b/typo3/sysext/indexed_search/Classes/EventListener/FrontendGenerationPageIndexingTrigger.php @@ -94,7 +94,7 @@ class FrontendGenerationPageIndexingTrigger // Page id 'id' => $tsfe->id, // Page type - 'type'=> $pageArguments->getPageType(), + 'type' => $pageArguments->getPageType(), // site language id of the language of the indexing. 'sys_language_uid' => $languageAspect->getId(), // MP variable, if any (Mount Points) diff --git a/typo3/sysext/install/Classes/FolderStructure/DefaultFactory.php b/typo3/sysext/install/Classes/FolderStructure/DefaultFactory.php index c2441c2e7d19a5f61ab0f82fca7e7586e5685740..97e9417065207666a32ecc25a96952380168e07a 100644 --- a/typo3/sysext/install/Classes/FolderStructure/DefaultFactory.php +++ b/typo3/sysext/install/Classes/FolderStructure/DefaultFactory.php @@ -147,7 +147,7 @@ class DefaultFactory } } else { // This is when the public path is a subfolder (e.g. public/ or web/) - $publicPath = substr(Environment::getPublicPath(), strlen(Environment::getProjectPath())+1); + $publicPath = substr(Environment::getPublicPath(), strlen(Environment::getProjectPath()) + 1); $publicPathSubStructure = [ [ diff --git a/typo3/sysext/install/Configuration/ExtensionScanner/Php/ClassNameMatcher.php b/typo3/sysext/install/Configuration/ExtensionScanner/Php/ClassNameMatcher.php index 7acd9b69863bbc53a96a4075252cd5517b227c08..495afa5758cca14a0840d73482cc4319594eabea 100644 --- a/typo3/sysext/install/Configuration/ExtensionScanner/Php/ClassNameMatcher.php +++ b/typo3/sysext/install/Configuration/ExtensionScanner/Php/ClassNameMatcher.php @@ -1100,7 +1100,7 @@ return [ 'Breaking-87193-DeprecatedFunctionalityRemoved.rst', ], ], - 'TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\AbstractNode'=> [ + 'TYPO3\CMS\Fluid\Core\Parser\SyntaxTree\AbstractNode' => [ 'restFiles' => [ 'Deprecation-87277-FluidClassAliases.rst', 'Breaking-87193-DeprecatedFunctionalityRemoved.rst', diff --git a/typo3/sysext/install/Tests/Functional/UpgradeAnalysis/DocumentationFileTest.php b/typo3/sysext/install/Tests/Functional/UpgradeAnalysis/DocumentationFileTest.php index 7ade24cc84eb14d9a78da416ddc86095ee103920..022bbaa073a2fe1069987a8cef3187cdd8ca5d6c 100644 --- a/typo3/sysext/install/Tests/Functional/UpgradeAnalysis/DocumentationFileTest.php +++ b/typo3/sysext/install/Tests/Functional/UpgradeAnalysis/DocumentationFileTest.php @@ -133,8 +133,8 @@ final class DocumentationFileTest extends FunctionalTestCase { $currentVersion = (int)explode('.', VersionNumberUtility::getNumericTypo3Version())[0]; $expected = [ - 0 => $currentVersion-2 . '.0', - 1 => $currentVersion-1 . '.0', + 0 => $currentVersion - 2 . '.0', + 1 => $currentVersion - 1 . '.0', 2 => $currentVersion . '.0', ]; $subject = new DocumentationFile(Environment::getPublicPath() . '/Changelog'); diff --git a/typo3/sysext/install/Tests/Unit/Updates/RowUpdater/L18nDiffsourceToJsonMigrationTest.php b/typo3/sysext/install/Tests/Unit/Updates/RowUpdater/L18nDiffsourceToJsonMigrationTest.php index e41065a1e8d738512ea89c4395c1bcf8f31ce4c7..0518bf8a648c21a0dcd13536ea09fedfdc98b61c 100644 --- a/typo3/sysext/install/Tests/Unit/Updates/RowUpdater/L18nDiffsourceToJsonMigrationTest.php +++ b/typo3/sysext/install/Tests/Unit/Updates/RowUpdater/L18nDiffsourceToJsonMigrationTest.php @@ -40,7 +40,7 @@ final class L18nDiffsourceToJsonMigrationTest extends UnitTestCase 'ctrl' => [ 'languageField' => 'sys_language_uid', 'transOrigPointerField' => 'l10n_parent', - 'transOrigDiffSourceField' =>'l10n_diffsource', + 'transOrigDiffSourceField' => 'l10n_diffsource', ], ]; self::assertTrue((new L18nDiffsourceToJsonMigration())->hasPotentialUpdateForTable('testTable')); @@ -53,7 +53,7 @@ final class L18nDiffsourceToJsonMigrationTest extends UnitTestCase { $GLOBALS['TCA']['testTable'] = [ 'ctrl' => [ - 'transOrigDiffSourceField' =>'l10n_diffsource', + 'transOrigDiffSourceField' => 'l10n_diffsource', ], ]; $row = []; @@ -117,7 +117,7 @@ final class L18nDiffsourceToJsonMigrationTest extends UnitTestCase { $GLOBALS['TCA']['testTable'] = [ 'ctrl' => [ - 'transOrigDiffSourceField' =>'l10n_diffsource', + 'transOrigDiffSourceField' => 'l10n_diffsource', ], ]; $row = ['l10n_diffsource' => $input]; diff --git a/typo3/sysext/lowlevel/Classes/Command/MissingRelationsCommand.php b/typo3/sysext/lowlevel/Classes/Command/MissingRelationsCommand.php index ce6b26ded9aaac8d0a49eb40dd6ee8b848929295..456e670511a15eaa21e5bb54c2b9e496283a4bf0 100644 --- a/typo3/sysext/lowlevel/Classes/Command/MissingRelationsCommand.php +++ b/typo3/sysext/lowlevel/Classes/Command/MissingRelationsCommand.php @@ -278,7 +278,7 @@ If you want to get more detailed information, use the --verbose option.') } else { $offlineVersionRecords[$idx][$rec['hash']] = $infoString; } - // reference to a deleted record + // reference to a deleted record } elseif (isset($GLOBALS['TCA'][$rec['ref_table']]['ctrl']['delete']) && $existingRecords[$idx][$GLOBALS['TCA'][$rec['ref_table']]['ctrl']['delete']]) { if ($isSoftReference) { $deletedRecordsInSoftReferenceRelations[] = $infoString; diff --git a/typo3/sysext/lowlevel/Classes/Service/CleanUpLocalProcessedFilesService.php b/typo3/sysext/lowlevel/Classes/Service/CleanUpLocalProcessedFilesService.php index e10a0f53cec6ee181ccfe5c073bf7740126901a9..1dac629d5854d3b5377d9d5d99a06ec9bf4e94b5 100644 --- a/typo3/sysext/lowlevel/Classes/Service/CleanUpLocalProcessedFilesService.php +++ b/typo3/sysext/lowlevel/Classes/Service/CleanUpLocalProcessedFilesService.php @@ -152,7 +152,7 @@ class CleanUpLocalProcessedFilesService $iterator = new \RecursiveIteratorIterator( new \RecursiveDirectoryIterator( $basePath . $folder->getIdentifier(), - \FilesystemIterator::UNIX_PATHS|\FilesystemIterator::SKIP_DOTS|\FilesystemIterator::FOLLOW_SYMLINKS|\FilesystemIterator::CURRENT_AS_FILEINFO + \FilesystemIterator::UNIX_PATHS | \FilesystemIterator::SKIP_DOTS | \FilesystemIterator::FOLLOW_SYMLINKS | \FilesystemIterator::CURRENT_AS_FILEINFO ), \RecursiveIteratorIterator::SELF_FIRST, \RecursiveIteratorIterator::CATCH_GET_CHILD diff --git a/typo3/sysext/reactions/Classes/Repository/ReactionRepository.php b/typo3/sysext/reactions/Classes/Repository/ReactionRepository.php index 563f033fa59e06166a044e79f3c616c1893a01b1..aa72148394f2d4def03ea16c17301833e63643e0 100644 --- a/typo3/sysext/reactions/Classes/Repository/ReactionRepository.php +++ b/typo3/sysext/reactions/Classes/Repository/ReactionRepository.php @@ -134,7 +134,7 @@ class ReactionRepository return new ReactionInstruction($row); } - protected function getQueryBuilder(bool $addDefaultOrderByClause=true): QueryBuilder + protected function getQueryBuilder(bool $addDefaultOrderByClause = true): QueryBuilder { // @todo ConnectionPool could be injected $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class) diff --git a/typo3/sysext/workspaces/Classes/Service/GridDataService.php b/typo3/sysext/workspaces/Classes/Service/GridDataService.php index 1c75d08ae24470aadce3489f1779c390546a0371..f69177220094f2132c7b547936fa5adbc7c0d50d 100644 --- a/typo3/sysext/workspaces/Classes/Service/GridDataService.php +++ b/typo3/sysext/workspaces/Classes/Service/GridDataService.php @@ -453,7 +453,7 @@ class GridDataService implements LoggerAwareInterface if ($a[$this->sort] == $b[$this->sort]) { $sortingResult = 0; } elseif ($this->sortDir === 'ASC') { - $sortingResult= $a[$this->sort] < $b[$this->sort] ? -1 : 1; + $sortingResult = $a[$this->sort] < $b[$this->sort] ? -1 : 1; } elseif ($this->sortDir === 'DESC') { $sortingResult = $a[$this->sort] > $b[$this->sort] ? -1 : 1; } else {