Explicitly declare property visibility, remove use of var
authorVivek Ghaisas <v.a.ghaisas@gmail.com>
Sat, 20 Jun 2015 21:07:13 +0000 (00:07 +0300)
committerVivek Ghaisas <v.a.ghaisas@gmail.com>
Sat, 20 Jun 2015 21:07:13 +0000 (00:07 +0300)
Codesniffer says that the `var` keyword must not be used to declare a
property and that visibility must be declared on class properties.

Change-Id: I28240aa0f394588b1df315621dbcd260c51430c1

tests/phpunit/includes/htmlform/HTMLAutoCompleteSelectFieldTest.php
tests/phpunit/includes/registration/ExtensionProcessorTest.php

index 2c7f50c..3b5347c 100644 (file)
@@ -6,7 +6,7 @@
  */
 class HtmlAutoCompleteSelectFieldTest extends MediaWikiTestCase {
 
-       var $options = array(
+       public $options = array(
                'Bulgaria'     => 'BGR',
                'Burkina Faso' => 'BFA',
                'Burundi'      => 'BDI',
index 2df5568..a79c9a8 100644 (file)
@@ -14,7 +14,7 @@ class ExtensionProcessorTest extends MediaWikiTestCase {
         *
         * @var array
         */
-       static $default = array(
+       public static $default = array(
                'name' => 'FooBar',
        );