Skip to content

Commit

Permalink
PHP linter: space out according the standard (#28629)
Browse files Browse the repository at this point in the history
  • Loading branch information
nosolosw authored and noisysocks committed Feb 8, 2021
1 parent 2fc8bb8 commit 60626bf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions lib/class-wp-rest-pattern-directory-controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -271,9 +271,9 @@ public function get_collection_params() {
$query_params['context']['default'] = 'view';

$query_params['category'] = array(
'description' => __( 'Limit results to those matching a category ID.', 'gutenberg' ),
'type' => 'integer',
'minimum' => 1,
'description' => __( 'Limit results to those matching a category ID.', 'gutenberg' ),
'type' => 'integer',
'minimum' => 1,
);

/**
Expand Down
6 changes: 3 additions & 3 deletions lib/class-wp-theme-json.php
Original file line number Diff line number Diff line change
Expand Up @@ -271,15 +271,15 @@ class WP_Theme_JSON {
'value' => array( 'border', 'radius' ),
'support' => array( '__experimentalBorder', 'radius' ),
),
'borderColor' => array(
'borderColor' => array(
'value' => array( 'border', 'color' ),
'support' => array( '__experimentalBorder', 'color' ),
),
'borderWidth' => array(
'borderWidth' => array(
'value' => array( 'border', 'width' ),
'support' => array( '__experimentalBorder', 'width' ),
),
'borderStyle' => array(
'borderStyle' => array(
'value' => array( 'border', 'style' ),
'support' => array( '__experimentalBorder', 'style' ),
),
Expand Down
2 changes: 1 addition & 1 deletion lib/global-styles.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ function gutenberg_experimental_global_styles_get_theme_support_settings( $setti
$theme_settings['settings'][ $all_blocks ]['spacing'] = array();
}
$theme_settings['settings'][ $all_blocks ]['spacing']['customPadding'] = $settings['enableCustomSpacing'];
} else if ( current( (array) get_theme_support( 'custom-spacing' ) ) ) {
} elseif ( current( (array) get_theme_support( 'custom-spacing' ) ) ) {
if ( ! isset( $theme_settings['settings'][ $all_blocks ]['spacing'] ) ) {
$theme_settings['settings'][ $all_blocks ]['spacing'] = array();
}
Expand Down

0 comments on commit 60626bf

Please sign in to comment.