method_chaining_indentation,method_argument_space.test 473 B

1234567891011121314151617181920212223242526272829
  1. --TEST--
  2. Integration of fixers: method_chaining_indentation,method_argument_space.
  3. --RULESET--
  4. {"method_chaining_indentation": true, "method_argument_space": {"on_multiline" : "ensure_fully_multiline"}}
  5. --EXPECT--
  6. <?php
  7. function foo($foo)
  8. {
  9. $foo
  10. ->bar()
  11. ->baz(
  12. $x,
  13. $y
  14. )
  15. ;
  16. }
  17. --INPUT--
  18. <?php
  19. function foo($foo)
  20. {
  21. $foo
  22. ->bar()
  23. ->baz(
  24. $x,
  25. $y
  26. )
  27. ;
  28. }