We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parentecea24b commit3227cf2Copy full SHA for 3227cf2
contributing/code/standards.rst
@@ -72,6 +72,8 @@ example containing most features described below:
72
} else {
73
$dummy = ucwords($dummy);
74
}
75
+ } else {
76
+ throw new\RuntimeException(sprintf('Unrecognized dummy option "%s"', $dummy));
77
78
79
return $dummy;
@@ -100,10 +102,12 @@ Structure
100
102
101
103
* Declare class properties before methods;
104
-* Declare public methods first, then protected ones and finally private ones.
105
+* Declare public methods first, then protected ones and finally private ones;
106
107
* Use parentheses when instantiating classes regardless of the number of
- arguments the constructor has.
108
+ arguments the constructor has;
109
+
110
+* Exception message strings should be concatenated using:phpfunction:`sprintf`.
111
112
Naming Conventions
113
------------------