Test Failed
Push — master ( 2b068c...c84fdc )
by
unknown
46s queued 12s
created
src/LTDBeget/dns/configurator/zoneEntities/RecordsStore.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
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)) {
Please login to merge, or discard this patch.
src/LTDBeget/dns/configurator/zoneEntities/record/NsRecord.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->getNsdName()}";
47
+        return $this->getMainRecordPart()." {$this->getNsdName()}";
48 48
     }
49 49
 
50 50
     /**
Please login to merge, or discard this patch.
src/LTDBeget/dns/configurator/zoneEntities/record/MxRecord.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
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/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/Zone.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -196,7 +196,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
     }
108 108
 
109 109
     /**
110
-     * @return \Generator|Node[]
110
+     * @return \Generator
111 111
      */
112 112
     public function iterateNodes() : \Generator
113 113
     {
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
 
119 119
     /**
120 120
      * @param eRecordType|null $type
121
-     * @return \Generator|Record[]
121
+     * @return \Generator
122 122
      */
123 123
     public function iterateRecords(eRecordType $type = NULL) : \Generator
124 124
     {
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
     /**
170 170
      * Check is node by given name already exists
171 171
      *
172
-     * @param $name
172
+     * @param string $name
173 173
      * @return bool
174 174
      */
175 175
     public function isNodeExist($name) : bool
Please login to merge, or discard this patch.
src/LTDBeget/dns/configurator/zoneEntities/Node.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -177,7 +177,7 @@
 block discarded – undo
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.
src/LTDBeget/dns/configurator/zoneEntities/record/SrvRecord.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
      */
64 64
     public function __toString() : string
65 65
     {
66
-        return $this->getMainRecordPart() . ' ' .
66
+        return $this->getMainRecordPart().' '.
67 67
         implode(' ', [
68 68
             $this->getPriority(),
69 69
             $this->getWeight(),
Please login to merge, or discard this patch.
src/LTDBeget/dns/configurator/zoneEntities/record/SoaRecord.php 1 patch
Spacing   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -64,8 +64,7 @@  discard block
 block discarded – undo
64 64
      * @param int    $expire
65 65
      * @param int    $minimum
66 66
      */
67
-    public function __construct
68
-    (
67
+    public function __construct(
69 68
         Node $node,
70 69
         int $ttl,
71 70
         string $mName,
@@ -92,7 +91,7 @@  discard block
 block discarded – undo
92 91
      */
93 92
     public function __toString() : string
94 93
     {
95
-        return $this->getMainRecordPart() . ' ' . implode(' ', [
94
+        return $this->getMainRecordPart().' '.implode(' ', [
96 95
             $this->getMName(),
97 96
             $this->getRName(),
98 97
             $this->getSerial(),
Please login to merge, or discard this patch.