method_chaining_indentation,array_indentation.test 499 B

12345678910111213141516171819202122232425262728293031323334353637
  1. --TEST--
  2. Integration of fixers: method_chaining_indentation,array_indentation.
  3. --RULESET--
  4. {"method_chaining_indentation": true, "array_indentation": true}
  5. --EXPECT--
  6. <?php
  7. Foo::bar([
  8. 'baz',
  9. ])
  10. ->call();
  11. function foo($foo)
  12. {
  13. $foo
  14. ->bar()
  15. ->baz([
  16. 'foo' => 'bar',
  17. ])
  18. ;
  19. }
  20. --INPUT--
  21. <?php
  22. Foo::bar([
  23. 'baz',
  24. ])
  25. ->call();
  26. function foo($foo)
  27. {
  28. $foo
  29. ->bar()
  30. ->baz([
  31. 'foo' => 'bar',
  32. ])
  33. ;
  34. }