diff options
author | Ivan Enderlin <ivan.enderlin@hoa-project.net> | 2012-11-28 18:46:19 +0100 |
---|---|---|
committer | Ivan Enderlin <ivan.enderlin@hoa-project.net> | 2012-11-28 18:46:19 +0100 |
commit | 27618d2c15e1df13c76ac5847a976f114f3de841 (patch) | |
tree | 1ef9067b780d55a6c1d3f08bb8aa94980c79be77 | |
parent | 7e1c3ff966223a51f02a2b2b441b2bebd3ec0b7b (diff) | |
download | Dns-27618d2c15e1df13c76ac5847a976f114f3de841.zip Dns-27618d2c15e1df13c76ac5847a976f114f3de841.tar.gz Dns-27618d2c15e1df13c76ac5847a976f114f3de841.tar.bz2 |
Update variable names.
-rw-r--r-- | Dns.php | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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. |