Updated "extract method" for php.