@@ -92,7 +92,7 @@ |
||
92 | 92 | Event::on( |
93 | 93 | CraftVariable::class, |
94 | 94 | CraftVariable::EVENT_INIT, |
95 | - static function (Event $event) { |
|
95 | + static function(Event $event) { |
|
96 | 96 | /** @var CraftVariable $variable */ |
97 | 97 | $variable = $event->sender; |
98 | 98 | $variable->set('icalendar', self::$variable); |
@@ -44,12 +44,12 @@ discard block |
||
44 | 44 | // Normalize the line breaks |
45 | 45 | $text = str_replace(["\n", "\r\r\n"], self::RFC2455_EOL, $text); |
46 | 46 | // Handle rich text field output, such as from Redactor, which may have line or paragraph breaks |
47 | - $text = str_replace(["</p>\r", "</P>\r"], self::RFC2455_LITERAL_NEWLINE . self::RFC2455_LITERAL_NEWLINE, $text); |
|
47 | + $text = str_replace(["</p>\r", "</P>\r"], self::RFC2455_LITERAL_NEWLINE.self::RFC2455_LITERAL_NEWLINE, $text); |
|
48 | 48 | $text = str_replace(["<br>\r", "<BR>\r", "<br />\r", "<BR />\r"], self::RFC2455_LITERAL_NEWLINE, $text); |
49 | 49 | // Split the text into separate lines |
50 | 50 | $lines = explode(self::RFC2455_EOL, $text); |
51 | 51 | foreach ($lines as $key => $line) { |
52 | - $result .= $this->icalSplit('', $line) . self::RFC2455_EOL; |
|
52 | + $result .= $this->icalSplit('', $line).self::RFC2455_EOL; |
|
53 | 53 | } |
54 | 54 | |
55 | 55 | return $result; |
@@ -97,6 +97,6 @@ discard block |
||
97 | 97 | $lines[] = $value; |
98 | 98 | } |
99 | 99 | |
100 | - return implode(self::RFC2455_EOL . self::RFC2455_TAB, $lines); |
|
100 | + return implode(self::RFC2455_EOL.self::RFC2455_TAB, $lines); |
|
101 | 101 | } |
102 | 102 | } |