Thiemo Kreuz
a9878ab2ab
Some smaller general code cleanups
...
In detail:
* Use more compact syntax to avoid a bit of code duplication.
* Use createMock() shortcut in tests.
* Avoid hiding code in strings.
* Remove a comment that literally repeats what the code says.
Change-Id: Ibedef380489451268e2e87f0864164e8f9737913
2023-01-03 12:30:41 +01:00
Alexander Vorwerk
d7b1bfe6f3
Replace usages of deprecated wfWikiID()
...
The global function wfWikiID() is deprecated since 1.35 and it's usages
should be replaced with WikiMap::getCurrentWikiId().
Bug: T298059
Change-Id: I0cb8e96b7e988aa1d6dce0cb3cddf65fc627b214
2021-12-21 02:32:37 +01:00
libraryupgrader
56e6d0d365
build: Updating mediawiki/mediawiki-codesniffer to 37.0.0
...
Change-Id: Ic46650ca7e95698d6c2ee045a62a3f4115c14a2d
2021-07-24 06:11:02 +00:00
Kunal Mehta
8055732ae0
Remove PHP 5.3 $this closure workaround
...
Change-Id: Ic1f8147e85ad751927153d5a8f6330d37800aacb
2021-05-14 10:25:15 -07:00
Umherirrender
6a8776d1b1
Use ::class for class name
...
This works also for non-existing classes,
because it is resolved on compile time
Change-Id: Ib40f1aeea35e474530fea42c43d593f6c86f4487
2021-04-08 21:14:44 +02:00
Reedy
3749db7eba
Namespace extension
...
Change-Id: Ic9e0b8d6b3cc6b9be4d6b026cb0a3b4a12aef38f
2021-03-20 18:22:17 -07:00
libraryupgrader
2c2b79f9b9
build: Updating dependencies
...
composer:
* mediawiki/mediawiki-codesniffer: 34.0.0 → 35.0.0
* mediawiki/minus-x: 1.1.0 → 1.1.1
npm:
* eslint-config-wikimedia: 0.17.0 → 0.18.1
Additional changes:
* Added the "composer phan" command to conveniently run phan.
Change-Id: I9f93be1e4480b38031295771aa2a8b540268b2db
2021-01-30 16:07:37 +00:00
libraryupgrader
081ad97a0c
build: Updating mediawiki/mediawiki-codesniffer to 31.0.0
...
Additional changes:
* Replaced "jakub-onderka" packages with "php-parallel-lint".
Change-Id: I1f3e80ffbcdf2526a6533af6d7008d9f3456531c
2020-05-30 08:23:03 +00:00
Daimona Eaytoy
3d2441cfef
Avoid using Title::__construct
...
Change-Id: Ic78da7e9f417ee64288537e008068949edb1fbac
2020-03-07 13:15:12 +00:00
DannyS712
7de45d5f5c
Remove use of ApiTestCase::doLogin
...
Bug: T244039
Change-Id: I5ce8bebc22d15bc40f2704a2dfec6f0757fb0034
2020-02-03 19:17:51 +00:00
Max Semenik
469117ff28
tests: getMock() is deprecated
...
Bug: T192167
Change-Id: I460f9c5457483b9350c4f88c24d24425fd46a9a8
2019-10-21 22:18:33 -07:00
Max Semenik
be060b3d07
tests: setExpectedException() is deprecated
...
Change-Id: Ie9500ff2dabb9315f6fe8344acdfbb1f3f1aac33
2019-10-12 15:55:31 -07:00
James D. Forrester
951d171e6b
build: Upgrade mediawiki-codesniffer to v28.0.0
...
Change-Id: I67fef60b34f8d2b6f5e4920a3caf99bef75fd214
2019-10-11 12:16:59 -07:00
Derick Alangi
649d070d22
Fix function name mismatch, wfWikiId()
-> wfWikiID()
...
Change-Id: I78df6e6bbd19315bb4dc7bcb41b3506a182ce8bb
2019-08-31 21:07:14 +01:00
Umherirrender
e0be7340bd
Use ExtensionRegistry rather than class_exists
...
Change-Id: I5dd3acc4fff6a0a59693c5258138c4b2aa139cf8
2019-03-03 02:36:06 +01:00
Reedy
64ad66c8d4
s/@gropu/@group/
...
Change-Id: Ie407283a57e925a819e6365895153917e1ea3447
2018-06-04 07:29:04 +00:00
Sam Wilson
2e7e5e0190
Move classes to includes/ and rename some to match class names
...
For conformance to coding standards. This removes an exclusion
from the phpcs config.
Change-Id: I1481a3e7e68a81daf310ea3c7bf9dc48cdaf140b
2018-01-30 10:32:03 +08:00
Sam Wilson
55ceeb3fbe
Fix member variable visbility and doc
...
Change-Id: I22d16b05d24c615f0c792063e33433d50a34ad8a
2018-01-19 16:38:58 +08:00
Kunal Mehta
e2f4f28e3d
build: Updating mediawiki/mediawiki-codesniffer to 0.9.0
...
The following sniffs are failing and were disabled:
* MediaWiki.Commenting.FunctionComment.MissingParamComment
* MediaWiki.Commenting.FunctionComment.MissingParamName
* MediaWiki.Commenting.FunctionComment.MissingParamTag
* MediaWiki.Commenting.FunctionComment.MissingReturn
* MediaWiki.Commenting.FunctionComment.ParamNameNoMatch
* MediaWiki.Commenting.FunctionComment.WrongStyle
* MediaWiki.FunctionComment.Missing.Protected
* MediaWiki.FunctionComment.Missing.Public
* MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment
Change-Id: I6b5140bfdacab7a7ba23c7ba65e7e9f732c780a0
2017-06-25 13:54:10 +00:00
Brad Jorsch
a9cbd9471b
Update for API error i18n
...
See Iae0e2ce3. Since Thanks master requires core master, this just
depends on the master patch instead of trying to maintain BC.
Depends-On: Iae0e2ce3bd42dd4776a9779664086119ac188412
Change-Id: Ib6e66f7e94c41b7a27fe867f079626ac0ade4f1b
2016-11-15 03:22:14 +00:00
Brad Jorsch
b40e7197e1
Prepare for API error i18n
...
This has the minimal changes necessary for unit tests to pass with
Iae0e2ce3.
Change-Id: I535344c29d51521147c2a26c341dae38cec3e931
2016-11-15 03:20:58 +00:00
Reedy
b96f1a8b70
Remove 'UnitTestList' hook
...
No longer needed now that extension unittests are autodiscovered.
Bug: T142120
Bug: T142121
Change-Id: Ic856aa0d3d7af53f1405ceee43aff41bface3b58
2016-08-05 17:40:28 +01:00