build: Updating mediawiki/mediawiki-codesniffer to 0.10.1

Change-Id: Ib7a361cf2973bf0bba0fb8944762216f44c226a8
This commit is contained in:
Umherirrender
2017-07-26 23:22:26 +02:00
parent 3bb241b08d
commit 1a4ac5a6d6
4 changed files with 4 additions and 5 deletions

View File

@@ -479,7 +479,7 @@ class UniversalLanguageSelectorHooks {
* Conditionally register module ext.uls.eventlogger. * Conditionally register module ext.uls.eventlogger.
* *
* @param ResourceLoader $resourceLoader * @param ResourceLoader $resourceLoader
* @return boolean true * @return bool true
*/ */
public static function onResourceLoaderRegisterModules( ResourceLoader $resourceLoader ) { public static function onResourceLoaderRegisterModules( ResourceLoader $resourceLoader ) {
global $wgULSEventLogging, $wgVersion; global $wgULSEventLogging, $wgVersion;

View File

@@ -26,7 +26,7 @@
}, },
"require-dev": { "require-dev": {
"jakub-onderka/php-parallel-lint": "0.9.2", "jakub-onderka/php-parallel-lint": "0.9.2",
"mediawiki/mediawiki-codesniffer": "0.10.0", "mediawiki/mediawiki-codesniffer": "0.10.1",
"jakub-onderka/php-console-highlighter": "0.3.2" "jakub-onderka/php-console-highlighter": "0.3.2"
}, },
"scripts": { "scripts": {

View File

@@ -61,7 +61,7 @@ class LanguageNameSearch {
* Get the code point of first letter of string * Get the code point of first letter of string
* *
* @param $str string * @param $str string
* @return integer Code point of first letter of string * @return int Code point of first letter of string
*/ */
public static function getCodepoint( $str ) { public static function getCodepoint( $str ) {
$values = []; $values = [];
@@ -106,7 +106,7 @@ class LanguageNameSearch {
* Calculate the Levenshtein distance between two strings * Calculate the Levenshtein distance between two strings
* @param $str1 * @param $str1
* @param $str2 * @param $str2
* @return integer * @return int
*/ */
public static function levenshteinDistance( $str1, $str2 ) { public static function levenshteinDistance( $str1, $str2 ) {
$length1 = mb_strlen( $str1, 'UTF-8' ); $length1 = mb_strlen( $str1, 'UTF-8' );

View File

@@ -12,5 +12,4 @@
<file>.</file> <file>.</file>
<arg name="extensions" value="php,php5,inc" /> <arg name="extensions" value="php,php5,inc" />
<arg name="encoding" value="UTF-8" /> <arg name="encoding" value="UTF-8" />
<exclude-pattern>vendor</exclude-pattern>
</ruleset> </ruleset>