- 
 
- 
  Notifications
 You must be signed in to change notification settings 
- Fork 89
Commit 9fa77a2
Squiz/FunctionDeclarationArgumentSpacing: handle asym modifiers for constructor property promotion
This commit adds handling of the spacing after asymmetric visibility modifiers used for constructor property promotion to this sniff.
The spacing requirements are aligned with the spacing expectations of the `Squiz.WhiteSpace.ScopeKeywordSpacing` sniff, so the sniffs should not conflict with each other.
Additionally, the new check has a dedicated error code, which means that - if there would be a conflict anywhere - the asym visibility spacing check within this sniff can easily be turned off.
Includes tests.1 parent 2e9da03 commit 9fa77a2
File tree
4 files changed
+68
-0
lines changed- src/Standards/Squiz- Sniffs/Functions
- Tests/Functions
 
4 files changed
+68
-0
lines changedLines changed: 34 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
|  | |||
| 340 | 340 |  | |
| 341 | 341 |  | |
| 342 | 342 |  | |
| 343 | + | ||
| 344 | + | ||
| 345 | + | ||
| 346 | + | ||
| 347 | + | ||
| 348 | + | ||
| 349 | + | ||
| 350 | + | ||
| 351 | + | ||
| 352 | + | ||
| 353 | + | ||
| 354 | + | ||
| 355 | + | ||
| 356 | + | ||
| 357 | + | ||
| 358 | + | ||
| 359 | + | ||
| 360 | + | ||
| 361 | + | ||
| 362 | + | ||
| 363 | + | ||
| 364 | + | ||
| 365 | + | ||
| 366 | + | ||
| 367 | + | ||
| 368 | + | ||
| 369 | + | ||
| 370 | + | ||
| 371 | + | ||
| 372 | + | ||
| 373 | + | ||
| 374 | + | ||
| 375 | + | ||
| 376 | + | ||
| 343 | 377 |  | |
| 344 | 378 |  | |
| 345 | 379 |  | |
|  | |||
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
|  | |||
| 210 | 210 |  | |
| 211 | 211 |  | |
| 212 | 212 |  | |
| 213 | + | ||
| 214 | + | ||
| 215 | + | ||
| 216 | + | ||
| 217 | + | ||
| 218 | + | ||
| 219 | + | ||
| 220 | + | ||
| 221 | + | ||
| 222 | + | ||
| 223 | + | ||
| 224 | + | ||
| 225 | + | ||
| 226 | + | ||
| 227 | + | ||
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
|  | |||
| 184 | 184 |  | |
| 185 | 185 |  | |
| 186 | 186 |  | |
| 187 | + | ||
| 188 | + | ||
| 189 | + | ||
| 190 | + | ||
| 191 | + | ||
| 192 | + | ||
| 193 | + | ||
| 194 | + | ||
| 195 | + | ||
| 196 | + | ||
| 197 | + | ||
| 198 | + | ||
| 199 | + | ||
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
|  | |||
| 95 | 95 |  | |
| 96 | 96 |  | |
| 97 | 97 |  | |
| 98 | + | ||
| 99 | + | ||
| 100 | + | ||
| 101 | + | ||
| 102 | + | ||
| 103 | + | ||
| 98 | 104 |  | |
| 99 | 105 |  | |
| 100 | 106 |  | |
|  | |||
0 commit comments