From 8394c9b401c4f75928c443d6ba0766acf831edca Mon Sep 17 00:00:00 2001 From: Alexander Kellner Date: Sat, 26 Oct 2024 11:12:46 +0200 Subject: [PATCH] [TASK] Make automatic tests happy again --- .github/workflows/testing.yaml | 2 +- Classes/Controller/AbstractController.php | 3 ++- Classes/Controller/FrontendController.php | 14 +++++++------- Classes/Domain/Tracker/UtmTracker.php | 1 - Classes/Hooks/PageOverview.php | 1 - Classes/ViewHelpers/Pagination/UriViewHelper.php | 1 - composer.json | 8 +------- 7 files changed, 11 insertions(+), 19 deletions(-) diff --git a/.github/workflows/testing.yaml b/.github/workflows/testing.yaml index a5177ad6..adce60c1 100644 --- a/.github/workflows/testing.yaml +++ b/.github/workflows/testing.yaml @@ -70,5 +70,5 @@ jobs: fail-fast: false matrix: php-version: - - 8.1 - 8.2 + - 8.3 diff --git a/Classes/Controller/AbstractController.php b/Classes/Controller/AbstractController.php index 923658d7..48465464 100644 --- a/Classes/Controller/AbstractController.php +++ b/Classes/Controller/AbstractController.php @@ -65,7 +65,8 @@ public function __construct( protected readonly CacheLayer $cacheLayer, protected readonly ModuleTemplateFactory $moduleTemplateFactory, protected readonly IconFactory $iconFactory - ) {} + ) { + } /** * Pass some important variables to all views diff --git a/Classes/Controller/FrontendController.php b/Classes/Controller/FrontendController.php index 5407e30f..64bd4acf 100644 --- a/Classes/Controller/FrontendController.php +++ b/Classes/Controller/FrontendController.php @@ -127,13 +127,13 @@ public function dispatchRequestAction( */ public function pageRequestAction(string $identificator, array $arguments): ResponseInterface { - $visitor = $this->getVisitor($identificator); - $this->callAdditionalTrackers($visitor, $arguments); - $this->companyTracker->track($visitor); - $pagevisit = $this->pageTracker->track($visitor, $arguments); - $this->newsTracker->track($visitor, $arguments, $pagevisit); - $this->searchTracker->track($visitor, $arguments, $pagevisit); - return $this->jsonResponse(json_encode($this->afterAction($visitor))); + $visitor = $this->getVisitor($identificator); + $this->callAdditionalTrackers($visitor, $arguments); + $this->companyTracker->track($visitor); + $pagevisit = $this->pageTracker->track($visitor, $arguments); + $this->newsTracker->track($visitor, $arguments, $pagevisit); + $this->searchTracker->track($visitor, $arguments, $pagevisit); + return $this->jsonResponse(json_encode($this->afterAction($visitor))); } /** diff --git a/Classes/Domain/Tracker/UtmTracker.php b/Classes/Domain/Tracker/UtmTracker.php index 8ca5590f..50b02e1e 100644 --- a/Classes/Domain/Tracker/UtmTracker.php +++ b/Classes/Domain/Tracker/UtmTracker.php @@ -12,7 +12,6 @@ use In2code\Lux\Events\PageTrackerEvent; use Psr\EventDispatcher\EventDispatcherInterface; use Throwable; -use TYPO3\CMS\Core\Utility\GeneralUtility; class UtmTracker { diff --git a/Classes/Hooks/PageOverview.php b/Classes/Hooks/PageOverview.php index 7161a0b0..ddda0651 100644 --- a/Classes/Hooks/PageOverview.php +++ b/Classes/Hooks/PageOverview.php @@ -16,7 +16,6 @@ use In2code\Lux\Utility\BackendUtility; use In2code\Lux\Utility\ConfigurationUtility; use TYPO3\CMS\Backend\Controller\Event\ModifyPageLayoutContentEvent; -use TYPO3\CMS\Backend\Controller\PageLayoutController; use TYPO3\CMS\Backend\Utility\BackendUtility as BackendUtilityCore; use TYPO3\CMS\Core\Configuration\Exception\ExtensionConfigurationExtensionNotConfiguredException; use TYPO3\CMS\Core\Configuration\Exception\ExtensionConfigurationPathDoesNotExistException; diff --git a/Classes/ViewHelpers/Pagination/UriViewHelper.php b/Classes/ViewHelpers/Pagination/UriViewHelper.php index 23020a01..e5706411 100644 --- a/Classes/ViewHelpers/Pagination/UriViewHelper.php +++ b/Classes/ViewHelpers/Pagination/UriViewHelper.php @@ -3,7 +3,6 @@ declare(strict_types=1); namespace In2code\Lux\ViewHelpers\Pagination; -use In2code\Lux\Utility\ConfigurationUtility; use TYPO3\CMS\Core\Utility\GeneralUtility; use TYPO3\CMS\Extbase\Mvc\Web\Routing\UriBuilder; use TYPO3\CMS\Extbase\Service\ExtensionService; diff --git a/composer.json b/composer.json index bad416a6..2cdd2e20 100644 --- a/composer.json +++ b/composer.json @@ -36,12 +36,6 @@ "replace": { "typo3-ter/lux": "self.version" }, - "repositories": [ - { - "type": "vcs", - "url": "https://github.com/bmack/TYPO3-Console" - } - ], "suggest": { "typo3/cms-dashboard": "*" }, @@ -73,7 +67,7 @@ "phpmd/phpmd": "^2.8", "friendsofphp/php-cs-fixer": "^3.10", "helmich/typo3-typoscript-lint": "^3.1", - "helhum/typo3-console": "dev-issue/1169" + "helhum/typo3-console": "^8.2" }, "autoload": { "psr-4": {