Skip to content

Instantly share code, notes, and snippets.

@ciarand
Created January 15, 2015 18:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ciarand/7cbffdcee4f6174ccc91 to your computer and use it in GitHub Desktop.
Save ciarand/7cbffdcee4f6174ccc91 to your computer and use it in GitHub Desktop.
$coverage_attrs = option(simplexml_load_file("./app/coverage/coverage.xml"))
->map(method("xpath", ["/coverage/project/metrics"]))
->reject([])
->map(index(0))
->map(method("attributes"))
->get();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment