Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve consistency in method names across Helpers #2268

Merged
merged 2 commits into from
Jul 4, 2023

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Jun 28, 2023

ArrayWalkingFunctionsHelper: improve consistency in method names across Helpers

For the stand-alone Helper classes which only contain one "functions list" array property, name the retrieval method get_functions().

After all, these are not traits, which run a risk of a class use-ing the trait overloading the method and as the method is static, the class name used in the function call already clearly indicates which function list is being retrieved.

UnslashingFunctionsHelper: improve consistency in method names across Helpers

For the stand-alone Helper classes which only contain one "functions list" array property, name the retrieval method get_functions().

After all, these are not traits, which run a risk of a class use-ing the trait overloading the method and as the method is static, the class name used in the function call already clearly indicates which function list is being retrieved.

…ss Helpers

For the stand-alone Helper classes which only contain one "functions list" array property, name the retrieval method `get_functions()`.

After all, these are not traits, which run a risk of a class `use`-ing the trait overloading the method and as the method is `static`, the class name used in the function call already clearly indicates _which_ function list is being retrieved.
… Helpers

For the stand-alone Helper classes which only contain one "functions list" array property, name the retrieval method `get_functions()`.

After all, these are not traits, which run a risk of a class `use`-ing the trait overloading the method and as the method is `static`, the class name used in the function call already clearly indicates _which_ function list is being retrieved.
@jrfnl
Copy link
Member Author

jrfnl commented Jun 28, 2023

Note: The WPHookHelper class already uses this same method name.

@dingo-d dingo-d merged commit b5f1b78 into develop Jul 4, 2023
35 checks passed
@dingo-d dingo-d deleted the feature/helpers-method-name-consistency branch July 4, 2023 06:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants