Skip to content

Conversation

@kingIZZZY
Copy link
Contributor

Repetitive code has mistakes trying to find array value by varying key spellings & capitalizations:

        } else if(array_key_exists('redirecturi', $settings)){ // ends with "I"
            return $settings['redirecturl'];                   // end with "L"
        } else if(array_key_exists('redirectUri', $settings)){ // ends with "I"
            return $settings['redirectUrl'];                   // end with "L"

Replaced logic with standardized util method to eliminate such mistakes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant