Merge "format the tests/phpunit/TODO document for readability"
[lhc/web/wiklou.git] / includes / DeprecatedGlobal.php
index 4d7b968..d1fda2e 100644 (file)
 /**
  * Class to allow throwing wfDeprecated warnings
  * when people use globals that we do not want them to.
- * (For example like $wgArticle)
  */
 
 class DeprecatedGlobal extends StubObject {
-        // The m's are to stay consistent with parent class.
+       // The m's are to stay consistent with parent class.
        protected $mRealValue, $mVersion;
 
        function __construct( $name, $realValue, $version = false ) {
@@ -36,7 +35,11 @@ class DeprecatedGlobal extends StubObject {
                $this->mVersion = $version;
        }
 
+       // @codingStandardsIgnoreStart
+       // PSR2.Methods.MethodDeclaration.Underscore
+       // PSR2.Classes.PropertyDeclaration.ScopeMissing
        function _newObject() {
+
                /* Put the caller offset for wfDeprecated as 6, as
                 * that gives the function that uses this object, since:
                 * 1 = this function ( _newObject )
@@ -52,4 +55,5 @@ class DeprecatedGlobal extends StubObject {
                wfDeprecated( '$' . $this->mGlobal, $this->mVersion, false, 6 );
                return $this->mRealValue;
        }
+       // @codingStandardsIgnoreEnd
 }