Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Changes per #163 #166
This is my proposed addition for a Parser->getInlineParts() method, with Parser->getMessageBody() changed to return ->getInlineParts() or an empty string if no parts match (not so sure about that... may need to return null?)
I've added in tests using the examples provided.
I've also modified the exception thrown by getMessageBody() to specify htmlEmbedded as a valid $type to match the code.