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:
Sam Wilson 2018-01-30 10:21:53 +08:00
parent 833c9ce39a
commit 2e7e5e0190
11 changed files with 10 additions and 11 deletions

View file

@ -2,7 +2,6 @@
<ruleset>
<rule ref="./vendor/mediawiki/mediawiki-codesniffer/MediaWiki">
<exclude name="MediaWiki.Commenting.FunctionComment.MissingParamComment" />
<exclude name="MediaWiki.Files.ClassMatchesFilename.NotMatch" />
<exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationProtected" />
<exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationPublic" />
<exclude name="MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment" />

View file

@ -46,14 +46,14 @@
"ThanksAlias": "Thanks.alias.php"
},
"AutoloadClasses": {
"ThanksHooks": "Thanks.hooks.php",
"EchoThanksPresentationModel": "ThanksPresentationModel.php",
"EchoFlowThanksPresentationModel": "FlowThanksPresentationModel.php",
"ApiThank": "ApiThank.php",
"ApiRevThank": "ApiRevThank.php",
"ApiFlowThank": "ApiFlowThank.php",
"ThanksLogFormatter": "ThanksLogFormatter.php",
"SpecialThanks": "SpecialThanks.php"
"ThanksHooks": "includes/ThanksHooks.php",
"EchoThanksPresentationModel": "includes/EchoThanksPresentationModel.php",
"EchoFlowThanksPresentationModel": "includes/EchoFlowThanksPresentationModel.php",
"ApiThank": "includes/ApiThank.php",
"ApiRevThank": "includes/ApiRevThank.php",
"ApiFlowThank": "includes/ApiFlowThank.php",
"ThanksLogFormatter": "includes/ThanksLogFormatter.php",
"SpecialThanks": "includes/SpecialThanks.php"
},
"ResourceModules": {
"ext.thanks": {

View file

@ -21,7 +21,7 @@ class ThanksHooks {
) {
if ( class_exists( 'SpecialMobileDiff' ) ) {
$testModules['qunit']['tests.ext.thanks.mobilediff'] = [
'localBasePath' => __DIR__,
'localBasePath' => dirname( __DIR__ ),
'remoteExtPath' => 'Thanks',
'dependencies' => [ 'ext.thanks.mobilediff' ],
'scripts' => [

View file

@ -17,7 +17,7 @@ use Flow\Model\UUID;
*
* @author Benjamin Chen
*/
class ApiFlowThankTest extends ApiTestCase {
class ApiFlowThankIntegrationTest extends ApiTestCase {
/** @var PostRevision */
public $topic;