[Joe_Crawford]I added some comments GWG. The one that concerns me most is the HTML5 lib you reference. Don't know enough about how common it is but seems like other libs are in the composer file.
[Joe_Crawford]That implies to me that the HTML parser block could be removed. But anyway, I think I expressed my thoughts. I also note that there's a php code sniffer failure you could fix with some parens in the automated testing.
GWGOkay. I'm going to do another run, and probably remove some stuff, and janboddez had the issue that made me think I need a default if it is neither JSON nor HTML