braces,method_argument_space.test 325 B

123456789101112131415161718192021222324
  1. --TEST--
  2. Integration of fixers: braces,method_argument_space.
  3. --RULESET--
  4. {"method_argument_space": {"on_multiline": "ensure_fully_multiline"}, "braces": true}
  5. --EXPECT--
  6. <?php
  7. function foo()
  8. {
  9. return bar(
  10. 'foo',
  11. 'bar'
  12. );
  13. }
  14. --INPUT--
  15. <?php
  16. function foo(){
  17. return bar(
  18. 'foo',
  19. 'bar'
  20. );
  21. }