Commit 56b6785
Generic/CamelCapsFunctionName: improve inline documentation
* This sniff only listens to `T_FUNCTION`. It does not listen to
`T_FN` or `T_CLOSURE`. So the inline code comments were incorrect. The if
conditions are still valid to bail early when live coding, but they do not
ever apply to closures or arrow functions (anymore - it was possible in the past though).
* The inline comments regarding leading underscores was inaccurate as the code
removes all leading underscores, not just the first.1 parent 0f5680a commit 56b6785
File tree
1 file changed
+4
-4
lines changed- src/Standards/Generic/Sniffs/NamingConventions
1 file changed
+4
-4
lines changedLines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | | - | |
| 153 | + | |
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
| 192 | + | |
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
209 | | - | |
| 209 | + | |
210 | 210 | | |
211 | 211 | | |
212 | 212 | | |
| |||
0 commit comments