reformat RTMediaQuery.php file code