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

Move unslashing-only functions related functionality to dedicated UnslashingFunctionsHelper #2263

Merged
merged 1 commit into from
Jun 23, 2023

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Jun 23, 2023

The unslashing function list is only used by a small set of sniffs, so are better placed in a dedicated class.

The $unslashingFunctions property has also been made private static.

Checking whether or not something is an unslashing function should now be done by calling the UnslashingFunctionsHelper::is_unslashing_function() method.

Includes removing a @internal comment from the Sniff class docblock as it is now redundant.

Related to #1465

…slashingFunctionsHelper`

The unslashing function list is only used by a small set of sniffs, so are better placed in a dedicated class.

The `$unslashingFunctions` property has also been made `private static`.

Checking whether or not something is an unslashing function should now be done by calling the `UnslashingFunctionsHelper::is_unslashing_function()` method.

Includes removing a `@internal` comment from the `Sniff` class docblock as it is now redundant.

Related to 1465
Copy link
Member

@GaryJones GaryJones left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dingo-d dingo-d merged commit e9cfeab into develop Jun 23, 2023
@dingo-d dingo-d deleted the feature/move-unslashingonlyfunctions-to-helper branch June 23, 2023 16:38
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