mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Thanks
synced 2024-12-18 01:10:31 +00:00
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
This commit is contained in:
parent
833c9ce39a
commit
2e7e5e0190
|
@ -2,7 +2,6 @@
|
||||||
<ruleset>
|
<ruleset>
|
||||||
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki">
|
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki">
|
||||||
<exclude name="MediaWiki.Commenting.FunctionComment.MissingParamComment" />
|
<exclude name="MediaWiki.Commenting.FunctionComment.MissingParamComment" />
|
||||||
<exclude name="MediaWiki.Files.ClassMatchesFilename.NotMatch" />
|
|
||||||
<exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationProtected" />
|
<exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationProtected" />
|
||||||
<exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationPublic" />
|
<exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationPublic" />
|
||||||
<exclude name="MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment" />
|
<exclude name="MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment" />
|
||||||
|
|
|
@ -46,14 +46,14 @@
|
||||||
"ThanksAlias": "Thanks.alias.php"
|
"ThanksAlias": "Thanks.alias.php"
|
||||||
},
|
},
|
||||||
"AutoloadClasses": {
|
"AutoloadClasses": {
|
||||||
"ThanksHooks": "Thanks.hooks.php",
|
"ThanksHooks": "includes/ThanksHooks.php",
|
||||||
"EchoThanksPresentationModel": "ThanksPresentationModel.php",
|
"EchoThanksPresentationModel": "includes/EchoThanksPresentationModel.php",
|
||||||
"EchoFlowThanksPresentationModel": "FlowThanksPresentationModel.php",
|
"EchoFlowThanksPresentationModel": "includes/EchoFlowThanksPresentationModel.php",
|
||||||
"ApiThank": "ApiThank.php",
|
"ApiThank": "includes/ApiThank.php",
|
||||||
"ApiRevThank": "ApiRevThank.php",
|
"ApiRevThank": "includes/ApiRevThank.php",
|
||||||
"ApiFlowThank": "ApiFlowThank.php",
|
"ApiFlowThank": "includes/ApiFlowThank.php",
|
||||||
"ThanksLogFormatter": "ThanksLogFormatter.php",
|
"ThanksLogFormatter": "includes/ThanksLogFormatter.php",
|
||||||
"SpecialThanks": "SpecialThanks.php"
|
"SpecialThanks": "includes/SpecialThanks.php"
|
||||||
},
|
},
|
||||||
"ResourceModules": {
|
"ResourceModules": {
|
||||||
"ext.thanks": {
|
"ext.thanks": {
|
||||||
|
|
|
@ -21,7 +21,7 @@ class ThanksHooks {
|
||||||
) {
|
) {
|
||||||
if ( class_exists( 'SpecialMobileDiff' ) ) {
|
if ( class_exists( 'SpecialMobileDiff' ) ) {
|
||||||
$testModules['qunit']['tests.ext.thanks.mobilediff'] = [
|
$testModules['qunit']['tests.ext.thanks.mobilediff'] = [
|
||||||
'localBasePath' => __DIR__,
|
'localBasePath' => dirname( __DIR__ ),
|
||||||
'remoteExtPath' => 'Thanks',
|
'remoteExtPath' => 'Thanks',
|
||||||
'dependencies' => [ 'ext.thanks.mobilediff' ],
|
'dependencies' => [ 'ext.thanks.mobilediff' ],
|
||||||
'scripts' => [
|
'scripts' => [
|
|
@ -17,7 +17,7 @@ use Flow\Model\UUID;
|
||||||
*
|
*
|
||||||
* @author Benjamin Chen
|
* @author Benjamin Chen
|
||||||
*/
|
*/
|
||||||
class ApiFlowThankTest extends ApiTestCase {
|
class ApiFlowThankIntegrationTest extends ApiTestCase {
|
||||||
|
|
||||||
/** @var PostRevision */
|
/** @var PostRevision */
|
||||||
public $topic;
|
public $topic;
|
||||||
|
|
Loading…
Reference in a new issue