Commit 46e58e2
committed
Remove redundant comments
Follow clean code principles: remove comments that explain 'what' or 'how'
(obvious from the code) and keep only comments that explain 'why' when needed.
Removed comments like:
- 'Filter out PHP core classes' (method name is clear)
- 'skip classes in the same namespace' (obvious from condition)
- 'PHP core - filtered' in tests (evident from assertion)
The code is self-documenting through clear method and variable names.1 parent 15c9a35 commit 46e58e2
File tree
5 files changed
+10
-33
lines changed- src
- Analyzer
- Expression/ForClasses
- tests/Unit
- Analyzer
- Expressions/ForClasses
5 files changed
+10
-33
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
82 | 81 | | |
83 | 82 | | |
84 | 83 | | |
| |||
175 | 174 | | |
176 | 175 | | |
177 | 176 | | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | 177 | | |
184 | 178 | | |
185 | 179 | | |
| |||
191 | 185 | | |
192 | 186 | | |
193 | 187 | | |
194 | | - | |
195 | | - | |
196 | 188 | | |
197 | 189 | | |
198 | 190 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
197 | | - | |
198 | | - | |
199 | 197 | | |
200 | 198 | | |
201 | 199 | | |
| |||
210 | 208 | | |
211 | 209 | | |
212 | 210 | | |
213 | | - | |
214 | | - | |
215 | 211 | | |
216 | 212 | | |
217 | 213 | | |
| |||
228 | 224 | | |
229 | 225 | | |
230 | 226 | | |
231 | | - | |
232 | | - | |
233 | 227 | | |
234 | 228 | | |
235 | 229 | | |
| |||
240 | 234 | | |
241 | 235 | | |
242 | 236 | | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
248 | 242 | | |
249 | 243 | | |
250 | 244 | | |
251 | | - | |
252 | | - | |
253 | 245 | | |
254 | 246 | | |
255 | 247 | | |
| |||
261 | 253 | | |
262 | 254 | | |
263 | 255 | | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | 256 | | |
268 | 257 | | |
269 | 258 | | |
270 | | - | |
271 | | - | |
| 259 | + | |
| 260 | + | |
272 | 261 | | |
273 | 262 | | |
274 | 263 | | |
275 | | - | |
276 | | - | |
277 | 264 | | |
278 | 265 | | |
279 | 266 | | |
| |||
Lines changed: 0 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
101 | | - | |
102 | 100 | | |
103 | 101 | | |
104 | 102 | | |
0 commit comments