Skip to content

Commit

Permalink
fix CS errors
Browse files Browse the repository at this point in the history
  • Loading branch information
petitphp committed Jul 2, 2024
1 parent 09864e9 commit 1cff3b9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
7 changes: 6 additions & 1 deletion classes/Blocks/Acf_Block.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,12 @@ public function render( array $block, $content = '', $is_preview = false, $post_

$tpl = Helpers::load_template( 'template-admin-block-invalid' );
if ( ! empty( $tpl ) ) {
$tpl( [ 'block' => $block, 'error_messages' => $errors ] );
$tpl(
[
'block' => $block,
'error_messages' => $errors,
]
);
}

return;
Expand Down
6 changes: 5 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@
"config": {
"optimize-autoloader": true,
"preferred-install": { "*": "dist" },
"sort-packages": true
"sort-packages": true,
"allow-plugins": {
"phpro/grumphp-shim": true,
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"require-dev": {
"dealerdirect/phpcodesniffer-composer-installer": "v0.7.1",
Expand Down

0 comments on commit 1cff3b9

Please sign in to comment.