Make WordPress Core


Ignore:
Timestamp:
11/04/2021 01:15:33 PM (4 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/bootstrap.php

    r51828 r52009  
    341341class WP_PHPUnit_Util_Getopt {
    342342
    343     function __construct( $argv ) {
     343    public function __construct( $argv ) {
    344344        $skipped_groups = array(
    345345            'ajax'          => true,
Note: See TracChangeset for help on using the changeset viewer.