Make WordPress Core

Changeset 54210


Ignore:
Timestamp:
09/19/2022 07:49:47 PM (2 years ago)
Author:
desrosj
Message:

Coding Standards: Various alignment fixes from composer format.

Follow up to [53874], [54097], [54110], [54155], [54162], [54184].

See #39210, #55443, #56288, #56092, #56408, #56467, #55881.

Location:
trunk/src/wp-includes
Files:
7 edited

Legend:

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

    r54162 r54210  
    429429        if ( '' !== $actual_css ) {
    430430            $block_classes['css'] = $actual_css;
    431             $global_styles[]  = $block_classes;
     431            $global_styles[]      = $block_classes;
    432432        }
    433433    }
     
    494494
    495495    if ( isset( $editor_settings['__experimentalFeatures']['spacing']['spacingSizes'] ) ) {
    496         $spacing_sizes_by_origin  = $editor_settings['__experimentalFeatures']['spacing']['spacingSizes'];
     496        $spacing_sizes_by_origin         = $editor_settings['__experimentalFeatures']['spacing']['spacingSizes'];
    497497        $editor_settings['spacingSizes'] = isset( $spacing_sizes_by_origin['custom'] ) ?
    498498            $spacing_sizes_by_origin['custom'] : (
  • trunk/src/wp-includes/block-template-utils.php

    r54184 r54210  
    553553
    554554    $theme          = $terms[0]->name;
    555     $template_file = _get_block_template_file( $post->post_type, $post->post_name );
     555    $template_file  = _get_block_template_file( $post->post_type, $post->post_name );
    556556    $has_theme_file = wp_get_theme()->get_stylesheet() === $theme && null !== $template_file;
    557557
  • trunk/src/wp-includes/class-wp-block-type.php

    r54158 r54210  
    348348        }
    349349
    350         $new_name = $name . '_handles';
     350        $new_name             = $name . '_handles';
    351351        $this->{$new_name}[0] = $value;
    352352    }
  • trunk/src/wp-includes/class-wp-image-editor-gd.php

    r54097 r54210  
    311311        }
    312312
    313         $this->size = $orig_size;
     313        $this->size      = $orig_size;
    314314        $this->size_name = $orig_size_name;
    315315
  • trunk/src/wp-includes/cron.php

    r54110 r54210  
    11281128    }
    11291129
    1130     $crons = _get_cron_array();
     1130    $crons    = _get_cron_array();
    11311131    $gmt_time = microtime( true );
    1132     $results = array();
     1132    $results  = array();
    11331133
    11341134    foreach ( $crons as $timestamp => $cronhooks ) {
  • trunk/src/wp-includes/l10n.php

    r54199 r54210  
    12711271
    12721272    $locale = determine_locale();
    1273     $path = $wp_textdomain_registry->get( $domain, $locale );
     1273    $path   = $wp_textdomain_registry->get( $domain, $locale );
    12741274    if ( ! $path ) {
    12751275        return false;
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-block-types-controller.php

    r54155 r54210  
    257257        }
    258258
    259         $schema            = $this->get_item_schema();
     259        $schema = $this->get_item_schema();
    260260        // Fields deprecated in WordPress 6.1, but left in the schema for backwards compatibility.
    261261        $deprecated_fields = array(
     
    689689                    'readonly'    => true,
    690690                ),
    691                 'keywords'         => $keywords_definition,
    692                 'example'          => $example_definition,
     691                'keywords'              => $keywords_definition,
     692                'example'               => $example_definition,
    693693            ),
    694694        );
    695695
    696696        // Properties deprecated in WordPress 6.1, but left in the schema for backwards compatibility.
    697         $deprecated_properties = array(
     697        $deprecated_properties      = array(
    698698            'editor_script' => array(
    699699                'description' => __( 'Editor script handle. DEPRECATED: Use `editor_script_handles` instead.' ),
Note: See TracChangeset for help on using the changeset viewer.