Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ockham committed Aug 1, 2023
1 parent 87ee839 commit 8309ab4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/experimental/auto-inserting-blocks.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function gutenberg_auto_insert_block( $inserted_block, $relative_position, $anch
}

function gutenberg_add_auto_insert_field_to_block_type_controller( $inserted_block, $position, $anchor_block ) {

Check failure on line 59 in lib/experimental/auto-inserting-blocks.php

View workflow job for this annotation

GitHub Actions / PHP coding standards

Missing doc comment for function gutenberg_add_auto_insert_field_to_block_type_controller()
return function( $response, $block_type ) use ( $inserted_block, $position, $anchor_block ){
return function( $response, $block_type ) use ( $inserted_block, $position, $anchor_block ) {
if ( $block_type->name !== $inserted_block ) {
return $response;
}
Expand All @@ -66,7 +66,7 @@ function gutenberg_add_auto_insert_field_to_block_type_controller( $inserted_blo
if ( ! isset( $data['auto_insert'] ) ) {
$data['auto_insert'] = array();
}
$data['auto_insert'][ $anchor_block ] = $position ;
$data['auto_insert'][ $anchor_block ] = $position;
$response->set_data( $data );
return $response;
};
Expand Down Expand Up @@ -277,7 +277,7 @@ function gutenberg_register_auto_insert_rest_field() {
'block-type',
'auto_insert',
array(
'schema' => array(
'schema' => array(
'description' => __( 'Auto Insert.', 'default' ),
'type' => 'object',
),
Expand Down

0 comments on commit 8309ab4

Please sign in to comment.