Skip to content

Commit

Permalink
clean up and linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Debian committed Dec 1, 2023
1 parent 0072f9a commit da0d9cd
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions disqus/rest-api/class-disqus-rest-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,7 @@ public function rest_sync_status( WP_REST_Request $request ) {

return $this->rest_get_response( $status );
} catch ( Exception $e ) {
error_log($e);
return $this->rest_get_error( 'There was an error fetching sync status. 150 character error message preview: ' . substr($e, 0, 150) );
return $this->rest_get_error( 'There was an error fetching sync status. 150 character error message preview: ' . substr( $e, 0, 150 ) );
}
}

Expand All @@ -305,7 +304,7 @@ public function rest_sync_enable( WP_REST_Request $request ) {

return $this->rest_get_response( $status );
} catch ( Exception $e ) {
return $this->rest_get_error( 'There was an error attempting to enable syncing. 150 character error message preview: ' . substr($e, 0, 150) );
return $this->rest_get_error( 'There was an error attempting to enable syncing. 150 character error message preview: ' . substr( $e, 0, 150 ) );
}
}

Expand All @@ -322,7 +321,7 @@ public function rest_sync_disable( WP_REST_Request $request ) {

return $this->rest_get_response( $status );
} catch ( Exception $e ) {
return $this->rest_get_error( 'There was an error attempting to disable syncing. 150 character error message preview: ' . substr($e, 0, 150) );
return $this->rest_get_error( 'There was an error attempting to disable syncing. 150 character error message preview: ' . substr( $e, 0, 150 ) );
}
}

Expand Down

0 comments on commit da0d9cd

Please sign in to comment.