Skip to content

Commit ea6179b

Browse files
committed
Fix formatting
1 parent 66e826a commit ea6179b

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

composer.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Block/block.php

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,16 @@ function render( array $attributes ): string {
3333
ob_start();
3434
$container_id = 'wp-block-automattic-chatrix-container';
3535

36-
$style = array(
36+
$style = array(
3737
'height' => "{$attributes['height']['value']}{$attributes['height']['unit']}",
3838
);
3939
$style_attr = '';
40-
array_walk($style, function($value, $key) use(&$style_attr) {
41-
$style_attr .= "$key: $value;";
42-
});
40+
array_walk(
41+
$style,
42+
function ( $value, $key ) use ( &$style_attr ) {
43+
$style_attr .= "$key: $value;";
44+
}
45+
);
4346

4447
?>
4548
<div <?php echo wp_kses_data( get_block_wrapper_attributes() ); ?>>

0 commit comments

Comments
 (0)