Skip to content

Commit c369d89

Browse files
committed
chore: coding standards met
1 parent 1527857 commit c369d89

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

includes/mutation/class-review-update.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,18 +76,18 @@ public static function mutate_and_get_payload() {
7676
'type' => 'review',
7777
'id' => 1,
7878
'rating' => 1,
79-
'clientMutationId' => 1
79+
'clientMutationId' => 1,
8080
);
8181

8282
$payload = array();
8383
$id_parts = ! empty( $input['id'] ) ? Relay::fromGlobalId( $input['id'] ) : null;
8484
$payload['id'] = isset( $id_parts['id'] ) && absint( $id_parts['id'] ) ? absint( $id_parts['id'] ) : null;
85-
85+
8686
if ( empty( $payload['id'] ) ) {
87-
throw new UserError( __( 'The Review could not be updated', 'wp-graphql' ) );
87+
throw new UserError( __( 'The Review could not be updated', 'wp-graphql-woocommerce' ) );
8888
}
8989

90-
if ( $input !== array_intersect_key( $input, $skip ) ) {
90+
if ( array_intersect_key( $input, $skip ) !== $input ) {
9191
$resolver = CommentUpdate::mutate_and_get_payload();
9292

9393
$payload = $resolver( $input, $context, $info );

0 commit comments

Comments
 (0)