Skip to content

Commit 6859ca2

Browse files
committed
Fix minor PHPCS and PCP issues
1 parent 0f0974c commit 6859ca2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.distignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
composer.json
12
composer.lock
23
.distignore
34
.editorconfig

src/lib/ProvenExpertEmbeds/AbstractProvenExpertEmbed.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function get_embed_markup( $args ) {
7070

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

0 commit comments

Comments
 (0)