Make WordPress Core

Changeset 50998


Ignore:
Timestamp:
05/25/2021 11:54:28 AM (3 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Move assignment out of condition in phpunit/includes/speed-trap-listener.php.

Follow-up to [45588] for phpunit/includes/phpunit7/speed-trap-listener.php.

See #52625.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/speed-trap-listener.php

    r47122 r50998  
    267267     */
    268268    protected function renderFooter() {
    269         if ( $hidden = $this->getHiddenCount( $this->slow ) ) {
     269        $hidden = $this->getHiddenCount( $this->slow );
     270        if ( $hidden ) {
    270271            echo sprintf( '...and there %s %s more above your threshold hidden from view', 1 === $hidden ? 'is' : 'are', $hidden );
    271272        }
Note: See TracChangeset for help on using the changeset viewer.