aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2015-05-04 20:15:45 +0200
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2015-05-05 09:29:51 +0200
commit56758a4f70725d7a86f94bd353c899604e192c9c (patch)
treec452162f85d75d951e0e3695fe6c531110be6ba0 /README.md
parentf4edcdf1999ab587894c33dce26e4c4a435c05ce (diff)
downloadDns-56758a4f70725d7a86f94bd353c899604e192c9c.zip
Dns-56758a4f70725d7a86f94bd353c899604e192c9c.tar.gz
Dns-56758a4f70725d7a86f94bd353c899604e192c9c.tar.bz2
Move to PSR-1 and PSR-2.
Diffstat (limited to 'README.md')
-rw-r--r--README.md9
1 files changed, 5 insertions, 4 deletions
diff --git a/README.md b/README.md
index 389cdd7..b6ba985 100644
--- a/README.md
+++ b/README.md
@@ -66,11 +66,12 @@ file:
$dns = new Hoa\Dns\Resolver(
new Hoa\Socket\Server('udp://127.0.0.1:57005')
);
-$dns->on('query', function ( Hoa\Core\Event\Bucket $bucket ) {
-
+$dns->on('query', function (Hoa\Core\Event\Bucket $bucket) {
$data = $bucket->getData();
- echo 'Resolving domain ', $data['domain'],
- ' of type ', $data['type'], "\n";
+
+ echo
+ 'Resolving domain ', $data['domain'],
+ ' of type ', $data['type'], "\n";
return '127.0.0.1';
});