Passed
Push — master ( 5ec36b...a966a8 )
by Stefan
01:45
created
SKien/VCard/VCardAddress.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -61,13 +61,13 @@  discard block
 block discarded – undo
61 61
         }
62 62
 
63 63
         // values separated by semikolon
64
-        $strValue  = ';';                                           // post office address (not supported)
65
-        $strValue .= ';';                                           // extended address (not supported)
66
-        $strValue .= $this->maskString($this->strStr) . ';';        // street (including house number)
67
-        $strValue .= $this->maskString($this->strCity) . ';';       // city
68
-        $strValue .= $this->maskString($this->strRegion) . ';';     // region
69
-        $strValue .= $this->maskString($this->strPostcode) . ';';   // postal code
70
-        $strValue .= $this->maskString($this->strCountry);          // country
64
+        $strValue  = ';'; // post office address (not supported)
65
+        $strValue .= ';'; // extended address (not supported)
66
+        $strValue .= $this->maskString($this->strStr) . ';'; // street (including house number)
67
+        $strValue .= $this->maskString($this->strCity) . ';'; // city
68
+        $strValue .= $this->maskString($this->strRegion) . ';'; // region
69
+        $strValue .= $this->maskString($this->strPostcode) . ';'; // postal code
70
+        $strValue .= $this->maskString($this->strCountry); // country
71 71
 
72 72
         return $this->buildProperty($strField, $strValue, false);
73 73
     }
@@ -87,8 +87,8 @@  discard block
 block discarded – undo
87 87
         // values separated by semikolon
88 88
         $strValue  = $this->strStr . PHP_EOL;
89 89
         $strValue .= $this->strPostcode . ' ' . $this->strCity . PHP_EOL;
90
-        if (strlen($this->strRegion) > 0 || strlen($this->strCountry) > 0 ) {
91
-            $strSep = (strlen($this->strRegion) > 0 && strlen($this->strCountry) > 0 ) ? ' - ' : '';
90
+        if (strlen($this->strRegion) > 0 || strlen($this->strCountry) > 0) {
91
+            $strSep = (strlen($this->strRegion) > 0 && strlen($this->strCountry) > 0) ? ' - ' : '';
92 92
             $strValue .= $this->strRegion . $strSep . $this->strCountry . PHP_EOL;
93 93
         }
94 94
 
@@ -114,19 +114,19 @@  discard block
 block discarded – undo
114 114
     {
115 115
         $aSplit = $this->explodeMaskedString(';', $strValue);
116 116
         if (isset($aSplit[2])) {
117
-            $this->strStr = $this->unmaskString($aSplit[2]);        // street (including house number)
117
+            $this->strStr = $this->unmaskString($aSplit[2]); // street (including house number)
118 118
         }
119 119
         if (isset($aSplit[3])) {
120
-            $this->strCity = $this->unmaskString($aSplit[3]);       // city
120
+            $this->strCity = $this->unmaskString($aSplit[3]); // city
121 121
         }
122 122
         if (isset($aSplit[4])) {
123
-            $this->strRegion = $this->unmaskString($aSplit[4]);     // region
123
+            $this->strRegion = $this->unmaskString($aSplit[4]); // region
124 124
         }
125 125
         if (isset($aSplit[5])) {
126
-            $this->strPostcode = $this->unmaskString($aSplit[5]);   // postal code
126
+            $this->strPostcode = $this->unmaskString($aSplit[5]); // postal code
127 127
         }
128 128
         if (isset($aSplit[6])) {
129
-            $this->strCountry = $this->unmaskString($aSplit[6]);    // country
129
+            $this->strCountry = $this->unmaskString($aSplit[6]); // country
130 130
         }
131 131
         if (isset($aParams['TYPE'])) {
132 132
             $this->strType = $aParams['TYPE'];
Please login to merge, or discard this patch.
SKien/VCard/VCardContact.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,9 +31,9 @@
 block discarded – undo
31 31
     use VCardHelper;
32 32
 
33 33
     /** gender: female (Microsoft specific) */
34
-    public const MS_FEMALE    = '1';
34
+    public const MS_FEMALE = '1';
35 35
     /** gender: male (Microsoft specific) */
36
-    public const MS_MALE    = '2';
36
+    public const MS_MALE = '2';
37 37
     /** Date type: string */
38 38
     public const DT_STRING = 0;
39 39
     /** Date type: unix timestamp */
Please login to merge, or discard this patch.