File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ example containing most features described below:
91
91
);
92
92
93
93
if (true === $dummy) {
94
- return;
94
+ return null ;
95
95
}
96
96
97
97
if ('string' === $dummy) {
@@ -109,7 +109,7 @@ example containing most features described below:
109
109
* @param mixed $value Some value to check against
110
110
* @param bool $theSwitch Some switch to control the method's flow
111
111
*
112
- * @return bool|null The resultant check if $theSwitch isn't false, null otherwise
112
+ * @return bool|void The resultant check if $theSwitch isn't false, void otherwise
113
113
*/
114
114
private function reverseBoolean($value = null, $theSwitch = false)
115
115
{
@@ -143,8 +143,8 @@ Structure
143
143
* Add a blank line before ``return `` statements, unless the return is alone
144
144
inside a statement-group (like an ``if `` statement);
145
145
146
- * Use just ``return; `` instead of `` return null; `` when a function must return
147
- void early ;
146
+ * Use ``return null; `` when a function explicitly returns `` null `` values and
147
+ use `` return; `` when the function returns `` void `` values ;
148
148
149
149
* Use braces to indicate control structure body regardless of the number of
150
150
statements it contains;
You can’t perform that action at this time.
0 commit comments