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

SlevomatCodingStandard.Classes.ClassStructure rule, possible to add function names for order? #1422

Open
saas786 opened this issue Aug 15, 2022 · 2 comments · May be fixed by #1679
Open

SlevomatCodingStandard.Classes.ClassStructure rule, possible to add function names for order? #1422

saas786 opened this issue Aug 15, 2022 · 2 comments · May be fixed by #1679

Comments

@saas786
Copy link

saas786 commented Aug 15, 2022

Can I add my_method into the list like:

<rule ref="SlevomatCodingStandard.Classes.ClassStructure">
	<properties>
		<property name="groups" type="array">
...
			<element value="constructor"/>
			<element value="my_method, some_other_method"/>
			<element value="all public methods"/>
...
		</property>
	</properties>
</rule>

Ref: https://github.com/slevomat/coding-standard/tree/8.4.0#slevomatcodingstandardclassesclassstructure-

@zlodes
Copy link

zlodes commented Nov 23, 2022

Nice! Want it!

@dpi
Copy link

dpi commented Dec 8, 2022

Looks like #1098 is what you want.

@maryo maryo linked a pull request May 19, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants