HumHub Documentation (unofficial)

ControlStructures

Table of Contents

Classes

DiscouragedSwitchContinueSniff
Detect use of `continue` in `switch` control structures.
ForbiddenBreakContinueOutsideLoopSniff
Detect using `break` and/or `continue` statements outside of a looping structure.
ForbiddenBreakContinueVariableArgumentsSniff
Detects using 0 and variable numeric arguments on `break` and `continue` statements.
ForbiddenSwitchWithMultipleDefaultBlocksSniff
Switch statements can not have multiple default blocks since PHP 7.0.
NewExecutionDirectivesSniff
Check for valid execution directives set with `declare()`.
NewForeachExpressionReferencingSniff
Detect `foreach` expression referencing.
NewListInForeachSniff
Detect unpacking nested arrays with `list()` in a `foreach()` as available since PHP 5.5.
NewMultiCatchSniff
Catching multiple exception types in one statement is available since PHP 7.1.

        
On this page

Search results