Skip to content

Commit

Permalink
Remove unnecessary semicolons in PHP (#30780)
Browse files Browse the repository at this point in the history
  • Loading branch information
Soean authored Apr 13, 2021
1 parent d7714aa commit f2a2a68
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/class-wp-rest-menu-items-controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -1177,7 +1177,7 @@ protected function check_assign_terms_permission( $request ) {
// Invalid terms will be rejected later.
if ( ! get_term( $term_id, $taxonomy->name ) ) {
continue;
};
}

if ( ! current_user_can( 'assign_term', (int) $term_id ) ) {
return false;
Expand Down
2 changes: 1 addition & 1 deletion lib/editor-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function gutenberg_get_common_block_editor_settings() {
'slug' => $image_size_slug,
'name' => $image_size_name,
);
};
}

$settings = array(
'__unstableEnableFullSiteEditingBlocks' => gutenberg_supports_block_templates(),
Expand Down
2 changes: 1 addition & 1 deletion lib/navigation.php
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ function gutenberg_convert_menu_items_to_blocks(
}

return $blocks;
};
}

/**
* Shim that causes `wp_nav_menu()` to output a Navigation block instead of a
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/navigation-link/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ function render_block_core_navigation_link( $attributes, $content, $block ) {

if ( false !== $class_name ) {
$css_classes .= ' ' . $class_name;
};
}

$wrapper_attributes = get_block_wrapper_attributes(
array(
Expand Down

0 comments on commit f2a2a68

Please sign in to comment.