From 95b85a7f91ddf164555b1a02f7e0aa0427aaa2aa Mon Sep 17 00:00:00 2001 From: "J. Peter M. Schuler" Date: Fri, 6 May 2022 18:58:45 +0200 Subject: [PATCH] [TASK] rerun fix:php after merge --- Classes/Controller/Backend/PageLayoutController.php | 5 ++--- Classes/Core/Messaging/FlashMessage.php | 10 +++++----- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/Classes/Controller/Backend/PageLayoutController.php b/Classes/Controller/Backend/PageLayoutController.php index d35c1dd72..a3f50c414 100644 --- a/Classes/Controller/Backend/PageLayoutController.php +++ b/Classes/Controller/Backend/PageLayoutController.php @@ -31,7 +31,7 @@ use TYPO3\CMS\Extbase\Mvc\View\ViewInterface; use Tvp\TemplaVoilaPlus\Configuration\BackendConfiguration; use Tvp\TemplaVoilaPlus\Core\Messaging\FlashMessage; -USE Tvp\TemplaVoilaPlus\Domain\Repository\PageRepository; +use Tvp\TemplaVoilaPlus\Domain\Repository\PageRepository; use Tvp\TemplaVoilaPlus\Utility\TemplaVoilaUtility; class PageLayoutController extends ActionController @@ -280,7 +280,6 @@ protected function checkContentFromPid() $pages = $pageRepository->getPagesUsingContentFrom($this->pageInfo['uid']); if (count($pages)) { - $titles = []; $buttons = []; foreach ($pages as $contentPage) { @@ -288,7 +287,7 @@ protected function checkContentFromPid() . ' [' . $contentPage['uid'] . ']'; $titles[] = $title; $buttons[] = [ - 'url' => $linkToPage = GeneralUtility::linkThisScript(['id' =>$contentPage['uid']]), + 'url' => $linkToPage = GeneralUtility::linkThisScript(['id' => $contentPage['uid']]), 'label' => $title, 'icon' => 'apps-pagetree-page-shortcut', ]; diff --git a/Classes/Core/Messaging/FlashMessage.php b/Classes/Core/Messaging/FlashMessage.php index c41e116ee..d11657098 100644 --- a/Classes/Core/Messaging/FlashMessage.php +++ b/Classes/Core/Messaging/FlashMessage.php @@ -28,11 +28,11 @@ class FlashMessage extends CoreFlashMessage { /** * @var array Array of buttons to show in a button group under the flash message with subarray of - * [ - * 'url' => (string) - * 'label' => (string) - * 'icon' => (string) - * ] + * [ + * 'url' => (string) + * 'label' => (string) + * 'icon' => (string) + * ] */ protected $buttons = [];