modernize_strpos,no_trailing_whitespace.test 266 B

12345678910111213
  1. --TEST--
  2. Integration of fixers: modernize_strpos,no_trailing_whitespace.
  3. --RULESET--
  4. {"modernize_strpos": true, "no_trailing_whitespace": true}
  5. --EXPECT--
  6. <?php
  7. $a = !str_starts_with($haystack9a, $needle)
  8. ;
  9. --INPUT--
  10. <?php
  11. $a = strpos($haystack9a, $needle) !== 0
  12. ;