Skip to content

Commit 1094a13

Browse files
committed
minor symfony#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/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
2 parents f801e2e + 3b8e644 commit 1094a13

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy