Skip to content

Commit b72ed41

Browse files
committed
fix: Cleanups
1 parent d4b2808 commit b72ed41

13 files changed

Lines changed: 17 additions & 23 deletions

File tree

Classes/Domain/Model/Configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ public function setStartTime(int $startTime): self
203203
*/
204204
public function getGroups(): ObjectStorage
205205
{
206-
return $this->groups ?? new ObjectStorage();
206+
return $this->groups;
207207
}
208208

209209
/**

Classes/Updates/PluginUpdater.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class PluginUpdater extends AbstractUpdate
4141
public function __construct(
4242
protected readonly QueryBuilder $contentElementsQueryBuilder,
4343
protected readonly QueryBuilder $backendGroupsQueryBuilder,
44-
protected readonly FlexFormTools $flexFormTools
44+
protected readonly FlexFormTools $flexFormTools,
4545
) {}
4646

4747
/**
@@ -161,7 +161,7 @@ protected function array2xml(array $input = []): string
161161
$spaceInd = 4;
162162
$output = GeneralUtility::array2xml($input, '', 0, 'T3FlexForms', $spaceInd, $options);
163163

164-
return '<?xml version="1.0" encoding="utf-8" standalone="yes" ?>' . LF . $output;
164+
return '<?xml version="1.0" encoding="utf-8" standalone="yes" ?>' . "\n" . $output;
165165
}
166166

167167
protected function updateContentElement(int $uid, string $newListType, string $flexform): void

Classes/ViewHelpers/Be/RecordRowViewHelper.php

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

77
use HDNET\Calendarize\ViewHelpers\AbstractViewHelper;
88
use TYPO3\CMS\Backend\Utility\BackendUtility;
9-
use TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface;
109

1110
/**
1211
* Gets the record by uid from the table as an array.

Classes/ViewHelpers/DateTime/FormatUtcDateViewHelper.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
namespace HDNET\Calendarize\ViewHelpers\DateTime;
66

77
use HDNET\Calendarize\ViewHelpers\Format\DateViewHelper;
8-
use TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface;
98
use TYPO3Fluid\Fluid\Core\ViewHelper\Exception;
109

1110
/**

Classes/ViewHelpers/Format/DateViewHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
use TYPO3\CMS\Core\Context\Context;
88
use TYPO3\CMS\Core\Utility\GeneralUtility;
99
use TYPO3\CMS\Core\Utility\MathUtility;
10-
use TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface;
1110
use TYPO3Fluid\Fluid\Core\ViewHelper\AbstractViewHelper;
1211
use TYPO3Fluid\Fluid\Core\ViewHelper\Exception;
1312

@@ -69,6 +68,7 @@ public function render()
6968
$format = $GLOBALS['TYPO3_CONF_VARS']['SYS']['ddmmyy'] ?: 'Y-m-d';
7069
}
7170

71+
// @todo check
7272
$date = $renderChildrenClosure();
7373
if (null === $date) {
7474
return '';

Classes/ViewHelpers/Format/LineFoldingViewHelper.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
namespace HDNET\Calendarize\ViewHelpers\Format;
66

77
use HDNET\Calendarize\ViewHelpers\AbstractViewHelper;
8-
use TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface;
98

109
/**
1110
* Class LineFoldingViewHelper.

Classes/ViewHelpers/Format/RemoveBlankLinesViewHelper.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
namespace HDNET\Calendarize\ViewHelpers\Format;
66

77
use HDNET\Calendarize\ViewHelpers\AbstractViewHelper;
8-
use TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface;
98

109
/**
1110
* Class RemoveBlankLinesViewHelper.

Classes/ViewHelpers/InArrayViewHelper.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
namespace HDNET\Calendarize\ViewHelpers;
66

7-
use TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface;
8-
97
/**
108
* Checks if an element (needle) is in an array (haystack).
119
*/

Classes/ViewHelpers/Link/AbstractLinkViewHelper.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77
use Psr\Http\Message\ServerRequestInterface;
88
use TYPO3\CMS\Core\Utility\GeneralUtility;
99
use TYPO3\CMS\Core\Utility\MathUtility;
10-
use TYPO3\CMS\Extbase\Mvc\RequestInterface;
1110
use TYPO3\CMS\Extbase\Mvc\Web\Routing\UriBuilder;
12-
use TYPO3\CMS\Fluid\Core\Rendering\RenderingContext;
1311
use TYPO3Fluid\Fluid\Core\ViewHelper\AbstractTagBasedViewHelper;
1412

1513
/**
@@ -39,7 +37,7 @@ public function initializeArguments(): void
3937
$this->registerArgument(
4038
'rel',
4139
'string',
42-
'Specifies the relationship between the current document and the linked document'
40+
'Specifies the relationship between the current document and the linked document',
4341
);
4442
}
4543

Classes/Widgets/DataProvider/NextEventsDataProvider.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class NextEventsDataProvider implements ListDataProviderInterface
1717
{
1818
public function __construct(
1919
protected IndexRepository $indexRepository,
20-
protected ViewFactoryInterface $viewFactory
20+
protected ViewFactoryInterface $viewFactory,
2121
) {}
2222

2323
public function getItems(): array
@@ -35,9 +35,9 @@ public function getItems(): array
3535
[],
3636
[
3737
'EXT:calendarize/Resources/Private/Partials/',
38-
'EXT:calendarize_premium/Resources/Private/Partials/'
38+
'EXT:calendarize_premium/Resources/Private/Partials/',
3939
],
40-
[]
40+
[],
4141
);
4242

4343
/** @var ViewInterface $view */

0 commit comments

Comments
 (0)