PHPGangsta/WakeOnLAN — pull request #1 by apfelbox (2012-09-03 14:38:31+00:00)
Title: Two small suggestions

Hey,

two minor suggestions:

* use [`ctype_xdigit()`](http://sg.php.net/manual/en/function.ctype-xdigit.php) instead of custom regex. More a cosmetic improvement, but since it is already there, once can use it. It also only allows strings (`ctype_xdigit(123) === false`), `preg_match` is more careless.
* if you get an error message and an error number, pass it (via the exception) through to the caller.