Passed
Pull Request — master (#11)
by Sergey
08:31
created
src/LTDBeget/dns/configurator/zoneEntities/record/TxtRecord.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
     private function sanitizeTxtData(string $txtData) : string
46 46
     {
47 47
         $txtDataArray = explode('\"', trim($txtData, '"'));
48
-        $txtDataArray = array_map(function ($value) {
48
+        $txtDataArray = array_map(function($value) {
49 49
             return str_replace('"', '\"', $value);
50 50
         }, $txtDataArray);
51 51
 
@@ -58,19 +58,19 @@  discard block
 block discarded – undo
58 58
     public function __toString() : string
59 59
     {
60 60
         $spited_string      = str_split($this->getTxtData(), 255);
61
-        $spited_with_quotes = array_map(function ($value) {
61
+        $spited_with_quotes = array_map(function($value) {
62 62
             return "\"$value\"";
63 63
         }, $spited_string);
64 64
 
65
-        $char_sets          = implode("\n", $spited_with_quotes);
65
+        $char_sets = implode("\n", $spited_with_quotes);
66 66
 
67 67
         if (count($spited_with_quotes) > 1) {
68
-            $rdataString = " ( \n" . $char_sets . "\n ) \n";
68
+            $rdataString = " ( \n".$char_sets."\n ) \n";
69 69
         } else {
70
-            $rdataString = ' ' . $char_sets;
70
+            $rdataString = ' '.$char_sets;
71 71
         }
72 72
 
73
-        return $this->getMainRecordPart() . $rdataString;
73
+        return $this->getMainRecordPart().$rdataString;
74 74
     }
75 75
 
76 76
     /**
Please login to merge, or discard this patch.