Simplify setting `php-file-patterns` with `mapc`

Rather than a `while` loop, use the functionalerific `mapc` to add file-name
patterns to `auto-mode-alist`.