Skip to content

Commit 9aa403a

Browse files
committed
[TASK] CS change to multiline parameters with comma on last
Regex Replace: * search: `(\$.*[^,])\n \)` * replace: `$1,\n )` Relates: #4247
1 parent 43f3baa commit 9aa403a

File tree

97 files changed

+142
-142
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+142
-142
lines changed

Classes/Access/Rootline.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public function push(RootlineElement $rootlineElement): void
123123
*/
124124
public static function getAccessRootlineByPageId(
125125
int $pageId,
126-
string $mountPointParameter = ''
126+
string $mountPointParameter = '',
127127
): Rootline {
128128
/** @var Rootline $accessRootline */
129129
$accessRootline = GeneralUtility::makeInstance(Rootline::class);

Classes/Backend/SettingsPreviewOnPlugins.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class SettingsPreviewOnPlugins
3737
protected array $settings = [];
3838

3939
public function __construct(
40-
protected FlexFormService $flexFormService
40+
protected FlexFormService $flexFormService,
4141
) {}
4242

4343
public function __invoke(PageContentPreviewRenderingEvent $event): void

Classes/Backend/SiteSelectorField.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class SiteSelectorField
3939
*/
4040
public function getAvailableSitesSelector(
4141
string $selectorName,
42-
?Site $selectedSite = null
42+
?Site $selectedSite = null,
4343
): string {
4444
$siteRepository = GeneralUtility::makeInstance(SiteRepository::class);
4545

Classes/ContentObject/Relation.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ class Relation extends AbstractContentObject
5757
protected ?FrontendOverlayService $frontendOverlayService = null;
5858

5959
public function __construct(
60-
protected readonly TCAService $tcaService
60+
protected readonly TCAService $tcaService,
6161
) {
6262
$this->configuration['enableRecursiveValueResolution'] = 1;
6363
$this->configuration['removeEmptyValues'] = 1;
@@ -251,7 +251,7 @@ protected function getRelatedItemsFromForeignTable(
251251
string $localTableName,
252252
int $localRecordUid,
253253
array $localFieldTca,
254-
ContentObjectRenderer $parentContentObject
254+
ContentObjectRenderer $parentContentObject,
255255
): array {
256256
$relatedItems = [];
257257
$foreignTableName = $localFieldTca['config']['foreign_table'];
@@ -318,7 +318,7 @@ protected function resolveRelatedValue(
318318
array $foreignTableTca,
319319
string $foreignTableLabelField,
320320
ContentObjectRenderer $parentContentObject,
321-
string $foreignTableName = ''
321+
string $foreignTableName = '',
322322
): array {
323323
if ($this->getLanguageUid($parentContentObject) > 0 && !empty($foreignTableName)) {
324324
$relatedRecord = $this->getFrontendOverlayService($parentContentObject)->getOverlay($foreignTableName, $relatedRecord);

Classes/Controller/Backend/Search/CoreOptimizationModuleController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public function exportSynonymsAction(string $fileFormat = 'txt'): ResponseInterf
136136
*/
137137
public function importSynonymListAction(
138138
bool $overrideExisting = false,
139-
bool $deleteSynonymsBefore = false
139+
bool $deleteSynonymsBefore = false,
140140
): ResponseInterface {
141141
$synonymFileUpload = $this->request->getUploadedFiles()['synonymFileUpload'] ?? null;
142142
if (!$synonymFileUpload instanceof UploadedFile) {

Classes/Domain/Index/Classification/Classification.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class Classification
4040
public function __construct(
4141
array $matchPatterns = [],
4242
array $unMatchPatterns = [],
43-
string $mappedClass = ''
43+
string $mappedClass = '',
4444
) {
4545
$this->matchPatterns = $matchPatterns;
4646
$this->unMatchPatterns = $unMatchPatterns;

Classes/Domain/Index/Classification/ClassificationService.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class ClassificationService
2727
*/
2828
public function getMatchingClassNames(
2929
string $stringToMatch,
30-
array $classifications
30+
array $classifications,
3131
): array {
3232
$matchingClassification = [];
3333
foreach ($classifications as $classification) {
@@ -41,7 +41,7 @@ public function getMatchingClassNames(
4141
protected function applyMatchPatterns(
4242
string $stringToMatch,
4343
Classification $classification,
44-
$matchingClassification
44+
$matchingClassification,
4545
): array {
4646
foreach ($classification->getMatchPatterns() as $matchPattern) {
4747
if (preg_match_all('~' . $matchPattern . '~ims', $stringToMatch) > 0) {
@@ -56,7 +56,7 @@ protected function applyMatchPatterns(
5656
protected function applyUnMatchPatterns(
5757
string $stringToMatch,
5858
Classification $classification,
59-
$matchingClassification
59+
$matchingClassification,
6060
): array {
6161
foreach ($classification->getUnMatchPatterns() as $unMatchPattern) {
6262
if (preg_match_all('~' . $unMatchPattern . '~ims', $stringToMatch) > 0) {

Classes/Domain/Index/IndexService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ protected function indexItem(Item $item, TypoScriptConfiguration $configuration)
185185
*/
186186
protected function getIndexerByItem(
187187
string $indexingConfigurationName,
188-
TypoScriptConfiguration $configuration
188+
TypoScriptConfiguration $configuration,
189189
): Indexer {
190190
$indexerClass = $configuration->getIndexQueueIndexerByConfigurationName($indexingConfigurationName);
191191
$indexerConfiguration = $configuration->getIndexQueueIndexerConfigurationByConfigurationName($indexingConfigurationName);

Classes/Domain/Index/PageIndexer/PageUriBuilder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class PageUriBuilder
4343
public function __construct(
4444
?SolrLogManager $logger = null,
4545
?SiteFinder $siteFinder = null,
46-
?EventDispatcherInterface $eventDispatcher = null
46+
?EventDispatcherInterface $eventDispatcher = null,
4747
) {
4848
$this->logger = $logger ?? GeneralUtility::makeInstance(SolrLogManager::class, __CLASS__);
4949
$this->siteFinder = $siteFinder ?? GeneralUtility::makeInstance(SiteFinder::class);
@@ -104,7 +104,7 @@ public function getPageIndexingUriFromPageItemAndLanguageId(
104104
Item $item,
105105
int $language = 0,
106106
string $mountPointParameter = '',
107-
array $options = []
107+
array $options = [],
108108
): string {
109109
$pageIndexUri = $this->buildPageIndexingUriFromPageItemAndLanguageId($item, $language, $mountPointParameter);
110110
$overrideConfiguration = $options['frontendDataHelper.'] ?? [];

Classes/Domain/Index/Queue/QueueInitializationService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ protected function executeInitializer(
145145
string $indexingConfigurationName,
146146
string $initializerClass,
147147
string $type,
148-
array $indexConfiguration
148+
array $indexConfiguration,
149149
): bool {
150150
$initializer = GeneralUtility::makeInstance($initializerClass);
151151
/** @var AbstractInitializer $initializer */

0 commit comments

Comments
 (0)