Passed
Branch v4 (e14255)
by Andrew
05:38
created
Category
src/ICalendar.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/services/Convert.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -44,12 +44,12 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.