Skip to content

Commit 0a4997a

Browse files
committed
Fix formatting
1 parent 66e826a commit 0a4997a

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
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: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,20 @@ 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() ); ?>>
46-
<div id="<?php echo esc_attr( $container_id ); ?>"
47-
style="<?php echo esc_attr( $style_attr ); ?>">
49+
<div id="<?php echo esc_attr( $container_id ); ?>" style="<?php echo esc_attr( $style_attr ); ?>">
4850
<?php // Iframe will be rendered here. ?>
4951
</div>
5052
<script>

0 commit comments

Comments
 (0)