-
Notifications
You must be signed in to change notification settings - Fork 234
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BUGFIX] Context CGL issues and relocate condition view helpers
- Loading branch information
1 parent
f042f4b
commit 982020c
Showing
4 changed files
with
15 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?php | ||
namespace FluidTYPO3\Vhs\ViewHelpers\Context; | ||
namespace FluidTYPO3\Vhs\ViewHelpers\Condition\Context; | ||
|
||
/*************************************************************** | ||
* Copyright notice | ||
|
@@ -18,6 +18,7 @@ | |
* GNU General Public License for more details. | ||
* This copyright notice MUST APPEAR in all copies of the script! | ||
* ************************************************************* */ | ||
|
||
use TYPO3\CMS\Fluid\Core\ViewHelper\AbstractConditionViewHelper; | ||
use TYPO3\CMS\Core\Utility\GeneralUtility; | ||
|
||
|
@@ -36,7 +37,7 @@ | |
* | ||
* @author Benjamin Beck <[email protected]> | ||
* @package Vhs | ||
* @subpackage ViewHelpers\Context | ||
* @subpackage ViewHelpers\Condition\Context | ||
*/ | ||
class IsDevelopmentViewHelper extends AbstractConditionViewHelper { | ||
|
||
|
@@ -46,7 +47,7 @@ class IsDevelopmentViewHelper extends AbstractConditionViewHelper { | |
* @return string | ||
*/ | ||
public function render () { | ||
if ( TRUE === $this->isDevelopmentContext() ) { | ||
if (TRUE === $this->isDevelopmentContext()) { | ||
return $this->renderThenChild(); | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?php | ||
namespace FluidTYPO3\Vhs\ViewHelpers\Context; | ||
namespace FluidTYPO3\Vhs\ViewHelpers\Condition\Context; | ||
|
||
/*************************************************************** | ||
* Copyright notice | ||
|
@@ -18,6 +18,7 @@ | |
* GNU General Public License for more details. | ||
* This copyright notice MUST APPEAR in all copies of the script! | ||
* ************************************************************* */ | ||
|
||
use TYPO3\CMS\Fluid\Core\ViewHelper\AbstractConditionViewHelper; | ||
use TYPO3\CMS\Core\Utility\GeneralUtility; | ||
|
||
|
@@ -36,7 +37,7 @@ | |
* | ||
* @author Benjamin Beck <[email protected]> | ||
* @package Vhs | ||
* @subpackage ViewHelpers\Context | ||
* @subpackage ViewHelpers\Condition\Context | ||
*/ | ||
class IsProductionViewHelper extends AbstractConditionViewHelper { | ||
|
||
|
@@ -46,7 +47,7 @@ class IsProductionViewHelper extends AbstractConditionViewHelper { | |
* @return string | ||
*/ | ||
public function render () { | ||
if ( TRUE === $this->isProductionContext() ) { | ||
if (TRUE === $this->isProductionContext()) { | ||
return $this->renderThenChild(); | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?php | ||
namespace FluidTYPO3\Vhs\ViewHelpers\Context; | ||
namespace FluidTYPO3\Vhs\ViewHelpers\Condition\Context; | ||
|
||
/*************************************************************** | ||
* Copyright notice | ||
|
@@ -18,6 +18,7 @@ | |
* GNU General Public License for more details. | ||
* This copyright notice MUST APPEAR in all copies of the script! | ||
* ************************************************************* */ | ||
|
||
use TYPO3\CMS\Fluid\Core\ViewHelper\AbstractConditionViewHelper; | ||
use TYPO3\CMS\Core\Utility\GeneralUtility; | ||
|
||
|
@@ -36,7 +37,7 @@ | |
* | ||
* @author Benjamin Beck <[email protected]> | ||
* @package Vhs | ||
* @subpackage ViewHelpers\Context | ||
* @subpackage ViewHelpers\Condition\Context | ||
*/ | ||
class IsTestingViewHelper extends AbstractConditionViewHelper { | ||
|
||
|
@@ -46,7 +47,7 @@ class IsTestingViewHelper extends AbstractConditionViewHelper { | |
* @return string | ||
*/ | ||
public function render () { | ||
if ( TRUE === $this->isTestingContext() ) { | ||
if (TRUE === $this->isTestingContext()) { | ||
return $this->renderThenChild(); | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters