Skip to content

Commit

Permalink
fix: wpcs
Browse files Browse the repository at this point in the history
  • Loading branch information
girafffee committed Dec 4, 2023
1 parent 422a8d4 commit 344cdce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
"./vendor/bin/phpcbf -p -n --colors --standard=./phpcs.xml ."
],
"cs": "./vendor/bin/phpcs -p -s -n --colors --standard=./phpcs.xml .",
"test:wpunit": "./vendor/bin/codecept run wpunit",
"post-install-cmd": "npm install"
"test:wpunit": "./vendor/bin/codecept run wpunit"
},
"minimum-stability": "stable",
"require-dev": {
Expand Down
2 changes: 1 addition & 1 deletion modules/advanced-choices/block-types/choices-field.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,6 @@ public function get_block_renderer( $wp_block = null ) {
}

public function is_allowed_multiple(): bool {
return ! ! ( $this->block_attrs['allow_multiple'] ?? false );
return (bool) ( $this->block_attrs['allow_multiple'] ?? false );
}
}

0 comments on commit 344cdce

Please sign in to comment.