@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | } |
| 139 | 139 | } |
| 140 | 140 | // set preferred address also as default postal address for MS |
| 141 | - $buffer .= $this->buildProperty('X-MS-OL-DEFAULT-POSTAL-ADDRESS', (string) ($iPref + 1)); |
|
| 141 | + $buffer .= $this->buildProperty('X-MS-OL-DEFAULT-POSTAL-ADDRESS', (string)($iPref + 1)); |
|
| 142 | 142 | |
| 143 | 143 | return $buffer; |
| 144 | 144 | } |
@@ -199,9 +199,9 @@ discard block |
||
| 199 | 199 | protected function buildAdditionalData() : string |
| 200 | 200 | { |
| 201 | 201 | // personal data |
| 202 | - $buffer = $this->buildProperty('BDAY', $this->oContact->getDateOfBirth()); /** @phpstan-ignore-line */ |
|
| 202 | + $buffer = $this->buildProperty('BDAY', $this->oContact->getDateOfBirth()); /** @phpstan-ignore-line */ |
|
| 203 | 203 | if ($this->oContact->getGender() > 0) { |
| 204 | - $buffer .= $this->buildProperty('X-WAB-GENDER', (string) $this->oContact->getGender()); |
|
| 204 | + $buffer .= $this->buildProperty('X-WAB-GENDER', (string)$this->oContact->getGender()); |
|
| 205 | 205 | } |
| 206 | 206 | // annotation |
| 207 | 207 | $buffer .= $this->buildProperty('NOTE', $this->oContact->getNote()); |
@@ -190,7 +190,7 @@ discard block |
||
| 190 | 190 | { |
| 191 | 191 | if (filter_var($strFilename, FILTER_VALIDATE_URL)) { |
| 192 | 192 | // get type from extension |
| 193 | - $strType = strtolower((string) pathinfo($strFilename, PATHINFO_EXTENSION)); |
|
| 193 | + $strType = strtolower((string)pathinfo($strFilename, PATHINFO_EXTENSION)); |
|
| 194 | 194 | $this->blobPortrait = 'data:image/' . $strType . ';base64,'; |
| 195 | 195 | |
| 196 | 196 | // use curl to be independet of [allow_url_fopen] enabled on the system |
@@ -361,7 +361,7 @@ discard block |
||
| 361 | 361 | $img = $this->imageFromString($strImage, $strType); |
| 362 | 362 | imagealphablending($img, true); |
| 363 | 363 | imagesavealpha($img, true); |
| 364 | - $strExt = strtolower((string) pathinfo($strFilename, PATHINFO_EXTENSION)); |
|
| 364 | + $strExt = strtolower((string)pathinfo($strFilename, PATHINFO_EXTENSION)); |
|
| 365 | 365 | if (strlen($strExt) == 0) { |
| 366 | 366 | $strExt = strtolower($strType); |
| 367 | 367 | $strFilename .= '.' . $strExt; |
@@ -252,8 +252,8 @@ discard block |
||
| 252 | 252 | $height = 0; |
| 253 | 253 | if (substr($header, 0, 4) == "424d") { |
| 254 | 254 | $parts = str_split($header, 2); |
| 255 | - $width = (int) hexdec($parts[19] . $parts[18]); |
|
| 256 | - $height = (int) hexdec($parts[23] . $parts[22]); |
|
| 255 | + $width = (int)hexdec($parts[19] . $parts[18]); |
|
| 256 | + $height = (int)hexdec($parts[23] . $parts[22]); |
|
| 257 | 257 | unset($parts); |
| 258 | 258 | } |
| 259 | 259 | $x = 0; |
@@ -276,9 +276,9 @@ discard block |
||
| 276 | 276 | } |
| 277 | 277 | } |
| 278 | 278 | $i_pos = $i * 2; |
| 279 | - $r = (int) hexdec($body[$i_pos + 4] . $body[$i_pos + 5]); |
|
| 280 | - $g = (int) hexdec($body[$i_pos + 2] . $body[$i_pos + 3]); |
|
| 281 | - $b = (int) hexdec($body[$i_pos] . $body[$i_pos + 1]); |
|
| 279 | + $r = (int)hexdec($body[$i_pos + 4] . $body[$i_pos + 5]); |
|
| 280 | + $g = (int)hexdec($body[$i_pos + 2] . $body[$i_pos + 3]); |
|
| 281 | + $b = (int)hexdec($body[$i_pos] . $body[$i_pos + 1]); |
|
| 282 | 282 | $color = imagecolorallocate($img, $r, $g, $b); |
| 283 | 283 | if ($color !== false) { |
| 284 | 284 | imagesetpixel($img, $x, $height - $y, $color); |