Skip to content

Commit e69b2af

Browse files
Revert unwanted doc indention changes
1 parent 501c65e commit e69b2af

File tree

1 file changed

+33
-33
lines changed

1 file changed

+33
-33
lines changed

plugins/auto-sizes/includes/improve-calculate-sizes.php

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -220,14 +220,14 @@ function auto_sizes_calculate_better_sizes( int $id, $size, string $align, int $
220220
return $layout_width;
221221
}
222222

223-
/**
224-
* Retrieves the layout width for an alignment defined in theme.json.
225-
*
226-
* @since n.e.x.t
227-
*
228-
* @param string $alignment The alignment value.
229-
* @return string The alignment width based.
230-
*/
223+
/**
224+
* Retrieves the layout width for an alignment defined in theme.json.
225+
*
226+
* @since n.e.x.t
227+
*
228+
* @param string $alignment The alignment value.
229+
* @return string The alignment width based.
230+
*/
231231
function auto_sizes_get_layout_width( string $alignment ): string {
232232
$layout = auto_sizes_get_layout_settings();
233233

@@ -240,15 +240,15 @@ function auto_sizes_get_layout_width( string $alignment ): string {
240240
return $layout_widths[ $alignment ] ?? '';
241241
}
242242

243-
/**
244-
* Filters the context keys that a block type uses.
245-
*
246-
* @since n.e.x.t
247-
*
248-
* @param string[] $uses_context Array of registered uses context for a block type.
249-
* @param WP_Block_Type $block_type The full block type object.
250-
* @return string[] The filtered context keys used by the block type.
251-
*/
243+
/**
244+
* Filters the context keys that a block type uses.
245+
*
246+
* @since n.e.x.t
247+
*
248+
* @param string[] $uses_context Array of registered uses context for a block type.
249+
* @param WP_Block_Type $block_type The full block type object.
250+
* @return string[] The filtered context keys used by the block type.
251+
*/
252252
function auto_sizes_filter_uses_context( array $uses_context, WP_Block_Type $block_type ): array {
253253
// The list of blocks that can consume outer layout context.
254254
$consumer_blocks = array(
@@ -263,15 +263,15 @@ function auto_sizes_filter_uses_context( array $uses_context, WP_Block_Type $blo
263263
return $uses_context;
264264
}
265265

266-
/**
267-
* Modifies the block context during rendering to blocks.
268-
*
269-
* @since n.e.x.t
270-
*
271-
* @param array<string, mixed> $context Current block context.
272-
* @param array<string, mixed> $block The block being rendered.
273-
* @return array<string, mixed> Modified block context.
274-
*/
266+
/**
267+
* Modifies the block context during rendering to blocks.
268+
*
269+
* @since n.e.x.t
270+
*
271+
* @param array<string, mixed> $context Current block context.
272+
* @param array<string, mixed> $block The block being rendered.
273+
* @return array<string, mixed> Modified block context.
274+
*/
275275
function auto_sizes_filter_render_block_context( array $context, array $block ): array {
276276
// When no max alignment is set, the maximum is assumed to be 'full'.
277277
$context['max_alignment'] = $context['max_alignment'] ?? 'full';
@@ -296,13 +296,13 @@ function auto_sizes_filter_render_block_context( array $context, array $block ):
296296
return $context;
297297
}
298298

299-
/**
300-
* Retrieves the layout settings defined in theme.json.
301-
*
302-
* @since n.e.x.t
303-
*
304-
* @return array<string, mixed> Associative array of layout settings.
305-
*/
299+
/**
300+
* Retrieves the layout settings defined in theme.json.
301+
*
302+
* @since n.e.x.t
303+
*
304+
* @return array<string, mixed> Associative array of layout settings.
305+
*/
306306
function auto_sizes_get_layout_settings(): array {
307307
static $layout = array();
308308
if ( count( $layout ) === 0 ) {

0 commit comments

Comments
 (0)