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> <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" />

View file

@ -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": {

View file

@ -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' => [

View file

@ -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;