martin-helmich/typo3-typoscript-parser

View on GitHub
src/Parser/Printer/PrettyPrinterConditionTermination.php

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
<?php
 
namespace Helmich\TypoScriptParser\Parser\Printer;
 
/**
* Defines the different options as to how the printer should treat the termination statements of condition blocks.
*/
enum PrettyPrinterConditionTermination
{
/**
* Keep condition terminations as they were in the input source code.
*/
Line indented incorrectly; expected 0 spaces, found 4
case Keep;
 
/**
* Use `[global]` everywhere to terminate conditions.
*/
Line indented incorrectly; expected 0 spaces, found 4
case EnforceGlobal;
 
/**
* Use `[end]` everywhere to terminate conditions.
*/
Line indented incorrectly; expected 0 spaces, found 4
case EnforceEnd;
Line indented incorrectly; expected at least 4 spaces, found 0
}