Skip to content

Commit

Permalink
Fix minor PHPCS and PCP issues
Browse files Browse the repository at this point in the history
  • Loading branch information
2ndkauboy committed Nov 8, 2024
1 parent 0f0974c commit 6859ca2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .distignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
composer.json
composer.lock
.distignore
.editorconfig
Expand Down
2 changes: 1 addition & 1 deletion src/lib/ProvenExpertEmbeds/AbstractProvenExpertEmbed.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function get_embed_markup( $args ) {

if ( is_wp_error( $response_body ) ) {
$error_data = $response_body->get_error_data();
if ( isset( $error_data['errors'] ) && in_array( 'wrong plan', $error_data['errors'] ) ) {
if ( isset( $error_data['errors'] ) && in_array( 'wrong plan', $error_data['errors'], true ) ) {
if ( current_user_can( 'edit_theme_options' ) ) {
return sprintf(
'<div style="border-left: 4px solid red; padding: 10px; background: #eee;">%s</div>',
Expand Down

0 comments on commit 6859ca2

Please sign in to comment.