From 10e10cd13011cd7233e0f0fb2795e8808c5daa11 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Sun, 25 Aug 2019 20:45:44 +0200 Subject: [PATCH] cs-fix --- lib/NativeDecoder.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/NativeDecoder.php b/lib/NativeDecoder.php index 9919a8c..84bbbae 100644 --- a/lib/NativeDecoder.php +++ b/lib/NativeDecoder.php @@ -97,7 +97,7 @@ class NativeDecoder { /** @var \LibDNS\Records\Types\DomainName $domainName */ $domainName = $this->typeBuilder->build(Types::DOMAIN_NAME); - $labels = \explode('.', rtrim($name, '.')); + $labels = \explode('.', \rtrim($name, '.')); $domainName->setLabels($labels); $question = $this->questionFactory->create($type); @@ -187,7 +187,7 @@ class NativeDecoder if (!$encodingContext->isTruncated()) { /** @var \LibDNS\Records\Types\DomainName $domainName */ $domainName = $this->typeBuilder->build(Types::DOMAIN_NAME); - $labels = \explode('.', rtrim($record['host'], '.')); + $labels = \explode('.', \rtrim($record['host'], '.')); $domainName->setLabels($labels); $packet = $encodingContext->getPacket();