File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -72,6 +72,8 @@ example containing most features described below:
72
72
} else {
73
73
$dummy = ucwords($dummy);
74
74
}
75
+ } else {
76
+ throw new \R untimeException(sprintf('Unrecognized dummy option "%s"', $dummy));
75
77
}
76
78
77
79
return $dummy;
@@ -100,10 +102,12 @@ Structure
100
102
101
103
* Declare class properties before methods;
102
104
103
- * Declare public methods first, then protected ones and finally private ones.
105
+ * Declare public methods first, then protected ones and finally private ones;
104
106
105
107
* Use parentheses when instantiating classes regardless of the number of
106
- arguments the constructor has.
108
+ arguments the constructor has;
109
+
110
+ * Exception message strings should be concatenated using :phpfunction: `sprintf `.
107
111
108
112
Naming Conventions
109
113
------------------
You can’t perform that action at this time.
0 commit comments