Ignore CodeSniffer warning where unavoidable in media classes
authorSiebrand Mazeland <s.mazeland@xs4all.nl>
Thu, 5 Dec 2013 11:37:21 +0000 (12:37 +0100)
committerSiebrand Mazeland <s.mazeland@xs4all.nl>
Thu, 5 Dec 2013 11:37:21 +0000 (12:37 +0100)
Change-Id: I270b3d2b1257ab8fd0b50eb83f7582e865d5d14f

includes/media/XMP.php
includes/media/XMPValidate.php

index d60b699..795299c 100644 (file)
@@ -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.
index 1055631..8919601 100644 (file)
@@ -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 {