| @@ -25,18 +25,17 @@ | ||
| 25 | 25 | [ |
| 26 | 26 | 'type' => 'success', |
| 27 | 27 | 'size_in_bytes' => $this->get_file_size( $file_url ), |
| 28 | 28 | ], |
| 29 | - 200 | |
| 29 | + 200, | |
| 30 | 30 | ); |
| 31 | - } | |
| 32 | - catch ( WPSEO_File_Size_Exception $exception ) { | |
| 31 | + } catch ( WPSEO_File_Size_Exception $exception ) { | |
| 33 | 32 | return new WP_REST_Response( |
| 34 | 33 | [ |
| 35 | 34 | 'type' => 'failure', |
| 36 | 35 | 'response' => $exception->getMessage(), |
| 37 | 36 | ], |
| 38 | - 404 | |
| 37 | + 404, | |
| 39 | 38 | ); |
| 40 | 39 | } |
| 41 | 40 | } |
| 42 | 41 | |
| @@ -99,8 +98,8 @@ | ||
| 99 | 98 | protected function calculate_file_size( $file_url ) { |
| 100 | 99 | return WPSEO_Image_Utils::get_file_size( |
| 101 | 100 | [ |
| 102 | 101 | 'path' => $file_url, |
| 103 | - ] | |
| 102 | + ], | |
| 104 | 103 | ); |
| 105 | 104 | } |
| 106 | 105 | } |