Commit 675cf24
committed
CS: remove blank line at end of functions
These made sense for readability with the noisy `//end ...` comments, but not without those... they really are not needed.
Includes removing the rule from the PHPCS native ruleset and adding another one to enforce the opposite, i.e. no blank line between function body and close curly.
Includes updating the comment format used for "required method which we don't use" comments in four sniffs to not run into "Empty line required after block comment" issues.1 parent 771d9da commit 675cf24
File tree
645 files changed
+12
-2413
lines changed- scripts
- src
- Files
- Filters
- Generators
- Reports
- Sniffs
- Standards
- Generic
- Sniffs
- Arrays
- Classes
- CodeAnalysis
- Commenting
- ControlStructures
- Files
- Formatting
- Functions
- Metrics
- NamingConventions
- PHP
- Strings
- VersionControl
- WhiteSpace
- Tests
- Arrays
- Classes
- CodeAnalysis
- Commenting
- ControlStructures
- Files
- Formatting
- Functions
- Metrics
- NamingConventions
- PHP
- Strings
- VersionControl
- WhiteSpace
- PEAR
- Sniffs
- Classes
- Commenting
- ControlStructures
- Files
- Formatting
- Functions
- NamingConventions
- WhiteSpace
- Tests
- Classes
- Commenting
- ControlStructures
- Files
- Formatting
- Functions
- NamingConventions
- WhiteSpace
- PSR12
- Sniffs
- Classes
- ControlStructures
- Files
- Functions
- Keywords
- Namespaces
- Operators
- Properties
- Traits
- Tests
- Classes
- ControlStructures
- Files
- Functions
- Keywords
- Namespaces
- Operators
- Properties
- Traits
- PSR1
- Sniffs
- Classes
- Files
- Methods
- Tests
- Classes
- Files
- Methods
- PSR2
- Sniffs
- Classes
- ControlStructures
- Files
- Methods
- Namespaces
- Tests
- Classes
- ControlStructures
- Files
- Methods
- Namespaces
- Squiz
- Sniffs
- Arrays
- Classes
- Commenting
- ControlStructures
- Files
- Formatting
- Functions
- NamingConventions
- Objects
- Operators
- PHP
- Scope
- Strings
- WhiteSpace
- Tests
- Arrays
- Classes
- Commenting
- ControlStructures
- Files
- Formatting
- Functions
- NamingConventions
- Objects
- Operators
- PHP
- Scope
- Strings
- WhiteSpace
- Zend
- Sniffs
- Files
- NamingConventions
- Tests
- Files
- NamingConventions
- Tokenizers
- Util
- Writers
- tests
- Core
- Autoloader
- Config
- Files
- FileList
- File
- Filters
- Filter
- Fixer
- Generators
- Reporter
- Ruleset
- Runner
- Sniffs
- Standards
- Tokenizers
- Comment
- PHP
- Tokenizer
- Util
- Common
- ExitCode
- Help
- IgnoreList
- MessageCollector
- Timing
- Tokens
- Writers
- Standards
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
645 files changed
+12
-2413
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
144 | 143 | | |
145 | 144 | | |
146 | 145 | | |
| |||
183 | 182 | | |
184 | 183 | | |
185 | 184 | | |
186 | | - | |
187 | 185 | | |
188 | 186 | | |
189 | 187 | | |
| |||
244 | 242 | | |
245 | 243 | | |
246 | 244 | | |
247 | | - | |
248 | 245 | | |
249 | 246 | | |
250 | 247 | | |
| |||
259 | 256 | | |
260 | 257 | | |
261 | 258 | | |
262 | | - | |
263 | 259 | | |
264 | 260 | | |
265 | 261 | | |
| |||
271 | 267 | | |
272 | 268 | | |
273 | 269 | | |
274 | | - | |
275 | 270 | | |
276 | 271 | | |
277 | 272 | | |
| |||
290 | 285 | | |
291 | 286 | | |
292 | 287 | | |
293 | | - | |
294 | 288 | | |
295 | 289 | | |
296 | 290 | | |
| |||
309 | 303 | | |
310 | 304 | | |
311 | 305 | | |
312 | | - | |
313 | 306 | | |
314 | 307 | | |
315 | 308 | | |
| |||
321 | 314 | | |
322 | 315 | | |
323 | 316 | | |
324 | | - | |
325 | 317 | | |
326 | 318 | | |
327 | 319 | | |
| |||
333 | 325 | | |
334 | 326 | | |
335 | 327 | | |
336 | | - | |
337 | 328 | | |
338 | 329 | | |
339 | 330 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
68 | 71 | | |
69 | 72 | | |
70 | 73 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
73 | 72 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
75 | 74 | | |
76 | 75 | | |
77 | 76 | | |
| |||
105 | 104 | | |
106 | 105 | | |
107 | 106 | | |
108 | | - | |
109 | 107 | | |
110 | 108 | | |
111 | 109 | | |
| |||
137 | 135 | | |
138 | 136 | | |
139 | 137 | | |
140 | | - | |
141 | 138 | | |
142 | 139 | | |
143 | 140 | | |
| |||
181 | 178 | | |
182 | 179 | | |
183 | 180 | | |
184 | | - | |
185 | 181 | | |
186 | 182 | | |
187 | 183 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
79 | 78 | | |
80 | 79 | | |
81 | 80 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
275 | 275 | | |
276 | 276 | | |
277 | 277 | | |
278 | | - | |
279 | 278 | | |
280 | 279 | | |
281 | 280 | | |
| |||
348 | 347 | | |
349 | 348 | | |
350 | 349 | | |
351 | | - | |
352 | 350 | | |
353 | 351 | | |
354 | 352 | | |
| |||
362 | 360 | | |
363 | 361 | | |
364 | 362 | | |
365 | | - | |
366 | 363 | | |
367 | 364 | | |
368 | 365 | | |
| |||
376 | 373 | | |
377 | 374 | | |
378 | 375 | | |
379 | | - | |
380 | 376 | | |
381 | 377 | | |
382 | 378 | | |
| |||
388 | 384 | | |
389 | 385 | | |
390 | 386 | | |
391 | | - | |
392 | 387 | | |
393 | 388 | | |
394 | 389 | | |
| |||
402 | 397 | | |
403 | 398 | | |
404 | 399 | | |
405 | | - | |
406 | 400 | | |
407 | 401 | | |
408 | 402 | | |
| |||
487 | 481 | | |
488 | 482 | | |
489 | 483 | | |
490 | | - | |
491 | 484 | | |
492 | 485 | | |
493 | 486 | | |
| |||
538 | 531 | | |
539 | 532 | | |
540 | 533 | | |
541 | | - | |
542 | 534 | | |
543 | 535 | | |
544 | 536 | | |
| |||
662 | 654 | | |
663 | 655 | | |
664 | 656 | | |
665 | | - | |
666 | 657 | | |
667 | 658 | | |
668 | 659 | | |
| |||
774 | 765 | | |
775 | 766 | | |
776 | 767 | | |
777 | | - | |
778 | 768 | | |
779 | 769 | | |
780 | 770 | | |
| |||
1306 | 1296 | | |
1307 | 1297 | | |
1308 | 1298 | | |
1309 | | - | |
1310 | 1299 | | |
1311 | 1300 | | |
1312 | 1301 | | |
| |||
1393 | 1382 | | |
1394 | 1383 | | |
1395 | 1384 | | |
1396 | | - | |
1397 | 1385 | | |
1398 | 1386 | | |
1399 | 1387 | | |
| |||
1422 | 1410 | | |
1423 | 1411 | | |
1424 | 1412 | | |
1425 | | - | |
1426 | 1413 | | |
1427 | 1414 | | |
1428 | 1415 | | |
| |||
1458 | 1445 | | |
1459 | 1446 | | |
1460 | 1447 | | |
1461 | | - | |
1462 | 1448 | | |
1463 | 1449 | | |
1464 | 1450 | | |
| |||
1478 | 1464 | | |
1479 | 1465 | | |
1480 | 1466 | | |
1481 | | - | |
1482 | 1467 | | |
1483 | 1468 | | |
1484 | 1469 | | |
| |||
1505 | 1490 | | |
1506 | 1491 | | |
1507 | 1492 | | |
1508 | | - | |
1509 | 1493 | | |
1510 | 1494 | | |
1511 | 1495 | | |
| |||
1531 | 1515 | | |
1532 | 1516 | | |
1533 | 1517 | | |
1534 | | - | |
1535 | 1518 | | |
1536 | 1519 | | |
1537 | 1520 | | |
| |||
1547 | 1530 | | |
1548 | 1531 | | |
1549 | 1532 | | |
1550 | | - | |
1551 | 1533 | | |
1552 | 1534 | | |
1553 | 1535 | | |
| |||
1573 | 1555 | | |
1574 | 1556 | | |
1575 | 1557 | | |
1576 | | - | |
1577 | 1558 | | |
1578 | 1559 | | |
1579 | 1560 | | |
| |||
1614 | 1595 | | |
1615 | 1596 | | |
1616 | 1597 | | |
1617 | | - | |
1618 | 1598 | | |
1619 | 1599 | | |
1620 | 1600 | | |
| |||
1696 | 1676 | | |
1697 | 1677 | | |
1698 | 1678 | | |
1699 | | - | |
1700 | 1679 | | |
1701 | 1680 | | |
1702 | 1681 | | |
| |||
1738 | 1717 | | |
1739 | 1718 | | |
1740 | 1719 | | |
1741 | | - | |
1742 | 1720 | | |
1743 | 1721 | | |
1744 | 1722 | | |
| |||
1773 | 1751 | | |
1774 | 1752 | | |
1775 | 1753 | | |
1776 | | - | |
1777 | 1754 | | |
1778 | 1755 | | |
1779 | 1756 | | |
| |||
1789 | 1766 | | |
1790 | 1767 | | |
1791 | 1768 | | |
1792 | | - | |
1793 | 1769 | | |
1794 | 1770 | | |
1795 | 1771 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | 58 | | |
60 | 59 | | |
61 | 60 | | |
| |||
85 | 84 | | |
86 | 85 | | |
87 | 86 | | |
88 | | - | |
89 | 87 | | |
90 | 88 | | |
91 | 89 | | |
| |||
0 commit comments