@@ -14,16 +14,14 @@ |
||
| 14 | 14 | * The TYPO3 project - inspiring people to share! |
| 15 | 15 | */ |
| 16 | 16 | |
| 17 | -class IsConsentFieldViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper |
|
| 18 | -{ |
|
| 17 | +class IsConsentFieldViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper { |
|
| 19 | 18 | |
| 20 | 19 | /** |
| 21 | 20 | * |
| 22 | 21 | * @param boolean $condition |
| 23 | 22 | * @return string |
| 24 | 23 | */ |
| 25 | - public function render($condition) |
|
| 26 | - { |
|
| 24 | + public function render($condition) { |
|
| 27 | 25 | if ((TYPO3_MODE === 'BE') && $condition) { |
| 28 | 26 | return TRUE; |
| 29 | 27 | } |
@@ -14,16 +14,14 @@ |
||
| 14 | 14 | * The TYPO3 project - inspiring people to share! |
| 15 | 15 | */ |
| 16 | 16 | |
| 17 | -class IsElementAllowedViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper |
|
| 18 | -{ |
|
| 17 | +class IsElementAllowedViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper { |
|
| 19 | 18 | |
| 20 | 19 | /** |
| 21 | 20 | * |
| 22 | 21 | * @param boolean $condition |
| 23 | 22 | * @return string |
| 24 | 23 | */ |
| 25 | - public function render($condition) |
|
| 26 | - { |
|
| 24 | + public function render($condition) { |
|
| 27 | 25 | if ((TYPO3_MODE === 'BE') || !$condition) { |
| 28 | 26 | return TRUE; |
| 29 | 27 | } |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | { |
| 19 | 19 | |
| 20 | 20 | /** |
| 21 | - * @return string |
|
| 21 | + * @return string |
|
| 22 | 22 | */ |
| 23 | 23 | public function render() |
| 24 | 24 | { |
@@ -14,14 +14,12 @@ |
||
| 14 | 14 | * The TYPO3 project - inspiring people to share! |
| 15 | 15 | */ |
| 16 | 16 | |
| 17 | -class GetTypo3ModeViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper |
|
| 18 | -{ |
|
| 17 | +class GetTypo3ModeViewHelper extends \TYPO3\CMS\Fluid\Core\ViewHelper\AbstractViewHelper { |
|
| 19 | 18 | |
| 20 | 19 | /** |
| 21 | 20 | * @return string |
| 22 | 21 | */ |
| 23 | - public function render() |
|
| 24 | - { |
|
| 22 | + public function render() { |
|
| 25 | 23 | return TYPO3_MODE; |
| 26 | 24 | } |
| 27 | 25 | |