From 4e780cd3ef7236102b91f96e2fbb559a512896a2 Mon Sep 17 00:00:00 2001 From: Wouter Wolters Date: Thu, 30 Nov 2017 22:16:13 +0100 Subject: [PATCH] [TASK] Use null coalescing operator where possible Using null coalescing operator in PHP 7 simplifies code structure. Resolves: #83129 Releases: master Change-Id: I449415c99ccb0ea158d3943800bc824514f7629c Reviewed-on: https://review.typo3.org/54810 Reviewed-by: Anja Leichsenring Tested-by: Anja Leichsenring Tested-by: TYPO3com Reviewed-by: Benni Mack Tested-by: Benni Mack --- Classes/FrontendEditPanel.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Classes/FrontendEditPanel.php b/Classes/FrontendEditPanel.php index fcc311b..ac6028d 100644 --- a/Classes/FrontendEditPanel.php +++ b/Classes/FrontendEditPanel.php @@ -183,9 +183,7 @@ class FrontendEditPanel } $hidden = $this->isDisabled($table, $dataArr) ? ' typo3-feedit-element-hidden' : ''; - $outerWrapConfig = isset($conf['stdWrap.']) - ? $conf['stdWrap.'] - : ['wrap' => '
|
']; + $outerWrapConfig = $conf['stdWrap.'] ?? ['wrap' => '
|
']; $finalOut = $this->cObj->stdWrap($finalOut, $outerWrapConfig); return $finalOut;