Passed
Push — master ( 78d773...f66cb5 )
by Sergey
03:07
created
src/LTDBeget/dns/configurator/zoneEntities/RecordAppender.php 1 patch
Spacing   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -128,8 +128,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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,
Please login to merge, or discard this patch.
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/Zone.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
     }
127 127
 
128 128
     /**
129
-     * @return Node[]
129
+     * @return \Generator
130 130
      */
131 131
     public function iterateNodes()
132 132
     {
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
 
138 138
     /**
139 139
      * @param eRecordType|null $type
140
-     * @return Record[]
140
+     * @return \Generator
141 141
      */
142 142
     public function iterateRecords(eRecordType $type = NULL)
143 143
     {
@@ -187,7 +187,7 @@  discard block
 block discarded – undo
187 187
     /**
188 188
      * Check is node by given name already exists
189 189
      *
190
-     * @param $name
190
+     * @param string $name
191 191
      * @return bool
192 192
      */
193 193
     public function isNodeExist($name) : bool
Please login to merge, or discard this patch.
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.
src/LTDBeget/dns/configurator/errors/ValidationError.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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;
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.
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/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/AaaaRecord.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.