| Total Complexity | 8 |
| Total Lines | 47 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | class GetStatusColorViewHelper extends \TYPO3Fluid\Fluid\Core\ViewHelper\AbstractViewHelper |
||
| 20 | { |
||
| 21 | public function initializeArguments() |
||
| 22 | { |
||
| 23 | parent::initializeArguments(); |
||
| 24 | |||
| 25 | $this->registerArgument('status', 'string', '', true); |
||
| 26 | } |
||
| 27 | |||
| 28 | /** |
||
| 29 | * Gets the related color for alias states. |
||
| 30 | * |
||
| 31 | * @return string |
||
| 32 | */ |
||
| 33 | public function render() |
||
| 66 | } |
||
| 67 | } |
||
| 69 |
The
breakstatement is not necessary if it is preceded for example by areturnstatement:If you would like to keep this construct to be consistent with other
casestatements, you can safely mark this issue as a false-positive.