From bc0b7ee838ccc00b83ecdd25f0451f12e9e6e04a Mon Sep 17 00:00:00 2001 From: libraryupgrader Date: Fri, 1 Sep 2017 04:53:09 +0000 Subject: [PATCH] build: Updating mediawiki/mediawiki-codesniffer to 0.12.0 The following sniffs are failing and were disabled: * MediaWiki.Files.ClassMatchesFilename.NotMatch * MediaWiki.Files.ClassMatchesFilename.WrongCase * MediaWiki.Files.OneClassPerFile.MultipleFound Change-Id: Ia2c06ebe33acefdf03625d86d98bf0dbaf826c4c --- composer.json | 2 +- phpcs.xml | 3 +++ tests/MathInputCheckTexvcTest.php | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 1bc4497..6b670ed 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 2596b17..4302dec 100644 --- a/phpcs.xml +++ b/phpcs.xml @@ -3,6 +3,9 @@ + + + diff --git a/tests/MathInputCheckTexvcTest.php b/tests/MathInputCheckTexvcTest.php index e965445..8c80586 100644 --- a/tests/MathInputCheckTexvcTest.php +++ b/tests/MathInputCheckTexvcTest.php @@ -72,7 +72,7 @@ class MathInputCheckTexvcTest extends MediaWikiTestCase { /** @var int the number of runs used in that test */ $numberOfRuns = 10; /** @var double the maximal average time accetable for a execution of is_executable in seconds*/ - $maxAvgTime = .001; + $maxAvgTime = 0.001; $tstart = microtime( true ); for ( $i = 1; $i <= $numberOfRuns; $i++ ) {