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/mock-mailer.php

    r50265 r52009  
    66    public $mock_sent = array();
    77
    8     function preSend() {
     8    public function preSend() {
    99        $this->Encoding = '8bit';
    1010        return parent::preSend();
     
    1414     * Override postSend() so mail isn't actually sent.
    1515     */
    16     function postSend() {
     16    public function postSend() {
    1717        $this->mock_sent[] = array(
    1818            'to'      => $this->to,
Note: See TracChangeset for help on using the changeset viewer.