Declare functions with access modifiers
authorSiebrand Mazeland <siebrand@kitano.nl>
Tue, 8 Mar 2016 07:46:02 +0000 (08:46 +0100)
committerAnomie <bjorsch@wikimedia.org>
Tue, 8 Mar 2016 16:16:33 +0000 (16:16 +0000)
Parents have this visibility.

Change-Id: Icb4d0a112def0ac02f9aa42723c81bc63c085450

includes/api/ApiStashEdit.php

index d8562b0..0d469a7 100644 (file)
@@ -433,19 +433,19 @@ class ApiStashEdit extends ApiBase {
                ];
        }
 
-       function needsToken() {
+       public function needsToken() {
                return 'csrf';
        }
 
-       function mustBePosted() {
+       public function mustBePosted() {
                return true;
        }
 
-       function isWriteMode() {
+       public function isWriteMode() {
                return true;
        }
 
-       function isInternal() {
+       public function isInternal() {
                return true;
        }
 }