Passed
Push — master ( 78d773...f66cb5 )
by Sergey
03:07
created
src/LTDBeget/dns/configurator/zoneEntities/record/PtrRecord.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
src/LTDBeget/dns/configurator/zoneEntities/record/CnameRecord.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
src/LTDBeget/dns/configurator/zoneEntities/record/base/Record.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
src/LTDBeget/dns/configurator/zoneEntities/record/ARecord.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
src/LTDBeget/dns/configurator/validators/DnsZoneDomainNameValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/LTDBeget/dns/configurator/zoneEntities/Node.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -171,13 +171,13 @@
 block discarded – undo
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 */
Please login to merge, or discard this patch.