Passed
Branch new-version (b56215)
by Jeroen
02:23
created
src/Formatter/Property/NameFormatter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,8 +20,8 @@
 block discarded – undo
20 20
 
21 21
     public function getVcfString(): string
22 22
     {
23
-        return $this->name->getNode() . ':' . $this->escape(
24
-            $this->name->getFirstName() . ';' . $this->name->getAdditional() . ';' . $this->name->getLastName() . ';' . $this->name->getPrefix() . ';' . $this->name->getSuffix()
23
+        return $this->name->getNode().':'.$this->escape(
24
+            $this->name->getFirstName().';'.$this->name->getAdditional().';'.$this->name->getLastName().';'.$this->name->getPrefix().';'.$this->name->getSuffix()
25 25
         );
26 26
     }
27 27
 }
Please login to merge, or discard this patch.
src/Formatter/Property/AddressFormatter.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -19,14 +19,14 @@
 block discarded – undo
19 19
 
20 20
     public function getVcfString(): string
21 21
     {
22
-        return $this->address->getNode() . ':' . $this->escape(
22
+        return $this->address->getNode().':'.$this->escape(
23 23
             $this->address->getPostOfficeBox()
24
-            . ';' . $this->address->getExtendedAddress()
25
-            . ';' . $this->address->getStreetAddress()
26
-            . ';' . $this->address->getLocality()
27
-            . ';' . $this->address->getRegion()
28
-            . ';' . $this->address->getPostalCode()
29
-            . ';' . $this->address->getCountryName()
24
+            . ';'.$this->address->getExtendedAddress()
25
+            . ';'.$this->address->getStreetAddress()
26
+            . ';'.$this->address->getLocality()
27
+            . ';'.$this->address->getRegion()
28
+            . ';'.$this->address->getPostalCode()
29
+            . ';'.$this->address->getCountryName()
30 30
         );
31 31
     }
32 32
 }
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
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
     {
27 27
         if (!$property->isAllowedMultipleTimes() && $this->hasProperty(get_class($property))) {
28 28
             throw new \RuntimeException(
29
-                'The property "' . get_class($property) . '" you are trying to add can only be added once.'
29
+                'The property "'.get_class($property).'" you are trying to add can only be added once.'
30 30
             );
31 31
         }
32 32
 
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
             return $this->properties;
47 47
         }
48 48
 
49
-        return array_filter($this->properties, function (PropertyInterface $property) use ($filterByPropertyClass) {
49
+        return array_filter($this->properties, function(PropertyInterface $property) use ($filterByPropertyClass) {
50 50
             return $property instanceof $filterByPropertyClass;
51 51
         });
52 52
     }
Please login to merge, or discard this patch.
src/Exception/VCardException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
     public static function forWrongValue(string $value, array $possibleValues): self
15 15
     {
16 16
         return new self(
17
-            'The given type "' . $value . '" is not allowed. Possible values are: ' . implode(', ', $possibleValues)
17
+            'The given type "'.$value.'" is not allowed. Possible values are: '.implode(', ', $possibleValues)
18 18
         );
19 19
     }
20 20
 }
Please login to merge, or discard this patch.
src/Formatter/VcfFormatter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,13 +17,13 @@
 block discarded – undo
17 17
         foreach ($vCards as $vCard) {
18 18
             $string .= "BEGIN:VCARD\r\n";
19 19
             $string .= "VERSION:4.0\r\n";
20
-            $string .= 'REV:' . date('Y-m-d') . 'T' . date('H:i:s') . "Z\r\n";
20
+            $string .= 'REV:'.date('Y-m-d').'T'.date('H:i:s')."Z\r\n";
21 21
 
22 22
             /**
23 23
              * @var PropertyInterface $property
24 24
              */
25 25
             foreach ($vCard->getProperties() as $property) {
26
-                $string .= $this->fold($property->getFormatter()->getVcfString() . "\r\n");
26
+                $string .= $this->fold($property->getFormatter()->getVcfString()."\r\n");
27 27
             }
28 28
 
29 29
             $string .= "END:VCARD\r\n";
Please login to merge, or discard this patch.
src/Formatter/Formatter.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -66,14 +66,14 @@  discard block
 block discarded – undo
66 66
 
67 67
     public function getFullFileName(): string
68 68
     {
69
-        return $this->getFileName() . '.' . $this->formatter->getFileExtension();
69
+        return $this->getFileName().'.'.$this->formatter->getFileExtension();
70 70
     }
71 71
 
72 72
     public function getHeaders(): array
73 73
     {
74 74
         return [
75
-            'Content-type' => $this->formatter->getContentType() . '; charset=' . $this->getCharset(),
76
-            'Content-Disposition' => 'attachment; filename=' . $this->getFullFileName(),
75
+            'Content-type' => $this->formatter->getContentType().'; charset='.$this->getCharset(),
76
+            'Content-Disposition' => 'attachment; filename='.$this->getFullFileName(),
77 77
             'Content-Length' => mb_strlen($this->getContent(), $this->getCharset()),
78 78
             'Connection' => 'close',
79 79
         ];
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
     {
89 89
         try {
90 90
             $savedBytes = file_put_contents(
91
-                rtrim($toPath, '/') . '/' . $this->getFullFileName(),
91
+                rtrim($toPath, '/').'/'.$this->getFullFileName(),
92 92
                 $this->getContent()
93 93
             );
94 94
 
Please login to merge, or discard this patch.
src/Formatter/Property/NoteFormatter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,6 +18,6 @@
 block discarded – undo
18 18
 
19 19
     public function getVcfString(): string
20 20
     {
21
-        return $this->note->getNode() . ':' . $this->escape($this->note->getValue());
21
+        return $this->note->getNode().':'.$this->escape($this->note->getValue());
22 22
     }
23 23
 }
Please login to merge, or discard this patch.