@@ -38,7 +38,7 @@ |
||
38 | 38 | { |
39 | 39 | /** |
40 | 40 | * The raw VCard content. |
41 | - * |
|
41 | + * |
|
42 | 42 | * @var string |
43 | 43 | */ |
44 | 44 | protected $content; |
@@ -433,10 +433,10 @@ |
||
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,|", |
@@ -731,7 +731,7 @@ discard block |
||
731 | 731 | $contentLength = mb_strlen($this->getOutput(), $this->getCharset()); |
732 | 732 | $connection = 'close'; |
733 | 733 | |
734 | - if ((bool)$asAssociative) { |
|
734 | + if ((bool) $asAssociative) { |
|
735 | 735 | return [ |
736 | 736 | 'Content-type' => $contentType, |
737 | 737 | 'Content-Disposition' => $contentDisposition, |
@@ -940,7 +940,7 @@ discard block |
||
940 | 940 | |
941 | 941 | $matches = []; |
942 | 942 | preg_match('/os (\d+)_(\d+)\s+/', $browser, $matches); |
943 | - $version = isset($matches[1]) ? ((int)$matches[1]) : 999; |
|
943 | + $version = isset($matches[1]) ? ((int) $matches[1]) : 999; |
|
944 | 944 | |
945 | 945 | return ($version < 8); |
946 | 946 | } |
@@ -13,7 +13,7 @@ |
||
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'); |