Completed
Pull Request — master (#136)
by
unknown
02:41
created
src/VCardParser.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
 {
39 39
     /**
40 40
      * The raw VCard content.
41
-    *
41
+     *
42 42
      * @var string
43 43
      */
44 44
     protected $content;
Please login to merge, or discard this patch.
tests/VCardTest.php 2 patches
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.
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -78,17 +78,17 @@
 block discarded – undo
78 78
     public function testAddAddress()
79 79
     {
80 80
         $this->assertEquals($this->vcard, $this->vcard->addAddress(
81
-          '',
82
-          '88th Floor',
83
-          '555 East Flours Street',
84
-          'Los Angeles',
85
-          'CA',
86
-          '55555',
87
-          'USA'
81
+            '',
82
+            '88th Floor',
83
+            '555 East Flours Street',
84
+            'Los Angeles',
85
+            'CA',
86
+            '55555',
87
+            'USA'
88 88
         ));
89
-      $this->assertContains('ADR;WORK;POSTAL;CHARSET=utf-8:;88th Floor;555 East Flours Street;Los Angele', $this->vcard->getOutput());
90
-      // Should fold on row 75, so we should not see the full address.
91
-      $this->assertNotContains('ADR;WORK;POSTAL;CHARSET=utf-8:;88th Floor;555 East Flours Street;Los Angeles;CA;55555;', $this->vcard->getOutput());
89
+        $this->assertContains('ADR;WORK;POSTAL;CHARSET=utf-8:;88th Floor;555 East Flours Street;Los Angele', $this->vcard->getOutput());
90
+        // Should fold on row 75, so we should not see the full address.
91
+        $this->assertNotContains('ADR;WORK;POSTAL;CHARSET=utf-8:;88th Floor;555 East Flours Street;Los Angeles;CA;55555;', $this->vcard->getOutput());
92 92
     }
93 93
 
94 94
     public function testAddBirthday()
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   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
 
230 230
         $this->setProperty(
231 231
             'socialmedia',
232
-            'X-SOCIALPROFILE;type=' . (($type != '') ? $type : '' ),
232
+            'X-SOCIALPROFILE;type=' . (($type != '') ? $type : ''),
233 233
             $url
234 234
         );
235 235
 
@@ -775,7 +775,7 @@  discard block
 block discarded – undo
775 775
         $contentLength = mb_strlen($this->getOutput(), '8bit');
776 776
         $connection = 'close';
777 777
 
778
-        if ((bool)$asAssociative) {
778
+        if ((bool) $asAssociative) {
779 779
             return [
780 780
                 'Content-type' => $contentType,
781 781
                 'Content-Disposition' => $contentDisposition,
@@ -984,7 +984,7 @@  discard block
 block discarded – undo
984 984
 
985 985
         $matches = [];
986 986
         preg_match('/os (\d+)_(\d+)\s+/', $browser, $matches);
987
-        $version = isset($matches[1]) ? ((int)$matches[1]) : 999;
987
+        $version = isset($matches[1]) ? ((int) $matches[1]) : 999;
988 988
 
989 989
         return ($version < 8);
990 990
     }
Please login to merge, or discard this patch.