mirror of
https://github.com/FriendsOfTYPO3/feedit.git
synced 2024-11-26 07:56:10 +01:00
[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 <aleichsenring@ab-softlab.de> Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de> Tested-by: TYPO3com <no-reply@typo3.com> Reviewed-by: Benni Mack <benni@typo3.org> Tested-by: Benni Mack <benni@typo3.org>
This commit is contained in:
parent
4393770ecc
commit
4e780cd3ef
1 changed files with 1 additions and 3 deletions
|
@ -183,9 +183,7 @@ class FrontendEditPanel
|
||||||
}
|
}
|
||||||
|
|
||||||
$hidden = $this->isDisabled($table, $dataArr) ? ' typo3-feedit-element-hidden' : '';
|
$hidden = $this->isDisabled($table, $dataArr) ? ' typo3-feedit-element-hidden' : '';
|
||||||
$outerWrapConfig = isset($conf['stdWrap.'])
|
$outerWrapConfig = $conf['stdWrap.'] ?? ['wrap' => '<div class="typo3-feedit-element' . $hidden . '">|</div>'];
|
||||||
? $conf['stdWrap.']
|
|
||||||
: ['wrap' => '<div class="typo3-feedit-element' . $hidden . '">|</div>'];
|
|
||||||
$finalOut = $this->cObj->stdWrap($finalOut, $outerWrapConfig);
|
$finalOut = $this->cObj->stdWrap($finalOut, $outerWrapConfig);
|
||||||
|
|
||||||
return $finalOut;
|
return $finalOut;
|
||||||
|
|
Loading…
Reference in a new issue