Passed
Push — master ( 822676...6f6ae9 )
by Stefan
06:52
created
SKien/VCard/VCardContact.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -436,7 +436,7 @@  discard block
 block discarded – undo
436 436
     {
437 437
         if (filter_var($strFilename, FILTER_VALIDATE_URL)) {
438 438
             // get type from extension
439
-            $strType = strtolower((string)pathinfo($strFilename, PATHINFO_EXTENSION));
439
+            $strType = strtolower((string) pathinfo($strFilename, PATHINFO_EXTENSION));
440 440
             $this->blobPortrait = 'data:image/' . $strType . ';base64,';
441 441
 
442 442
             // use curl to be independet of [allow_url_fopen] enabled on system
@@ -581,7 +581,7 @@  discard block
 block discarded – undo
581 581
                 $img = $this->imageFromString($strImage, $strType);
582 582
                 imagealphablending($img, true);
583 583
                 imagesavealpha($img, true);
584
-                $strExt = strtolower((string)pathinfo($strFilename, PATHINFO_EXTENSION));
584
+                $strExt = strtolower((string) pathinfo($strFilename, PATHINFO_EXTENSION));
585 585
                 if (strlen($strExt) == 0) {
586 586
                     $strExt = strtolower($strType);
587 587
                     $strFilename .= '.' . $strExt;
@@ -631,7 +631,7 @@  discard block
 block discarded – undo
631 631
                 $oAddr = $this->aAddress[$i];
632 632
             }
633 633
         } else {
634
-            foreach ($this->aAddress as $oAddr)    {
634
+            foreach ($this->aAddress as $oAddr) {
635 635
                 if (strpos($oAddr->getType(), $i) !== false) {
636 636
                     return $oAddr;
637 637
                 }
Please login to merge, or discard this patch.
SKien/VCard/VCard.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -102,10 +102,10 @@
 block discarded – undo
102 102
         }
103 103
         // vcf-file generation doesn't make sense if some errormessage generated before...
104 104
         if (!$bTest && ob_get_contents() == '') {
105
-            header( 'Content-Type: text/x-vCard; name=' . $strFilename);
106
-            header( 'Content-Length: ' . strlen($buffer));
107
-            header( 'Connection: close');
108
-            header( 'Content-Disposition: attachment; filename=' . $strFilename);
105
+            header('Content-Type: text/x-vCard; name=' . $strFilename);
106
+            header('Content-Length: ' . strlen($buffer));
107
+            header('Connection: close');
108
+            header('Content-Disposition: attachment; filename=' . $strFilename);
109 109
         } else {
110 110
             // output for test or in case of errors
111 111
             $buffer = str_replace(PHP_EOL, '<br>', $buffer);
Please login to merge, or discard this patch.