Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Fixing lint spacing issue
Browse files Browse the repository at this point in the history
  • Loading branch information
prettyboymp authored and mikejolley committed Nov 8, 2023
1 parent 58f0eab commit c4be15b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/StoreApi/Schemas/V1/ProductReviewSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ public function get_properties() {
* @return array
*/
public function get_item_response( $review ) {
$rating = get_comment_meta( $review->comment_ID, 'rating', true ) === '' ? null : (int) get_comment_meta( $review->comment_ID, 'rating', true );
$data = [
$rating = get_comment_meta( $review->comment_ID, 'rating', true ) === '' ? null : (int) get_comment_meta( $review->comment_ID, 'rating', true );
return [
'id' => (int) $review->comment_ID,
'date_created' => wc_rest_prepare_date_response( $review->comment_date ),
'formatted_date_created' => get_comment_date( 'F j, Y', $review->comment_ID ),
Expand All @@ -175,7 +175,5 @@ public function get_item_response( $review ) {
'verified' => wc_review_is_from_verified_owner( $review->comment_ID ),
'reviewer_avatar_urls' => rest_get_avatar_urls( $review->comment_author_email ),
];

return $data;
}
}

0 comments on commit c4be15b

Please sign in to comment.