From: Siebrand Mazeland Date: Thu, 5 Dec 2013 11:37:21 +0000 (+0100) Subject: Ignore CodeSniffer warning where unavoidable in media classes X-Git-Tag: 1.31.0-rc.0~17737^2~7 X-Git-Url: https://git.cyclocoop.org/%28%28?a=commitdiff_plain;ds=sidebyside;h=30a2c72712c4821fab431a8babc474b1097f56c0;p=lhc%2Fweb%2Fwiklou.git Ignore CodeSniffer warning where unavoidable in media classes Change-Id: I270b3d2b1257ab8fd0b50eb83f7582e865d5d14f --- diff --git a/includes/media/XMP.php b/includes/media/XMP.php index d60b6994d1..795299cf5f 100644 --- a/includes/media/XMP.php +++ b/includes/media/XMP.php @@ -1111,6 +1111,7 @@ class XMPReader { } } + // @codingStandardsIgnoreStart Long line that cannot be broken /** * Process attributes. * Simple values can be stored as either a tag or attribute @@ -1126,6 +1127,7 @@ class XMPReader { * @param array $attribs attribute=>value array. * @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/includes/media/XMPValidate.php b/includes/media/XMPValidate.php index 1055631988..8919601d42 100644 --- a/includes/media/XMPValidate.php +++ b/includes/media/XMPValidate.php @@ -244,11 +244,14 @@ class XMPValidate { return; } $res = array(); + // @codingStandardsIgnoreStart Long line that cannot be broken if ( !preg_match( /* ahh! scary regex... */ '/^([0-3]\d{3})(?:-([01]\d)(?:-([0-3]\d)(?:T([0-2]\d):([0-6]\d)(?::([0-6]\d)(?:\.\d+)?)?([-+]\d{2}:\d{2}|Z)?)?)?)?$/D', $val, $res ) ) { + // @codingStandardsIgnoreEnd + wfDebugLog( 'XMP', __METHOD__ . " Expected date but got $val" ); $val = null; } else {