Make WordPress Core


Ignore:
Timestamp:
11/04/2021 01:15:33 PM (5 years ago)
Author:
hellofromTonya
Message:

Coding Standards: Add public visibility to methods in tests/phpunit/includes/.

This commit adds the public visibility keyword to each method which did not have an explicit visibility keyword.

Why public?

With no visibility previously declared, these methods are implicitly public and available for use. As these are part of the WordPress testing framework (for Core and extenders), changing them to anything else would be a backwards-compatibility break.

Props costdev, jrf, hellofromTonya.
See #54177.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/testcase-xmlrpc.php

    r51585 r52009  
    77        protected $myxmlrpcserver;
    88
    9         function set_up() {
     9        public function set_up() {
    1010                parent::set_up();
    1111
    … …  
    1515        }
    1616
    17         function tear_down() {
     17        public function tear_down() {
    1818                remove_filter( 'pre_option_enable_xmlrpc', '__return_true' );
    1919
Note: See TracChangeset for help on using the changeset viewer.