Skip to content

Commit

Permalink
correct formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
manewc committed Sep 26, 2024
1 parent 400d6c6 commit 91d61c9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/api/class-jw-player-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public function get_request_args(): array {
*/
public function parse_error( array $response_object ): array {
return ! empty( $response_object['errors'] )
&& is_array($response_object['errors'] )
&& is_array( $response_object['errors'] )
&& isset( $response_object['errors'][0]->description )
? [ 'error' => $response_object['errors'][0]->description ]
: [];
Expand Down
1 change: 0 additions & 1 deletion src/interfaces/api-requester.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,4 @@ public function parse_error( array $response_object ): array;
* @return array<string, mixed>
*/
public function parse_success( array $response_object ): array;

}

0 comments on commit 91d61c9

Please sign in to comment.