collapsed labels -> conformance + fixes for php files

still to go: tests + javascript files