Skip to content

Commit

Permalink
Fixes for phpcs fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
srtfisher committed Feb 28, 2024
1 parent 17822a5 commit c63b5e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/alley/wp/alleyvate/features/class-disable-comments.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public static function filter__rest_endpoints( array $endpoints ): array {
public static function filter__rest_prepare( \WP_REST_Response $response ): \WP_REST_Response {
$response->remove_link( 'replies' );

if ( is_array( $response->data ) && isset( $response->data['comment_status'] ) ) {
if ( \is_array( $response->data ) && isset( $response->data['comment_status'] ) ) {
$response->data['comment_status'] = 'closed';
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public static function action__init(): void {
* @return \WP_REST_Response Filtered response.
*/
public static function filter__rest_prepare( \WP_REST_Response $response ): \WP_REST_Response {
if ( is_array( $response->data ) && isset( $response->data['ping_status'] ) ) {
if ( \is_array( $response->data ) && isset( $response->data['ping_status'] ) ) {
$response->data['ping_status'] = 'closed';
}

Expand Down

0 comments on commit c63b5e9

Please sign in to comment.