@@ -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 | /** |
@@ -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 | /** |
@@ -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 | /** |
@@ -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 | /** |
@@ -21,7 +21,7 @@ |
||
21 | 21 | public static function validate(string $hostname) : bool |
22 | 22 | { |
23 | 23 | $hostname = preg_replace('/^\*\./', '', $hostname); |
24 | - if(in_array($hostname, ['@', '*', '.'])) { |
|
24 | + if (in_array($hostname, ['@', '*', '.'])) { |
|
25 | 25 | return true; |
26 | 26 | } |
27 | 27 |
@@ -171,13 +171,13 @@ |
||
171 | 171 | $errorsStore->add(ValidationError::makeNodeError($this, eErrorCode::MULTIPLE_CNAME_ERROR())); |
172 | 172 | } |
173 | 173 | |
174 | - if ($this->getName() === "@" && ! SoaNumberCheck::validate($this)) { |
|
174 | + if ($this->getName() === "@" && !SoaNumberCheck::validate($this)) { |
|
175 | 175 | $errorsStore->add(ValidationError::makeNodeError($this, eErrorCode::SOA_ERROR())); |
176 | 176 | } |
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 */ |