PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / 28.5
Yoast SEO – Advanced SEO with real-time guidance and built-in AI v28.5
28.5 28.4 28.3 28.2 28.1 28.0 27.9 27.8 27.7 27.6 27.5 trunk 18.0 18.1 18.2 18.3 18.4 18.4.1 18.5 18.5.1 18.6 18.7 18.8 18.9 19.0 All 129 releases
← All changes | admin/services/class-file-size.php +4 -5 18.428.5 View file →
@@ -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 }