diff --git a/src/Standards/PSR2/Docs/ControlStructures/SwitchDeclarationStandard.xml b/src/Standards/PSR2/Docs/ControlStructures/SwitchDeclarationStandard.xml index 1d6d053dff..fe4fe3b712 100644 --- a/src/Standards/PSR2/Docs/ControlStructures/SwitchDeclarationStandard.xml +++ b/src/Standards/PSR2/Docs/ControlStructures/SwitchDeclarationStandard.xml @@ -1,29 +1,38 @@ - + - + case 'bar': + case 'bar': + break; + default: break; } ]]> - + case 'bar': - break; + CASE 'bar': + break; + Default: + break; } ]]> + + + - + 'bar': @@ -31,7 +40,7 @@ switch ($foo) { } ]]> - + 'bar': @@ -40,8 +49,13 @@ switch ($foo) { ]]> + + + - + : @@ -51,7 +65,7 @@ switch ($foo) { } ]]> - + : @@ -62,6 +76,57 @@ switch ($foo) { ]]> + + + + + + break; +} + ]]> + + + break; +} + ]]> + + + + + + + + return; +} + ]]> + + + echo $foo; return; +} + ]]> + + + + + - + + + + + + + : + break; + default: + break; +} + ]]> + + + ; + break; + default: { + break; + } +} + ]]> + + + + + - + // no break - default: + echo $foo; + // no break + default: break; } ]]> - + : + echo $foo; + default: break; } ]]>