Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1094a13

Browse files
committed
minorsymfony#3807 Added some exceptions to the method order in CS (stof)
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/aSeesilexphp/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
2 parentsf801e2e +3b8e644 commit1094a13

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎contributing/code/standards.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,10 @@ Structure
101101

102102
* Declare class properties before methods;
103103

104-
* Declare public methods first, then protected ones and finally private ones;
104+
* Declare public methods first, then protected ones and finally private ones.
105+
The exceptions to this rule are the class constructor and the ``setUp`` and
106+
``tearDown`` methods of PHPUnit tests, which should always be the first methods
107+
to increase readability.
105108

106109
* Use parentheses when instantiating classes regardless of the number of
107110
arguments the constructor has;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp