Skip to content

Commit 9a0a756

Browse files
committed
[BUGFIX] use addRules instead setRules for php-cs-fixer
1 parent 11b9024 commit 9a0a756

File tree

21 files changed

+46
-39
lines changed

21 files changed

+46
-39
lines changed

Build/php-cs-fixer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
$config = \TYPO3\CodingStandards\CsFixerConfig::create();
44
$config->getFinder()->exclude(['var'])->in(__DIR__ . '/..');
5-
$config->setRules([
5+
$config->addRules([
66
'nullable_type_declaration' => [
77
'syntax' => 'question_mark',
88
],

Build/phpunit/FunctionalTestsBootstrap.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/*
34
* This file is part of the TYPO3 CMS project.
45
*

Build/phpunit/UnitTestsBootstrap.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
/*
34
* This file is part of the TYPO3 CMS project.
45
*
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
base: autogenerated-2
2+
errorHandling: { }
3+
languages:
4+
-
5+
title: English
6+
enabled: true
7+
languageId: 0
8+
base: /
9+
locale: en_US.UTF-8
10+
navigationTitle: English
11+
flag: us
12+
rootPageId: 2
13+
routes: { }

Classes/Backend/Preview/ContainerPreviewRenderer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
* of the License, or any later version.
1313
*/
1414

15-
1615
use TYPO3\CMS\Backend\Preview\StandardContentPreviewRenderer;
1716
use TYPO3\CMS\Backend\View\BackendLayout\Grid\GridColumnItem;
1817
use TYPO3\CMS\Core\Cache\Frontend\FrontendInterface;
@@ -24,7 +23,8 @@ class ContainerPreviewRenderer extends StandardContentPreviewRenderer
2423
protected GridRenderer $gridRenderer;
2524
protected FrontendInterface $runtimeCache;
2625

27-
public function __construct(GridRenderer $gridRenderer, FrontendInterface $runtimeCache) {
26+
public function __construct(GridRenderer $gridRenderer, FrontendInterface $runtimeCache)
27+
{
2828
$this->gridRenderer = $gridRenderer;
2929
$this->runtimeCache = $runtimeCache;
3030
}

Classes/Backend/Preview/GridRenderer.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
use B13\Container\Domain\Factory\Exception;
1919
use B13\Container\Domain\Factory\PageView\Backend\ContainerFactory;
2020
use B13\Container\Events\BeforeContainerPreviewIsRenderedEvent;
21-
use B13\Container\Events\BeforeContainerPreviewIsRenderedEventV12;
2221
use B13\Container\Tca\Registry;
2322
use Psr\EventDispatcher\EventDispatcherInterface;
2423
use TYPO3\CMS\Backend\Utility\BackendUtility;
@@ -36,7 +35,6 @@
3635

3736
class GridRenderer
3837
{
39-
4038
protected Registry $tcaRegistry;
4139
protected ContainerFactory $containerFactory;
4240
protected NewContentUrlBuilder $newContentUrlBuilder;

Classes/ContentDefender/Xclasses/CommandMapHook.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ public function __construct(
4040

4141
public function processCmdmap_beforeStart(DataHandler $dataHandler): void
4242
{
43-
if (isset($dataHandler->cmdmap['pages']))
44-
{
43+
if (isset($dataHandler->cmdmap['pages'])) {
4544
$this->containerColumnConfigurationService->startCmdMap();
4645
}
4746
if (!empty($dataHandler->cmdmap['tt_content'])) {

Classes/ContentDefender/Xclasses/DatamapHook.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
*/
1414

1515
use B13\Container\ContentDefender\ContainerColumnConfigurationService;
16-
use B13\Container\Hooks\Datahandler\Database;
1716
use B13\Container\Hooks\Datahandler\DatahandlerProcess;
1817
use IchHabRecht\ContentDefender\Hooks\DatamapDataHandlerHook;
1918
use IchHabRecht\ContentDefender\Repository\ContentRepository;
@@ -29,7 +28,6 @@ class DatamapHook extends DatamapDataHandlerHook
2928
*/
3029
protected $containerColumnConfigurationService;
3130

32-
3331
public function __construct(
3432
?ContentRepository $contentRepository = null,
3533
?ContainerColumnConfigurationService $containerColumnConfigurationService = null

Classes/DataProcessing/ContainerProcessor.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424

2525
class ContainerProcessor implements DataProcessorInterface
2626
{
27-
2827
/**
2928
* @var ContentDataProcessor
3029
*/

Classes/Domain/Factory/FrontendContainerFactory.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121

2222
class FrontendContainerFactory implements SingletonInterface
2323
{
24-
2524
protected Registry $tcaRegistry;
2625

2726
public function __construct(Registry $tcaRegistry)

0 commit comments

Comments
 (0)