MDL-46919 Fix coding style and php docs