Skip to content
Snippets Groups Projects

Issue #3328454: Replace most strpos() !== FALSE or === FALSE with str_contains()

Issue #3328454: Replace most strpos() !== FALSE or === FALSE with str_contains()

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
46 46 $input = $form_state->getUserInput();
47 47 foreach (explode('[', $element['#name']) as $element_name) {
48 48 // chop off the ] that may exist.
49 if (substr($element_name, -1) == ']') {
49 if (str_ends_with($element_name, ']')) {
  • 357 357 // Make sure all the update_test_* themes are disabled.
    358 358 $extension_config = $this->config('core.extension');
    359 359 foreach ($extension_config->get('theme') as $theme => $weight) {
    360 if (preg_match('/^update_test_/', $theme)) {
    360 if (str_starts_with($theme, 'update_test_')) {
  • I did a review of each case and added comments on 2 cases I found that maybe should be managed on other issues.

  • Ivan Duarte added 21 commits

    added 21 commits

    Compare with previous version

  • Ivan Duarte added 1 commit

    added 1 commit

    • d7371753 - Revert ActiveLinkResponseFilter.php

    Compare with previous version

  • Ivan Duarte added 1 commit

    added 1 commit

    • d20ebca9 - Reverted not strpos replacements

    Compare with previous version

  • Ivan Duarte added 6 commits

    added 6 commits

    Compare with previous version

  • Please register or sign in to reply
    Loading