Completed
Branch new-version (923b21)
by Jeroen
03:28
created
Category
src/Property/Parameter/Type.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
     {
19 19
         if (!in_array($value, self::POSSIBLE_VALUES)) {
20 20
             throw new \Exception(
21
-                'The given type "' . $value . '" is not allowed. Possible values are: ' . implode(', ', self::POSSIBLE_VALUES)
21
+                'The given type "'.$value.'" is not allowed. Possible values are: '.implode(', ', self::POSSIBLE_VALUES)
22 22
             );
23 23
         }
24 24
 
Please login to merge, or discard this patch.
src/Property/Parameter/Kind.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
     {
23 23
         if (!in_array($value, self::POSSIBLE_VALUES, true)) {
24 24
             throw new \RuntimeException(
25
-                'The given type "' . $value . '" is not allowed. Possible values are: ' . implode(', ', self::POSSIBLE_VALUES)
25
+                'The given type "'.$value.'" is not allowed. Possible values are: '.implode(', ', self::POSSIBLE_VALUES)
26 26
             );
27 27
         }
28 28
 
Please login to merge, or discard this patch.
src/Formatter/Property/NameFormatter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,8 +13,8 @@
 block discarded – undo
13 13
      */
14 14
     public function convertToVcfString(PropertyInterface $name): string
15 15
     {
16
-        return $name->getNode() . ':' . $this->escape(
17
-            $name->getFirstName() . ';' . $name->getAdditional() . ';' . $name->getLastName() . ';' . $name->getPrefix() . ';' . $name->getSuffix()
16
+        return $name->getNode().':'.$this->escape(
17
+            $name->getFirstName().';'.$name->getAdditional().';'.$name->getLastName().';'.$name->getPrefix().';'.$name->getSuffix()
18 18
         );
19 19
     }
20 20
 }
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
@@ -13,14 +13,14 @@
 block discarded – undo
13 13
      */
14 14
     public function convertToVcfString(PropertyInterface $address): string
15 15
     {
16
-        return $address->getNode() . ':' . $this->escape(
16
+        return $address->getNode().':'.$this->escape(
17 17
             $address->getPostOfficeBox()
18
-            . ';' . $address->getExtendedAddress()
19
-            . ';' . $address->getStreetAddress()
20
-            . ';' . $address->getLocality()
21
-            . ';' . $address->getRegion()
22
-            . ';' . $address->getPostalCode()
23
-            . ';' . $address->getCountryName()
18
+            . ';'.$address->getExtendedAddress()
19
+            . ';'.$address->getStreetAddress()
20
+            . ';'.$address->getLocality()
21
+            . ';'.$address->getRegion()
22
+            . ';'.$address->getPostalCode()
23
+            . ';'.$address->getCountryName()
24 24
         );
25 25
     }
26 26
 }
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
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
     {
12 12
         $string = "BEGIN:VCARD\r\n";
13 13
         $string .= "VERSION:4.0\r\n";
14
-        $string .= "REV:" . date("Y-m-d") . "T" . date("H:i:s") . "Z\r\n";
14
+        $string .= "REV:".date("Y-m-d")."T".date("H:i:s")."Z\r\n";
15 15
 
16 16
         /**
17 17
          * @var VCard $vCard
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
              * @var PropertyInterface $property
22 22
              */
23 23
             foreach ($vCard->getProperties() as $property) {
24
-                $string .= $this->fold($property->getFormatter()->convertToVcfString($property) . "\r\n");
24
+                $string .= $this->fold($property->getFormatter()->convertToVcfString($property)."\r\n");
25 25
             }
26 26
         }
27 27
 
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
@@ -65,14 +65,14 @@  discard block
 block discarded – undo
65 65
 
66 66
     public function getFullFileName(): string
67 67
     {
68
-        return $this->getFileName() . '.' . $this->formatter->getFileExtension();
68
+        return $this->getFileName().'.'.$this->formatter->getFileExtension();
69 69
     }
70 70
 
71 71
     public function getHeaders(): array
72 72
     {
73 73
         return [
74
-            'Content-type' => $this->formatter->getContentType() . '; charset=' . $this->getCharset(),
75
-            'Content-Disposition' => 'attachment; filename=' . $this->getFullFileName(),
74
+            'Content-type' => $this->formatter->getContentType().'; charset='.$this->getCharset(),
75
+            'Content-Disposition' => 'attachment; filename='.$this->getFullFileName(),
76 76
             'Content-Length' => mb_strlen($this->getContent(), $this->getCharset()),
77 77
             'Connection' => 'close',
78 78
         ];
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
     public function save(string $toPath): void
87 87
     {
88 88
         file_put_contents(
89
-            rtrim($toPath, '/') . '/' . $this->getFullFileName(),
89
+            rtrim($toPath, '/').'/'.$this->getFullFileName(),
90 90
             $this->getContent()
91 91
         );
92 92
     }
Please login to merge, or discard this patch.