Passed
Push — develop ( 10def4...70caf0 )
by Andrew
08:33 queued 05:25
created
src/ICalendar.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/services/Convert.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.