Make WordPress Core

Changeset 58408


Ignore:
Timestamp:
06/13/2024 03:04:50 PM (2 years ago)
Author:
desrosj
Message:

Coding Standards: Apply changes after running composer format.

This applies several formatting related changes made while running composer format.

Follow up to [55720], [58171], [58271], [58282], [58283], [58292], [58299], [58303], [58332].
See #51857, #60719, #60895, #61021, #61118, #61228, #61276, #61324.

Location:
trunk/src
Files:
9 edited

Legend:

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

    r58310 r58408  
    490490                                        'debug' => 'loading...',
    491491                                ),
    492                                 'fonts_path'   => array(
     492                                'fonts_path'     => array(
    493493                                        'label' => __( 'Fonts directory location' ),
    494494                                        'value' => wp_get_font_dir()['basedir'],
    495495                                ),
    496                                 'fonts_size'   => array(
     496                                'fonts_size'     => array(
    497497                                        'label' => __( 'Fonts directory size' ),
    498498                                        'value' => $loading,
  • trunk/src/wp-admin/includes/class-wp-site-health.php

    r58338 r58408  
    18451845                                size_format( 20 * MB_IN_BYTES )
    18461846                        );
    1847                         $result['status']      = 'critical';
     1847                        $result['status'] = 'critical';
    18481848                } elseif ( $available_space < 100 * MB_IN_BYTES ) {
    18491849                        $result['description'] = sprintf(
     
    18521852                                size_format( 100 * MB_IN_BYTES )
    18531853                        );
    1854                         $result['status']      = 'recommended';
     1854                        $result['status'] = 'recommended';
    18551855                }
    18561856
     
    27722772                                        'test'  => 'available_updates_disk_space',
    27732773                                ),
    2774                                 'autoloaded_options' => array(
     2774                                'autoloaded_options'           => array(
    27752775                                        'label' => __( 'Autoloaded options' ),
    27762776                                        'test'  => 'autoloaded_options',
  • trunk/src/wp-admin/themes.php

    r58405 r58408  
    232232                ),
    233233                'l10n'     => array(
    234                         'addNew'            => __( 'Add New Theme' ),
    235                         'search'            => __( 'Search installed themes' ),
     234                        'addNew'        => __( 'Add New Theme' ),
     235                        'search'        => __( 'Search installed themes' ),
    236236                        /* translators: %d: Number of themes. */
    237                         'themesFound'       => __( 'Number of Themes found: %d' ),
    238                         'noThemesFound'     => __( 'No themes found. Try a different search.' ),
     237                        'themesFound'   => __( 'Number of Themes found: %d' ),
     238                        'noThemesFound' => __( 'No themes found. Try a different search.' ),
    239239                ),
    240240        )
  • trunk/src/wp-includes/block-supports/typography.php

    r58314 r58408  
    559559
    560560        // Fallback to global settings as default.
    561         $global_settings             = wp_get_global_settings();
    562         $settings                    = wp_parse_args(
     561        $global_settings = wp_get_global_settings();
     562        $settings        = wp_parse_args(
    563563                $settings,
    564564                $global_settings
  • trunk/src/wp-includes/blocks.php

    r58356 r58408  
    11531153        }
    11541154
    1155         $attributes = array();
     1155        $attributes            = array();
    11561156        $ignored_hooked_blocks = get_post_meta( $post->ID, '_wp_ignored_hooked_blocks', true );
    11571157        if ( ! empty( $ignored_hooked_blocks ) ) {
     
    15851585                } else {
    15861586                        if ( ! empty( $blocks[ $i ]['innerBlocks'] ) ) {
    1587                                 $prev_inner_content          = $inner_content;
    1588                                 $inner_content               = $blocks[ $i ]['innerContent'];
    1589                                 $blocks[ $i ]['innerBlocks'] = resolve_pattern_blocks(
     1587                                $prev_inner_content           = $inner_content;
     1588                                $inner_content                = $blocks[ $i ]['innerContent'];
     1589                                $blocks[ $i ]['innerBlocks']  = resolve_pattern_blocks(
    15901590                                        $blocks[ $i ]['innerBlocks']
    15911591                                );
    15921592                                $blocks[ $i ]['innerContent'] = $inner_content;
    1593                                 $inner_content               = $prev_inner_content;
     1593                                $inner_content                = $prev_inner_content;
    15941594                        }
    15951595                        ++$i;
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-block-patterns-controller.php

    r58303 r58408  
    165165                // Resolve pattern blocks so they don't need to be resolved client-side
    166166                // in the editor, improving performance.
    167                 $blocks        = parse_blocks( $item['content'] );
    168                 $blocks        = resolve_pattern_blocks( $blocks );
     167                $blocks          = parse_blocks( $item['content'] );
     168                $blocks          = resolve_pattern_blocks( $blocks );
    169169                $item['content'] = serialize_blocks( $blocks );
    170170
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-themes-controller.php

    r58282 r58408  
    476476                                        'readonly'    => true,
    477477                                ),
    478                                 'template_uri'       => array(
     478                                'template_uri'   => array(
    479479                                        'description' => __( 'The uri for the theme\'s template directory. If this is a child theme, this refers to the parent theme, otherwise this is the same as the theme\'s stylesheet directory.' ),
    480480                                        'type'        => 'string',
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php

    r58283 r58408  
    7979                        '/' . $this->rest_base . '/(?P<id>[\d]+)',
    8080                        array(
    81                                 'args'   => array(
     81                                'args'        => array(
    8282                                        'id' => array(
    8383                                                'description' => __( 'Unique identifier for the user.' ),
  • trunk/src/wp-includes/script-loader.php

    r58322 r58408  
    9191        $vendor_scripts = array(
    9292                'react',
    93                 'react-dom' => array( 'react' ),
     93                'react-dom'         => array( 'react' ),
    9494                'react-jsx-runtime' => array( 'react' ),
    9595                'regenerator-runtime',
Note: See TracChangeset for help on using the changeset viewer.