aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIvan Enderlin <ivan.enderlin@hoa-project.net>2012-11-28 18:46:19 +0100
committerIvan Enderlin <ivan.enderlin@hoa-project.net>2012-11-28 18:46:19 +0100
commit27618d2c15e1df13c76ac5847a976f114f3de841 (patch)
tree1ef9067b780d55a6c1d3f08bb8aa94980c79be77
parent7e1c3ff966223a51f02a2b2b441b2bebd3ec0b7b (diff)
downloadDns-27618d2c15e1df13c76ac5847a976f114f3de841.zip
Dns-27618d2c15e1df13c76ac5847a976f114f3de841.tar.gz
Dns-27618d2c15e1df13c76ac5847a976f114f3de841.tar.bz2
Update variable names.
-rw-r--r--Dns.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/Dns.php b/Dns.php
index b5ddf84..01f32fa 100644
--- a/Dns.php
+++ b/Dns.php
@@ -239,14 +239,14 @@ class Dns implements \Hoa\Core\Event\Listenable {
// QTYPE.
$i += 2;
- $_type = (int) (string) ord($handle[$i]) +
+ $qtype = (int) (string) ord($handle[$i]) +
(int) (string) ord($handle[$i + 1]);
- $type = array_search($_type, static::$_types) ?: $_type;
+ $type = array_search($qtype, static::$_types) ?: $qtype;
// QCLASS.
$i += 2;
- $_class = (int) (string) ord($handle[$i]);
- $class = array_search($_class, static::$_classes) ?: $_class;
+ $qclass = (int) (string) ord($handle[$i]);
+ $class = array_search($qclass, static::$_classes) ?: $qclass;
$ips = $this->_on->fire('query', new \Hoa\Core\Event\Bucket(array(
'domain' => $domain,
@@ -329,9 +329,9 @@ class Dns implements \Hoa\Core\Event\Listenable {
// Answer.
// TYPE.
- pack('n', $_type) .
+ pack('n', $qtype) .
// CLASS.
- pack('n', $_class) .
+ pack('n', $qclass) .
// TTL.
pack('N', 60) .
// RDLENGTH.