. "https://www.mediawiki.org/wiki/Download_from_Git#Fetch_external_libraries\n"
. "for help on installing the required components.";
+ // @codingStandardsIgnoreStart Generic.Files.LineLength
$longHtml = <<<HTML
MediaWiki now also has some external dependencies that need to be installed via
composer or from a separate git repo. Please see
<a href="https://www.mediawiki.org/wiki/Download_from_Git#Fetch_external_libraries">mediawiki.org</a>
for help on installing the required components.
HTML;
+ // @codingStandardsIgnoreEnd
wfGenericError( $type, $mwVersion, 'External dependencies', $shortText, $longText, $longHtml );
}
}
public static function provideCasesForFormatLinksInComment() {
+ // @codingStandardsIgnoreStart Generic.Files.LineLength
return array(
array(
'foo bar <a href="/wiki/Special:BlankPage" title="Special:BlankPage">Special:BlankPage</a>',
'enwiki',
),
);
+ // @codingStandardsIgnoreEnd
}
}
/**
* @dataProvider provideGetCanonicalUrl
*/
- public function testGetCanonicalUrl( $expected, $canonicalServer, $server, $path, $page, $fragmentId ) {
+ public function testGetCanonicalUrl(
+ $expected, $canonicalServer, $server, $path, $page, $fragmentId
+ ) {
$reference = new WikiReference( $canonicalServer, $path, $server );
$this->assertEquals( $expected, $reference->getCanonicalUrl( $page, $fragmentId ) );
}
} catch ( UsageException $ex ) {
ob_end_clean();
$this->assertSame(
- 'This response cannot be represented using format=php. See https://phabricator.wikimedia.org/T68776',
+ 'This response cannot be represented using format=php. ' .
+ 'See https://phabricator.wikimedia.org/T68776',
$ex->getMessage(),
'Expected exception'
);
protected $printerName = 'txt';
public static function provideGeneralEncoding() {
+ // @codingStandardsIgnoreStart Generic.Files.LineLength
$warning = "\n [warnings] => Array\n (\n [txt] => Array\n (\n" .
" [*] => format=txt has been deprecated. Please use format=json instead.\n" .
" )\n\n )\n";
array( array( 'fóo' ), "Array\n({$warning}\n [0] => fóo\n)\n" ),
// Arrays and objects
- // @codingStandardsIgnoreStart Generic.Files.LineLength
array( array( array() ), "Array\n({$warning}\n [0] => Array\n (\n )\n\n)\n" ),
array( array( array( 1 ) ), "Array\n({$warning}\n [0] => Array\n (\n [0] => 1\n )\n\n)\n" ),
array( array( array( 'x' => 1 ) ), "Array\n({$warning}\n [0] => Array\n (\n [x] => 1\n )\n\n)\n" ),
// BC Subelements
array( array( 'foo' => 'foo', ApiResult::META_BC_SUBELEMENTS => array( 'foo' ) ),
"Array\n({$warning}\n [foo] => Array\n (\n [*] => foo\n )\n\n)\n" ),
- // @codingStandardsIgnoreEnd
);
+ // @codingStandardsIgnoreEnd
}
}
* Keep this in sync with CssContentTest::provideGetRedirectTarget()
*/
public static function provideMakeRedirectContent() {
+ // @codingStandardsIgnoreStart Generic.Files.LineLength
return array(
array( 'MediaWiki:MonoBook.css', "/* #REDIRECT */@import url(//example.org/w/index.php?title=MediaWiki:MonoBook.css&action=raw&ctype=text/css);" ),
array( 'User:FooBar/common.css', "/* #REDIRECT */@import url(//example.org/w/index.php?title=User:FooBar/common.css&action=raw&ctype=text/css);" ),
array( 'Gadget:FooBaz.css', "/* #REDIRECT */@import url(//example.org/w/index.php?title=Gadget:FooBaz.css&action=raw&ctype=text/css);" ),
);
+ // @codingStandardsIgnoreEnd
}
}
. '%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%228%22%20height%3D'
. '%228%22%3E%0A%3Ccircle%20cx%3D%224%22%20cy%3D%224%22%20r%3D%222%22%2F%3E%0A%3C%2Fsvg%3E%0A';
+ // @codingStandardsIgnoreStart Generic.Files.LineLength
return array(
array(
'Regular file',
'.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default { border: 1px solid #d3d3d3/*{borderColorDefault}*/; background: #e6e6e6/*{bgColorDefault}*/ url(http://localhost/w/images/ui-bg_glass_75_e6e6e6_1x400.png)/*{bgImgUrlDefault}*/ 50%/*{bgDefaultXPos}*/ 50%/*{bgDefaultYPos}*/ repeat-x/*{bgDefaultRepeat}*/; font-weight: normal/*{fwDefault}*/; color: #555555/*{fcDefault}*/; }',
),
);
+ // @codingStandardsIgnoreEnd
}
/**
class XmlTypeCheckTest extends PHPUnit_Framework_TestCase {
const WELL_FORMED_XML = "<root><child /></root>";
const MAL_FORMED_XML = "<root><child /></error>";
+ // @codingStandardsIgnoreStart Generic.Files.LineLength
const XML_WITH_PIH = '<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="/w/index.php"?><svg><child /></svg>';
+ // @codingStandardsIgnoreEnd
/**
* @covers XMLTypeCheck::newFromString
'email' => 'chad@wikimedia.org',
),
),
- 'description' => 'Constant Database (CDB) wrapper library for PHP. Provides pure-PHP fallback when dba_* functions are absent.',
+ 'description' => 'Constant Database (CDB) wrapper library for PHP. '.
+ 'Provides pure-PHP fallback when dba_* functions are absent.',
),
'cssjanus/cssjanus' => array(
'version' => '1.1.1',
'role' => 'Developer',
),
),
- 'description' => 'The only standard solution to translate any kind of text with an avant-garde web interface within MediaWiki, including your documentation and software',
+ 'description' => 'The only standard solution to translate any kind ' .
+ 'of text with an avant-garde web interface within MediaWiki, ' .
+ 'including your documentation and software',
),
'mediawiki/universal-language-selector' => array(
'version' => '2014.12',
'type' => 'mediawiki-extension',
'licenses' => array( 'GPL-2.0+', 'MIT' ),
'authors' => array(),
- 'description' => 'The primary aim is to allow users to select a language and configure its support in an easy way. Main features are language selection, input methods and web fonts.',
+ 'description' => 'The primary aim is to allow users to select a language ' .
+ 'and configure its support in an easy way. ' .
+ 'Main features are language selection, input methods and web fonts.',
),
), $lock->getInstalledDependencies(), false, true );
}
),
),
array(
- 'text' => 'User changed protection level for ProtectPage [Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite) [cascading]',
+ 'text' => 'User changed protection level for ProtectPage ' .
+ '[Edit=Allow only administrators] (indefinite) ' .
+ '[Move=Allow only administrators] (indefinite) [cascading]',
'api' => array(
'description' => '[edit=sysop] (indefinite)[move=sysop] (indefinite)',
'cascade' => true,
}
public function provideTestWithFileExtractMetaData() {
return array(
- array( __DIR__ . '/../../data/media/2_webp_ll.webp',
- array( 'compression' => 'lossless', 'width' => 386, 'height' => 395 ) ),
- array( __DIR__ . '/../../data/media/2_webp_a.webp',
- array( 'compression' => 'lossy', 'animated' => false, 'transparency' => true, 'width' => 386, 'height' => 395 ) ),
+ array( __DIR__ . '/../../data/media/2_webp_ll.webp',
+ array(
+ 'compression' => 'lossless',
+ 'width' => 386,
+ 'height' => 395
+ )
+ ),
+ array( __DIR__ . '/../../data/media/2_webp_a.webp',
+ array(
+ 'compression' => 'lossy',
+ 'animated' => false,
+ 'transparency' => true,
+ 'width' => 386,
+ 'height' => 395
+ )
+ ),
);
}
}
public static function providePasswordTests() {
- /** @codingStandardsIgnoreStart Generic.Files.LineLength.TooLong */
+ // @codingStandardsIgnoreStart Generic.Files.LineLength.TooLong
return array(
array( true, ':testLargeLayeredTop:sha512:1024:512!sha512:1024:512!sha512:1024:512!sha512:1024:512!5!vnRy+2SrSA0fHt3dwhTP5g==!AVnwfZsAQjn+gULv7FSGjA==!xvHUX3WcpkeSn1lvjWcvBg==!It+OC/N9tu+d3ByHhuB0BQ==!Tb.gqUOiD.aWktVwHM.Q/O!7CcyMfXUPky5ptyATJsR2nq3vUqtnBC', 'testPassword123' ),
);
- /** @codingStandardsIgnoreEnd */
+ // @codingStandardsIgnoreEnd
}
/**