Completed
Push — master ( ea119a...b352fa )
by Jeroen
02:18
created
examples/example.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -4,8 +4,8 @@  discard block
 block discarded – undo
4 4
  * VCard generator test - can save to file or output as a download
5 5
  */
6 6
 
7
-require_once __DIR__ . '/../vendor/autoload.php';
8
-require_once __DIR__ . '/../src/VCard.php';
7
+require_once __DIR__.'/../vendor/autoload.php';
8
+require_once __DIR__.'/../src/VCard.php';
9 9
 
10 10
 use JeroenDesloovere\VCard\VCard;
11 11
 
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 $vcard->addAddress(null, null, 'street', 'worktown', null, 'workpostcode', 'Belgium');
32 32
 $vcard->addURL('http://www.jeroendesloovere.be');
33 33
 
34
-$vcard->addPhoto(__DIR__ . '/assets/landscape.jpeg');
34
+$vcard->addPhoto(__DIR__.'/assets/landscape.jpeg');
35 35
 //$vcard->addPhoto('https://raw.githubusercontent.com/jeroendesloovere/vcard/master/tests/image.jpg');
36 36
 
37 37
 // return vcard as a string
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 return $vcard->download();
42 42
 
43 43
 // echo message
44
-echo 'A personal vCard is saved in this folder: ' . __DIR__;
44
+echo 'A personal vCard is saved in this folder: '.__DIR__;
45 45
 
46 46
 // or
47 47
 
Please login to merge, or discard this patch.
examples/example_parsing.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -4,16 +4,16 @@
 block discarded – undo
4 4
  * VCardParser test - can parse bundled VCF file into CSV
5 5
  */
6 6
 
7
-require_once __DIR__ . '/../vendor/autoload.php';
8
-require_once __DIR__ . '/../src/VCardParser.php';
7
+require_once __DIR__.'/../vendor/autoload.php';
8
+require_once __DIR__.'/../src/VCardParser.php';
9 9
 
10 10
 // load VCardParser classes
11 11
 use JeroenDesloovere\VCard\VCardParser;
12 12
 
13
-$pathToVCardExample = __DIR__ . '/assets/contacts.vcf';
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.