Skip to content

Commit

Permalink
Convert quotes to single quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
ben221199 committed Feb 20, 2025
1 parent e3d1cde commit 8560dea
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/Fields/CharacterString.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class CharacterString implements Field{
*/
public function __construct(string $value){
if(strlen($value)>255){
throw new DNSFieldException("Character string can have 255 characters at most.");
throw new DNSFieldException('Character string can have 255 characters at most.');
}
$this->value = $value;
}
Expand Down Expand Up @@ -52,6 +52,7 @@ public function serializeToWireFormat(): string{
/**
* @param string $data
* @return CharacterString
* @throws DNSFieldException
*/
public static function deserializeFromPresentationFormat(string $data): CharacterString{
$isQuoted = ($data[0] ?? null)===self::QUOTE;
Expand Down
2 changes: 1 addition & 1 deletion src/Fields/IPv6Address.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public static function deserializeFromPresentationFormat(string $data): IPv6Addr
*/
public static function deserializeFromWireFormat(string $data): IPv6Address{
if(strlen($data)!==16){
throw new DNSFieldException("Binary IPv6 address should be 16 octets.");
throw new DNSFieldException('Binary IPv6 address should be 16 octets.');
}
return new self(inet_ntop($data));
}
Expand Down
2 changes: 0 additions & 2 deletions src/Types/WKS.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@
use YOCLIB\DNS\Exceptions\DNSTypeException;
use YOCLIB\DNS\Fields\Bitmap;
use YOCLIB\DNS\Fields\Field;
use YOCLIB\DNS\Fields\FQDN;
use YOCLIB\DNS\Fields\IPv4Address;
use YOCLIB\DNS\Fields\UnsignedInteger32;
use YOCLIB\DNS\Fields\UnsignedInteger8;

class WKS extends Type{
Expand Down

0 comments on commit 8560dea

Please sign in to comment.