ramsey/mimeparse — pull request #4 by mkantor (2012-09-11 02:26:57+00:00)
Title: Simplify terminology and behavior.

- Improve accuracy/precision of wording (including method names, variable names, and documentation) wherever possible.
- Simplify a few internal algorithms.
- Change tie-breaking behavior to use the order of the `$supported` array (mime-types closer to the beginning of the array are preferred) instead of a separate `$tieBreaker` parameter.

The public-facing (possibly backwards-incompatible) changes are as follows:
- `parseMimeType()` becomes `parseMediaRange()`.
- The message of the `UnexpectedValueException` thrown by `parseMediaRange()` is different.
- `bestMatch()` loses its `$tieBreaker` parameter, and the order of the `$supported` array becomes significant.

Apologies for the large changeset. I can try to split this up into multiple pull requests if you'd prefer, but it may take some time. Hopefully my commit history is clean enough for you to easily review.