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