modernize_strpos,spaces_inside_parentheses.test 271 B

1234567891011
  1. --TEST--
  2. Integration of fixers: modernize_strpos,spaces_inside_parentheses.
  3. --RULESET--
  4. {"modernize_strpos": true, "spaces_inside_parentheses": true}
  5. --EXPECT--
  6. <?php
  7. if (str_starts_with($haystack1, $needle)) {}
  8. --INPUT--
  9. <?php
  10. if (0 === strpos($haystack1, $needle)) {}