jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/375133 )
Change subject: build: Updating mediawiki/mediawiki-codesniffer to 0.12.0 ...................................................................... build: Updating mediawiki/mediawiki-codesniffer to 0.12.0 The following sniffs are failing and were disabled: * MediaWiki.Files.ClassMatchesFilename.NotMatch * MediaWiki.Files.OneClassPerFile.MultipleFound Change-Id: I3dff74a66b3f51443bc033b0519b2a63d4ebafb2 --- M Akismet.class.php M composer.json M phpcs.xml 3 files changed, 16 insertions(+), 14 deletions(-) Approvals: Niharika29: Looks good to me, approved jenkins-bot: Verified diff --git a/Akismet.class.php b/Akismet.class.php index 6636a7c..3eb12ac 100644 --- a/Akismet.class.php +++ b/Akismet.class.php @@ -94,8 +94,8 @@ 'PHP_SELF' ]; /** - * @param string $blogURL The URL of your blog. - * @param string $wordPressAPIKey WordPress API key. + * @param string $blogURL The URL of your blog. + * @param string $wordPressAPIKey WordPress API key. */ public function __construct( $blogURL, $wordPressAPIKey ) { $this->blogURL = $blogURL; @@ -138,7 +138,7 @@ * * Use this method if you suspect your API key is invalid. * - * @return bool True is if the key is valid, false if not. + * @return bool True is if the key is valid, false if not. */ public function isKeyValid() { // Check to see if the key is valid @@ -391,12 +391,12 @@ /** * Sends the data to the remote host. * - * @param string $host The host to send/receive data. - * @param int $port The port on the remote host. - * @param string $request The data to send. - * @param int $responseLength The amount of data to read. Defaults to 1160 bytes. + * @param string $host The host to send/receive data. + * @param int $port The port on the remote host. + * @param string $request The data to send. + * @param int $responseLength The amount of data to read. Defaults to 1160 bytes. * @throws MWException An exception is thrown if a connection cannot be made to the remote host. - * @return string The server response + * @return string The server response */ public function send( $host, $port, $request, $responseLength = 1160 ) { $response = ''; @@ -426,7 +426,7 @@ /** * Returns the server response text * - * @return string + * @return string */ public function getResponse() { return $this->response; @@ -494,10 +494,10 @@ /** * Sends the data to the remote host. * - * @param string $host The host to send/receive data. - * @param int $port The port on the remote host. - * @param string $request The data to send. - * @param int $responseLength The amount of data to read. Defaults to 1160 bytes. + * @param string $host The host to send/receive data. + * @param int $port The port on the remote host. + * @param string $request The data to send. + * @param int $responseLength The amount of data to read. Defaults to 1160 bytes. * @throws MWException An exception is thrown if a connection cannot be made to the remote host. * @return string The server response */ diff --git a/composer.json b/composer.json index bff2c26..9dc2960 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "require-dev": { "jakub-onderka/php-parallel-lint": "0.9.2", - "mediawiki/mediawiki-codesniffer": "0.11.0", + "mediawiki/mediawiki-codesniffer": "0.12.0", "jakub-onderka/php-console-highlighter": "0.3.2" }, "scripts": { diff --git a/phpcs.xml b/phpcs.xml index 92f4bd3..f93375c 100644 --- a/phpcs.xml +++ b/phpcs.xml @@ -4,6 +4,8 @@ <exclude name="MediaWiki.Commenting.FunctionComment.MissingParamComment" /> <exclude name="MediaWiki.Commenting.FunctionComment.MissingParamName" /> <exclude name="MediaWiki.Commenting.FunctionComment.MissingParamTag" /> + <exclude name="MediaWiki.Files.ClassMatchesFilename.NotMatch" /> + <exclude name="MediaWiki.Files.OneClassPerFile.MultipleFound" /> <exclude name="MediaWiki.Commenting.FunctionComment.MissingDocumentationPublic" /> </rule> <file>.</file> -- To view, visit https://gerrit.wikimedia.org/r/375133 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I3dff74a66b3f51443bc033b0519b2a63d4ebafb2 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/AkismetKlik Gerrit-Branch: master Gerrit-Owner: Libraryupgrader <tools.libraryupgra...@tools.wmflabs.org> Gerrit-Reviewer: Legoktm <lego...@member.fsf.org> Gerrit-Reviewer: Niharika29 <nko...@wikimedia.org> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits