Make WordPress Core

Changeset 52779


Ignore:
Timestamp:
02/20/2022 10:12:37 AM (3 years ago)
Author:
SergeyBiryukov
Message:

Docs: Fix typo in TracTickets::isTracTicketClosed() description.

Follow-up to [761/tests], [762/tests], [891/tests].

See #54729.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/trac.php

    r48115 r52779  
    1010
    1111    /**
    12      * Checks if track ticket #$ticket_id is resolved
     12     * Checks if Trac ticket #$ticket_id is resolved.
    1313     *
    14      * @return bool|null true if the ticket is resolved, false if not resolved, null on error
     14     * @return bool|null True if the ticket is resolved, false if not resolved, null on error.
    1515     */
    1616    public static function isTracTicketClosed( $trac_url, $ticket_id ) { // phpcs:ignore WordPress.NamingConventions.ValidFunctionName.MethodNameInvalid
     
    2323            $file    = DIR_TESTDATA . '/.trac-ticket-cache.' . str_replace( array( 'http://', 'https://', '/' ), array( '', '', '-' ), rtrim( $trac_url, '/' ) );
    2424            $tickets = @file_get_contents( $trac_url . '/query?status=%21closed&format=csv&col=id' );
     25
    2526            // Check if our HTTP request failed.
    2627            if ( false === $tickets ) {
     
    3839                file_put_contents( $file, $tickets );
    3940            }
    40             $tickets                              = explode( "\r\n", $tickets );
     41
     42            $tickets = explode( "\r\n", $tickets );
     43
    4144            self::$trac_ticket_cache[ $trac_url ] = $tickets;
    4245        }
Note: See TracChangeset for help on using the changeset viewer.