@@ -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 | /** |
@@ -175,7 +175,7 @@ |
||
| 175 | 175 | $errorsStore->add(ValidationError::makeNodeError($this, eErrorCode::WRONG_NODE_NAME())); |
| 176 | 176 | } |
| 177 | 177 | |
| 178 | - if ($this->getName() === "@" && ! SoaNumberCheck::validate($this)) { |
|
| 178 | + if ($this->getName() === "@" && !SoaNumberCheck::validate($this)) { |
|
| 179 | 179 | $errorsStore->add(ValidationError::makeNodeError($this, eErrorCode::SOA_ERROR())); |
| 180 | 180 | } |
| 181 | 181 | |
@@ -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 | |