from here and till 882 line i think it must be also in separated method named smth. like ```parseAcceptTypes``` with good php-docs explaining.