Make WordPress Core


Ignore:
Timestamp:
01/07/2019 09:08:03 PM (6 years ago)
Author:
joemcgill
Message:

PHPCS: Fix formatting issues.

Fixes formatting issues introduced in [44438].

See #45615.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/functions.php

    r44438 r44441  
    25752575        } elseif ( 'text/plain' === $real_mime ) {
    25762576            // A few common file types are occasionally detected as text/plain; allow those.
    2577             if ( ! in_array( $type, array(
     2577            if ( ! in_array(
     2578                $type,
     2579                array(
    25782580                    'text/plain',
    25792581                    'text/csv',
     
    25812583                    'text/tsv',
    25822584                    'text/vtt',
    2583                 ) )
     2585                )
     2586            )
    25842587            ) {
    25852588                $type = $ext = false;
    25862589            }
    2587         } elseif( 'text/rtf' === $real_mime ) {
     2590        } elseif ( 'text/rtf' === $real_mime ) {
    25882591            // Special casing for RTF files.
    2589             if ( ! in_array( $type, array(
     2592            if ( ! in_array(
     2593                $type,
     2594                array(
    25902595                    'text/rtf',
    25912596                    'text/plain',
    25922597                    'application/rtf',
    2593                 ) )
     2598                )
     2599            )
    25942600            ) {
    25952601                $type = $ext = false;
Note: See TracChangeset for help on using the changeset viewer.