Completed
Pull Request — master (#161)
by lee
03:25
created
tests/VCardTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -433,10 +433,10 @@
 block discarded – undo
433 433
         $method_handler = $class_handler->getMethod('chunk_split_unicode');
434 434
         $method_handler->setAccessible(true);
435 435
 
436
-        $ascii_input="Lorem ipsum dolor sit amet,";
437
-        $ascii_output = $method_handler->invokeArgs(new VCard(), [$ascii_input,10,'|']);
438
-        $unicode_input='Τη γλώσσα μου έδωσαν ελληνική το σπίτι φτωχικό στις αμμουδιές του Ομήρου.';
439
-        $unicode_output = $method_handler->invokeArgs(new VCard(), [$unicode_input,10,'|']);
436
+        $ascii_input = "Lorem ipsum dolor sit amet,";
437
+        $ascii_output = $method_handler->invokeArgs(new VCard(), [$ascii_input, 10, '|']);
438
+        $unicode_input = 'Τη γλώσσα μου έδωσαν ελληνική το σπίτι φτωχικό στις αμμουδιές του Ομήρου.';
439
+        $unicode_output = $method_handler->invokeArgs(new VCard(), [$unicode_input, 10, '|']);
440 440
 
441 441
         $this->assertEquals(
442 442
             "Lorem ipsu|m dolor si|t amet,|",
Please login to merge, or discard this patch.
examples/example_parsing.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
 $pathToVCardExample = __DIR__ . '/assets/contacts.vcf';
14 14
 $parser = VCardParser::parseFromFile($pathToVCardExample);
15 15
 
16
-foreach($parser as $vcard) {
16
+foreach ($parser as $vcard) {
17 17
     $lastname = $vcard->lastname;
18 18
     $firstname = $vcard->firstname;
19 19
     $birthday = $vcard->birthday->format('Y-m-d');
Please login to merge, or discard this patch.
src/VCard.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -755,7 +755,7 @@  discard block
 block discarded – undo
755 755
         $contentLength = mb_strlen($this->getOutput(), '8bit');
756 756
         $connection = 'close';
757 757
 
758
-        if ((bool)$asAssociative) {
758
+        if ((bool) $asAssociative) {
759 759
             return [
760 760
                 'Content-type' => $contentType,
761 761
                 'Content-Disposition' => $contentDisposition,
@@ -964,7 +964,7 @@  discard block
 block discarded – undo
964 964
 
965 965
         $matches = [];
966 966
         preg_match('/os (\d+)_(\d+)\s+/', $browser, $matches);
967
-        $version = isset($matches[1]) ? ((int)$matches[1]) : 999;
967
+        $version = isset($matches[1]) ? ((int) $matches[1]) : 999;
968 968
 
969 969
         return ($version < 8);
970 970
     }
Please login to merge, or discard this patch.