branch: externals/phps-mode commit e38794b0bd51639c55eb5d4fc3cd3c1bf4b08c26 Author: Christian Johansson <christ...@cvj.se> Commit: Christian Johansson <christ...@cvj.se>
More conceptual work on algorithm for inline control structures --- docs/indentation-algorithm.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/indentation-algorithm.md b/docs/indentation-algorithm.md index 89147ea..2a4dba8 100644 --- a/docs/indentation-algorithm.md +++ b/docs/indentation-algorithm.md @@ -55,10 +55,10 @@ if (function( // #save indent: 0, #increase push (0 2) indent: 1 ## Inline control structure for if-else ```php -if (true) - echo true; -else - echo false; +if (true) // #save indent: 0 + echo true; // #pre-temp-increase indent: 1, #save indent: 1, #pre-temp-decrease indent: 0 +else // #save indent: 0 + echo false; // #pre-temp-increase indent: 1, #save indent: 1, #pre-temp-decrease indent: 0 ``` ## Alternative control structure for if-else 2