@@ -128,8 +128,7 @@ discard block |
||
| 128 | 128 | * @param int|null $ttl |
| 129 | 129 | * @return RecordAppender |
| 130 | 130 | */ |
| 131 | - public function appendSoaRecord |
|
| 132 | - ( |
|
| 131 | + public function appendSoaRecord( |
|
| 133 | 132 | string $mName, |
| 134 | 133 | string $rName, |
| 135 | 134 | int $serial, |
@@ -163,8 +162,7 @@ discard block |
||
| 163 | 162 | * @param int|null $ttl |
| 164 | 163 | * @return RecordAppender |
| 165 | 164 | */ |
| 166 | - public function appendSrvRecord |
|
| 167 | - ( |
|
| 165 | + public function appendSrvRecord( |
|
| 168 | 166 | int $priority, |
| 169 | 167 | int $weight, |
| 170 | 168 | int $port, |
@@ -87,7 +87,7 @@ |
||
| 87 | 87 | |
| 88 | 88 | public function sort() |
| 89 | 89 | { |
| 90 | - usort($this->records, function (Record $a, Record $b) { |
|
| 90 | + usort($this->records, function(Record $a, Record $b) { |
|
| 91 | 91 | if ($a->getType()->is(eRecordType::SOA)) { |
| 92 | 92 | return -1; |
| 93 | 93 | } elseif ($b->getType()->is(eRecordType::SOA)) { |
@@ -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; |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | */ |
| 45 | 45 | public function __toString() : string |
| 46 | 46 | { |
| 47 | - return $this->getMainRecordPart() . " {$this->getNsdName()}"; |
|
| 47 | + return $this->getMainRecordPart()." {$this->getNsdName()}"; |
|
| 48 | 48 | } |
| 49 | 49 | |
| 50 | 50 | /** |
@@ -51,7 +51,7 @@ |
||
| 51 | 51 | */ |
| 52 | 52 | public function __toString() : string |
| 53 | 53 | { |
| 54 | - return $this->getMainRecordPart() . " {$this->getPreference()} {$this->getExchange()}"; |
|
| 54 | + return $this->getMainRecordPart()." {$this->getPreference()} {$this->getExchange()}"; |
|
| 55 | 55 | } |
| 56 | 56 | |
| 57 | 57 | /** |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | */ |
| 46 | 46 | public function __toString() : string |
| 47 | 47 | { |
| 48 | - return $this->getMainRecordPart() . " {$this->getPtrDName()}"; |
|
| 48 | + return $this->getMainRecordPart()." {$this->getPtrDName()}"; |
|
| 49 | 49 | } |
| 50 | 50 | |
| 51 | 51 | /** |
@@ -65,7 +65,7 @@ |
||
| 65 | 65 | */ |
| 66 | 66 | protected function refreshHash() |
| 67 | 67 | { |
| 68 | - $this->hash = md5(((string) $this) . $this->getNode()->getZone()->getOrigin()); |
|
| 68 | + $this->hash = md5(((string) $this).$this->getNode()->getZone()->getOrigin()); |
|
| 69 | 69 | } |
| 70 | 70 | |
| 71 | 71 | /** |
@@ -196,7 +196,7 @@ |
||
| 196 | 196 | { |
| 197 | 197 | $result = true; |
| 198 | 198 | foreach ($this->iterateNodes() as $node) { |
| 199 | - if(! $node->isEmptyNode()) { |
|
| 199 | + if (!$node->isEmptyNode()) { |
|
| 200 | 200 | $result = false; |
| 201 | 201 | } |
| 202 | 202 | } |
@@ -177,7 +177,7 @@ |
||
| 177 | 177 | |
| 178 | 178 | $isValidNodeName = DnsZoneDomainNameValidator::validate($this->getName()); |
| 179 | 179 | foreach ($this->iterateRecords() as $record) { |
| 180 | - if(!$isValidNodeName) { |
|
| 180 | + if (!$isValidNodeName) { |
|
| 181 | 181 | $errorsStore->add(ValidationError::makeRecordError($record, eErrorCode::WRONG_NODE_NAME(), 'name')); |
| 182 | 182 | } |
| 183 | 183 | /** @noinspection PhpInternalEntityUsedInspection */ |