From 8a49ed2e175eee3ace3a9bcf0dce5499e3dcbea6 Mon Sep 17 00:00:00 2001 From: umherirrender Date: Tue, 19 Aug 2014 21:55:22 +0200 Subject: [PATCH] Move @codingStandardsIgnoreStart into doc comment No need to have a own comment here, because phpcs support this. Change-Id: I7ec0ed4d174417d054eb8578519ae15eda4055ac --- includes/media/XMP.php | 4 ++-- tests/phpunit/includes/SampleTest.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/media/XMP.php b/includes/media/XMP.php index 154c85dbc5..cdbd5ab2ad 100644 --- a/includes/media/XMP.php +++ b/includes/media/XMP.php @@ -1122,7 +1122,6 @@ class XMPReader { } } - // @codingStandardsIgnoreStart Long line that cannot be broken /** * Process attributes. * Simple values can be stored as either a tag or attribute @@ -1130,15 +1129,16 @@ class XMPReader { * Often the initial "" tag just has all the simple * properties as attributes. * + * @codingStandardsIgnoreStart Long line that cannot be broken * @par Example: * @code * * @endcode + * @codingStandardsIgnoreEnd * * @param array $attribs Array attribute=>value * @throws MWException */ - // @codingStandardsIgnoreEnd private function doAttribs( $attribs ) { // first check for rdf:parseType attribute, as that can change // how the attributes are interperted. diff --git a/tests/phpunit/includes/SampleTest.php b/tests/phpunit/includes/SampleTest.php index 6fdc23911f..86e8e8b89e 100644 --- a/tests/phpunit/includes/SampleTest.php +++ b/tests/phpunit/includes/SampleTest.php @@ -57,12 +57,12 @@ class TestSample extends MediaWikiLangTestCase { ); } - // @codingStandardsIgnoreStart Ignore long line warning /** * @dataProvider provideTitles + * @codingStandardsIgnoreStart Ignore long line warning * See http://phpunit.de/manual/3.7/en/appendixes.annotations.html#appendixes.annotations.dataProvider + * @codingStandardsIgnoreEnd */ - // @codingStandardsIgnoreEnd public function testCreateBasicListOfTitles( $titleName, $ns, $text ) { $title = Title::newFromText( $titleName, $ns ); $this->assertEquals( $text, "$title", "see if '$titleName' matches '$text'" ); -- 2.20.1