Merge "Update mediawiki-codesniffer and parallel-lint settings"

This commit is contained in:
jenkins-bot 2015-09-29 17:59:12 +00:00 committed by Gerrit Code Review
commit d6931f563e
6 changed files with 57 additions and 56 deletions

View File

@ -1,12 +1,12 @@
{ {
"require-dev": { "require-dev": {
"jakub-onderka/php-parallel-lint": "0.9.*", "jakub-onderka/php-parallel-lint": "0.9",
"mediawiki/mediawiki-codesniffer": "0.3.0" "mediawiki/mediawiki-codesniffer": "0.4.0"
}, },
"scripts": { "scripts": {
"test": [ "test": [
"parallel-lint . --exclude vendor", "parallel-lint . --exclude vendor",
"phpcs -p" "phpcs -p -s"
] ]
} }
} }

View File

@ -1,9 +1,8 @@
/* /*
Document : ext.math * Document : ext.math
Created on : 23.09.2013, 13:55:00 * Created on : 23.09.2013, 13:55:00
Author : Physikerwelt (Moritz Schubotz) * Author : Physikerwelt (Moritz Schubotz)
Description: * Description: Shows browser-dependent math output.
Shows browser-dependent math output.
*/ */
@namespace m url('http://www.w3.org/1998/Math/MathML'); @namespace m url('http://www.w3.org/1998/Math/MathML');
@ -36,13 +35,14 @@ m|math {
.mwe-math-fallback-source-inline { display: inline; vertical-align: middle; } .mwe-math-fallback-source-inline { display: inline; vertical-align: middle; }
.mwe-math-fallback-source-display { display: block; margin-left: auto; margin-right: auto; } .mwe-math-fallback-source-display { display: block; margin-left: auto; margin-right: auto; }
/******************************************************************************/ /**
/* Browser-specific hacks are bad but let's use that for now... * Browser-specific hacks are bad but let's use that for now...
See http://browserhacks.com/ */ * See http://browserhacks.com/
*/
@-moz-document url-prefix() { @-moz-document url-prefix() {
/* For Gecko browsers, hide the SVG fallback and show the MathML instead. /* For Gecko browsers, hide the SVG fallback and show the MathML instead.
We override the style for SVG and MathML above */ * We override the style for SVG and MathML above
*/
.mwe-math-mathml-a11y { .mwe-math-mathml-a11y {
clip: auto; clip: auto;
overflow: visible; overflow: visible;

View File

@ -1,14 +1,15 @@
/* /*
Document : ext.math. * Document : ext.math.
Created on : 20.10.2014, 22:00:00 * Created on : 20.10.2014, 22:00:00
Author : fredw (Frédéric Wang) * Author : fredw (Frédéric Wang)
Description: * Description:
Additional style, to load only on desktop. * Additional style, to load only on desktop.
*/ */
@font-face { @font-face {
/* WOFF version of Latin Modern Math. /* WOFF version of Latin Modern Math.
See https://github.com/fred-wang/MathFonts */ * See https://github.com/fred-wang/MathFonts
*/
font-family: LatinModernMathWOFF; font-family: LatinModernMathWOFF;
src: url(./LatinModern/latinmodern-math.woff); src: url(./LatinModern/latinmodern-math.woff);
} }

View File

@ -8,4 +8,3 @@
display: none !important; display: none !important;
} }
} }

View File

@ -2,6 +2,7 @@
<ruleset> <ruleset>
<rule ref="vendor/mediawiki/mediawiki-codesniffer/MediaWiki"/> <rule ref="vendor/mediawiki/mediawiki-codesniffer/MediaWiki"/>
<file>.</file> <file>.</file>
<arg name="extensions" value="php"/> <arg name="extensions" value="php,php5,inc"/>
<arg name="encoding" value="utf8"/>
<exclude-pattern>vendor</exclude-pattern> <exclude-pattern>vendor</exclude-pattern>
</ruleset> </ruleset>