88namespace Cloudinary \Media ;
99
1010use Cloudinary \Connect \Api ;
11+ use Cloudinary \Media ;
1112use Cloudinary \Utils ;
13+ use WP_Post ;
14+ use WP_REST_Request ;
15+ use WP_REST_Response ;
1216
1317/**
1418 * Class Filter.
@@ -22,16 +26,16 @@ class Filter {
2226 *
2327 * @since 0.1
2428 *
25- * @var \Cloudinary\ Media Instance of the plugin.
29+ * @var Media Instance of the plugin.
2630 */
2731 private $ media ;
2832
2933 /**
3034 * Filter constructor.
3135 *
32- * @param \Cloudinary\ Media $media The plugin.
36+ * @param Media $media The plugin.
3337 */
34- public function __construct ( \ Cloudinary \ Media $ media ) {
38+ public function __construct ( Media $ media ) {
3539 $ this ->media = $ media ;
3640 $ this ->setup_hooks ();
3741 }
@@ -442,9 +446,9 @@ public function filter_attachment_for_js( $attachment ) {
442446 /**
443447 * Return a Cloudinary URL for an attachment used in a REST REQUEST.
444448 *
445- * @param \ WP_REST_Response $attachment The attachment array to be used in JS.
449+ * @param WP_REST_Response $attachment The attachment array to be used in JS.
446450 *
447- * @return \ WP_REST_Response
451+ * @return WP_REST_Response
448452 * @uses filter:rest_prepare_attachment
449453 */
450454 public function filter_attachment_for_rest ( $ attachment ) {
@@ -546,13 +550,13 @@ public function filter_video_embeds( $html, $id, $attachment ) {
546550 }
547551
548552 /**
549- * Filter out local urls in an 'edit' context rest request ( i.e for Gutenburg ).
553+ * Filter out local urls in an 'edit' context rest request ( i.e for Gutenberg ).
550554 *
551- * @param \ WP_REST_Response $response The post data array to save.
552- * @param \ WP_Post $post The current post.
553- * @param \ WP_REST_Request $request The request object.
555+ * @param WP_REST_Response $response The post data array to save.
556+ * @param WP_Post $post The current post.
557+ * @param WP_REST_Request $request The request object.
554558 *
555- * @return \ WP_REST_Response
559+ * @return WP_REST_Response
556560 */
557561 public function pre_filter_rest_content ( $ response , $ post , $ request ) {
558562 $ context = $ request ->get_param ( 'context ' );
0 commit comments