Make WordPress Core


Ignore:
Timestamp:
04/17/2019 12:44:12 AM (7 years ago)
Author:
SergeyBiryukov
Message:

PHPCS: Fix WPCS violations in [45220].

See #46707.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-debug-data.php

    r45220 r45221  
    393393
    394394                $info['wp-paths-sizes']['fields'] = array(
    395                         'wordpress_path'     => array(
     395                        'wordpress_path' => array(
    396396                                'label' => __( 'WordPress directory location' ),
    397397                                'value' => untrailingslashit( ABSPATH ),
    398398                        ),
    399                         'wordpress_size'     => array(
     399                        'wordpress_size' => array(
    400400                                'label' => __( 'WordPress directory size' ),
    401401                                'value' => $not_calculated,
    402402                                'debug' => 'not calculated',
    403403                        ),
    404                         'uploads_path'       => array(
     404                        'uploads_path'   => array(
    405405                                'label' => __( 'Uploads directory location' ),
    406406                                'value' => $upload_dir['basedir'],
    407407                        ),
    408                         'uploads_size'       => array(
     408                        'uploads_size'   => array(
    409409                                'label' => __( 'Uploads directory size' ),
    410410                                'value' => $not_calculated,
    411411                                'debug' => 'not calculated',
    412412                        ),
    413                         'themes_path'        => array(
     413                        'themes_path'    => array(
    414414                                'label' => __( 'Themes directory location' ),
    415415                                'value' => get_theme_root(),
    416416                        ),
    417                         'themes_size'        => array(
     417                        'themes_size'    => array(
    418418                                'label' => __( 'Themes directory size' ),
    419419                                'value' => $not_calculated,
    420420                                'debug' => 'not calculated',
    421421                        ),
    422                         'plugins_path'       => array(
     422                        'plugins_path'   => array(
    423423                                'label' => __( 'Plugins directory location' ),
    424424                                'value' => WP_PLUGIN_DIR,
    425425                        ),
    426                         'plugins_size'       => array(
     426                        'plugins_size'   => array(
    427427                                'label' => __( 'Plugins directory size' ),
    428428                                'value' => $not_calculated,
    429429                                'debug' => 'not calculated',
    430430                        ),
    431                         'database_size'      => array(
     431                        'database_size'  => array(
    432432                                'label' => __( 'Database size' ),
    433433                                'value' => $not_calculated,
    434434                                'debug' => 'not calculated',
    435435                        ),
    436                         'total_size'         => array(
     436                        'total_size'     => array(
    437437                                'label' => __( 'Total installation size' ),
    438438                                'value' => $not_calculated,
     
    12121212
    12131213                if ( null !== $size_total && $size_db > 0 ) {
    1214                         $total_size = $size_total + $size_db;
     1214                        $total_size    = $size_total + $size_db;
    12151215                        $total_size_mb = size_format( $total_size, 2 );
    12161216
Note: See TracChangeset for help on using the changeset viewer.