@@ -39,7 +39,7 @@ |
||
| 39 | 39 | */ |
| 40 | 40 | public function __toString() : string |
| 41 | 41 | { |
| 42 | - return $this->getMainRecordPart() . ' ' . $this->getAddress(); |
|
| 42 | + return $this->getMainRecordPart().' '.$this->getAddress(); |
|
| 43 | 43 | } |
| 44 | 44 | |
| 45 | 45 | /** |
@@ -11,8 +11,7 @@ |
||
| 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() |
| 18 | 17 | * @method static eErrorCode WRONG_NODE_NAME() |
@@ -117,8 +117,7 @@ discard block |
||
| 117 | 117 | * @param int|null $ttl |
| 118 | 118 | * @return SoaRecord |
| 119 | 119 | */ |
| 120 | - public function appendSoaRecord |
|
| 121 | - ( |
|
| 120 | + public function appendSoaRecord( |
|
| 122 | 121 | string $mName, |
| 123 | 122 | string $rName, |
| 124 | 123 | int $serial, |
@@ -150,8 +149,7 @@ discard block |
||
| 150 | 149 | * @param int|null $ttl |
| 151 | 150 | * @return SrvRecord |
| 152 | 151 | */ |
| 153 | - public function appendSrvRecord |
|
| 154 | - ( |
|
| 152 | + public function appendSrvRecord( |
|
| 155 | 153 | int $priority, |
| 156 | 154 | int $weight, |
| 157 | 155 | int $port, |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | private function sanitizeTxtData(string $txtData) : string |
| 46 | 46 | { |
| 47 | 47 | $txtDataArray = explode('\"', $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 | /** |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | */ |
| 40 | 40 | public function __toString() : string |
| 41 | 41 | { |
| 42 | - return $this->getMainRecordPart() . ' ' . $this->getAddress(); |
|
| 42 | + return $this->getMainRecordPart().' '.$this->getAddress(); |
|
| 43 | 43 | } |
| 44 | 44 | |
| 45 | 45 | /** |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | */ |
| 130 | 130 | public function getNode() : Node |
| 131 | 131 | { |
| 132 | - if(! $this->isHasNode()) { |
|
| 132 | + if (!$this->isHasNode()) { |
|
| 133 | 133 | throw new \RuntimeException('ValidationError has no Node'); |
| 134 | 134 | } |
| 135 | 135 | return $this->node; |
@@ -148,7 +148,7 @@ discard block |
||
| 148 | 148 | */ |
| 149 | 149 | public function getRecord() : Record |
| 150 | 150 | { |
| 151 | - if(! $this->isHasRecord()) { |
|
| 151 | + if (!$this->isHasRecord()) { |
|
| 152 | 152 | throw new \RuntimeException('ValidationError has no Record'); |
| 153 | 153 | } |
| 154 | 154 | return $this->record; |