Make WordPress Core

Changeset 44441


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

PHPCS: Fix formatting issues.

Fixes formatting issues introduced in [44438].

See #45615.

Location:
trunk
Files:
2 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;
  • trunk/tests/phpunit/tests/functions.php

    r44438 r44441  
    13421342                                'crazy-cdata.jpg',
    13431343                                array(
    1344                                         'ext' => false,
    1345                                         'type' => false,
     1344                                        'ext'             => false,
     1345                                        'type'            => false,
    13461346                                        'proper_filename' => false,
    13471347                                ),
     
    13521352                                'crazy-cdata.doc',
    13531353                                array(
    1354                                         'ext' => false,
    1355                                         'type' => false,
     1354                                        'ext'             => false,
     1355                                        'type'            => false,
    13561356                                        'proper_filename' => false,
    13571357                                ),
     
    13621362                                'test.vtt',
    13631363                                array(
    1364                                         'ext' => 'vtt',
    1365                                         'type' => 'text/vtt',
     1364                                        'ext'             => 'vtt',
     1365                                        'type'            => 'text/vtt',
    13661366                                        'proper_filename' => false,
    13671367                                ),
     
    13711371                                'test.csv',
    13721372                                array(
    1373                                         'ext' => 'csv',
    1374                                         'type' => 'text/csv',
     1373                                        'ext'             => 'csv',
     1374                                        'type'            => 'text/csv',
    13751375                                        'proper_filename' => false,
    13761376                                ),
     
    13811381                                'test.rtf',
    13821382                                array(
    1383                                         'ext' => 'rtf',
    1384                                         'type' => 'application/rtf',
     1383                                        'ext'             => 'rtf',
     1384                                        'type'            => 'application/rtf',
    13851385                                        'proper_filename' => false,
    13861386                                ),
Note: See TracChangeset for help on using the changeset viewer.