no_alternative_syntax,braces.test 286 B

1234567891011121314151617
  1. --TEST--
  2. Integration of fixers: no_alternative_syntax,braces.
  3. --RULESET--
  4. {"no_alternative_syntax": true, "braces": true}
  5. --EXPECT--
  6. <?php
  7. if (1 == 1) {
  8. $var = 1;
  9. } elseif (1 == 2) {
  10. $var = 2;
  11. }
  12. --INPUT--
  13. <?php
  14. if(1 == 1) :
  15. $var = 1; elseif (1 == 2) :
  16. $var = 2; endif;