Skip to content

Added some exceptions to the method order in CS #3807

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

Merged
merged 1 commit into from
Apr 28, 2014
Merged

Conversation

stof
Copy link
Member

@stof stof commented Apr 16, 2014

Q A
Doc fix? yes
New docs? no
Applies to all
Fixed tickets n/a

See silexphp/Silex#936 (comment) for the reason. Formalizing this case in the doc is a good idea IMO.

* Declare public methods first, then protected ones and finally private ones.
The exceptions to this rule are the class constructor and the ``setUp`` and
``tearDown`` methods of PHPUnit tests, which should always be the first methods
to increase readability.
Copy link
Member

Choose a reason for hiding this comment

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

The sentence should then end with a semicolon.

@weaverryan weaverryan merged commit 3b8e644 into symfony:2.3 Apr 28, 2014
weaverryan added a commit that referenced this pull request Apr 28, 2014
This PR was merged into the 2.3 branch.

Discussion
----------

Added some exceptions to the method order in CS

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | all
| Fixed tickets | n/a

See silexphp/Silex#936 (comment) for the reason. Formalizing this case in the doc is a good idea IMO.

Commits
-------

3b8e644 Added some exceptions to the method order in CS
@weaverryan
Copy link
Member

Thanks to both of you - PR merged and the semicolon was added :).

Cheers!

@stof stof deleted the patch-1 branch August 12, 2014 13:53
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.

3 participants