@@ -64,8 +64,7 @@ discard block |
||
64 | 64 | * @param int $expire |
65 | 65 | * @param int $minimum |
66 | 66 | */ |
67 | - public function __construct |
|
68 | - ( |
|
67 | + public function __construct( |
|
69 | 68 | Node $node, |
70 | 69 | int $ttl, |
71 | 70 | string $mName, |
@@ -92,7 +91,7 @@ discard block |
||
92 | 91 | */ |
93 | 92 | public function __toString() : string |
94 | 93 | { |
95 | - return $this->getMainRecordPart() . ' ' . implode(' ', [ |
|
94 | + return $this->getMainRecordPart().' '.implode(' ', [ |
|
96 | 95 | $this->getMName(), |
97 | 96 | $this->getRName(), |
98 | 97 | $this->getSerial(), |
@@ -44,7 +44,7 @@ |
||
44 | 44 | */ |
45 | 45 | public function __toString() : string |
46 | 46 | { |
47 | - return $this->getMainRecordPart() . ' ' . $this->getCname(); |
|
47 | + return $this->getMainRecordPart().' '.$this->getCname(); |
|
48 | 48 | } |
49 | 49 | |
50 | 50 | /** |
@@ -44,7 +44,7 @@ |
||
44 | 44 | */ |
45 | 45 | public function __toString() : string |
46 | 46 | { |
47 | - return $this->getMainRecordPart() . ' ' . $this->getAddress(); |
|
47 | + return $this->getMainRecordPart().' '.$this->getAddress(); |
|
48 | 48 | } |
49 | 49 | |
50 | 50 | /** |
@@ -44,7 +44,7 @@ |
||
44 | 44 | */ |
45 | 45 | public function __toString() : string |
46 | 46 | { |
47 | - return $this->getMainRecordPart() . ' ' . $this->getAddress(); |
|
47 | + return $this->getMainRecordPart().' '.$this->getAddress(); |
|
48 | 48 | } |
49 | 49 | |
50 | 50 | /** |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | private function sanitizeTxtData(string $txtData) : string |
46 | 46 | { |
47 | 47 | $txtDataArray = explode('\"', trim($txtData, '"')); |
48 | - $txtDataArray = array_map(function ($value) { |
|
48 | + $txtDataArray = array_map(function($value) { |
|
49 | 49 | return str_replace('"', '\"', $value); |
50 | 50 | }, $txtDataArray); |
51 | 51 | |
@@ -58,19 +58,19 @@ discard block |
||
58 | 58 | public function __toString() : string |
59 | 59 | { |
60 | 60 | $spited_string = str_split($this->getTxtData(), 255); |
61 | - $spited_with_quotes = array_map(function ($value) { |
|
61 | + $spited_with_quotes = array_map(function($value) { |
|
62 | 62 | return "\"$value\""; |
63 | 63 | }, $spited_string); |
64 | 64 | |
65 | - $char_sets = implode("\n", $spited_with_quotes); |
|
65 | + $char_sets = implode("\n", $spited_with_quotes); |
|
66 | 66 | |
67 | 67 | if (count($spited_with_quotes) > 1) { |
68 | - $rdataString = " ( \n" . $char_sets . "\n ) \n"; |
|
68 | + $rdataString = " ( \n".$char_sets."\n ) \n"; |
|
69 | 69 | } else { |
70 | - $rdataString = ' ' . $char_sets; |
|
70 | + $rdataString = ' '.$char_sets; |
|
71 | 71 | } |
72 | 72 | |
73 | - return $this->getMainRecordPart() . $rdataString; |
|
73 | + return $this->getMainRecordPart().$rdataString; |
|
74 | 74 | } |
75 | 75 | |
76 | 76 | /** |
@@ -11,7 +11,6 @@ |
||
11 | 11 | |
12 | 12 | /** |
13 | 13 | * Class ErrorCode |
14 | - |
|
15 | 14 | * |
16 | 15 | *@package beget\lib\dns\lib\errors |
17 | 16 | * @method static eErrorCode WRONG_ORIGIN() |