Commit f3f36d7
Update mediawiki/codesniffer to 42.0.0
Two main changes:
- list() to []. Several IDEs already started autofixing this on save,
introducing unrelated noise into random commits, so I’m glad to get
this over with.
- Nicer PHPUnit usage (less ->will()). I had previously done something
similar in change Iac24de03f2 (commit 8c44612b9f), but doing it in
phpcs is of course more thorough and ensures it doesn’t regress.
The MediaWiki.WhiteSpace.DisallowEmptyLineFunctions rule was replaced
with Squiz.WhiteSpace.FunctionOpeningBraceSpace upstream, so just update
our exclusion for that.
Two new phpcs rules are suppressed, the $wgHooks one hopefully only
temporarily. Also, I manually fixed the indentation in
BaseUriExtractorTest.php and EntityLinkFormatterFactoryTest.php.
Change-Id: I4cb9b54d227119d5febe6331689df1be515f2ec71 parent faeca74 commit f3f36d7
3 files changed
Lines changed: 5 additions & 5 deletions
File tree
- src
- Entity
- Snak
- tests/unit/Statement
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
| 112 | + | |
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
| 56 | + | |
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| |||
0 commit comments