@@ -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 | } |
@@ -5,7 +5,7 @@ |
||
| 5 | 5 | |
| 6 | 6 | return static function(ECSConfig $ecsConfig): void { |
| 7 | 7 | $ecsConfig->paths([ |
| 8 | - __DIR__ . '/src', |
|
| 8 | + __DIR__.'/src', |
|
| 9 | 9 | __FILE__, |
| 10 | 10 | ]); |
| 11 | 11 | $ecsConfig->parallel(); |