PhD program admissions are probably most likely to consider the reputation of the applicant’s undergraduate major department, often in terms of their own experience with BA/BS graduates from that department as PhD students. Obviously, this may not necessarily match up with published rankings of schools.