Completed
Push — master ( 15fa36...139bf1 )
by Tim
10:38 queued 08:31
created
Classes/Command/ImportCommandController.php 3 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -86,12 +86,12 @@
 block discarded – undo
86 86
             try {
87 87
                 $startDateTime = new \DateTime($icalEvent['DTSTART']);
88 88
                 if($icalEvent['DTEND']) {
89
-                	$endDateTime = new \DateTime($icalEvent['DTEND']);
90
-				}
89
+                    $endDateTime = new \DateTime($icalEvent['DTEND']);
90
+                }
91 91
                 else {
92
-                	$endDateTime = clone($startDateTime);
93
-                	$endDateTime->add(new \DateInterval($icalEvent['DURATION']));
94
-				}
92
+                    $endDateTime = clone($startDateTime);
93
+                    $endDateTime->add(new \DateInterval($icalEvent['DURATION']));
94
+                }
95 95
             } catch (\Exception $ex) {
96 96
                 $this->enqueueMessage(
97 97
                     'Could not convert the date in the right format of "' . $icalEvent['SUMMARY'] . '"',
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
             $endDateTime = null;
86 86
             try {
87 87
                 $startDateTime = new \DateTime($icalEvent['DTSTART']);
88
-                if($icalEvent['DTEND']) {
88
+                if ($icalEvent['DTEND']) {
89 89
                 	$endDateTime = new \DateTime($icalEvent['DTEND']);
90 90
 				}
91 91
                 else {
@@ -129,6 +129,6 @@  discard block
 block discarded – undo
129 129
             );
130 130
         }
131 131
 
132
-        return (array) (new \ICal($absoluteIcalFile))->events();
132
+        return (array)(new \ICal($absoluteIcalFile))->events();
133 133
     }
134 134
 }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -87,8 +87,7 @@
 block discarded – undo
87 87
                 $startDateTime = new \DateTime($icalEvent['DTSTART']);
88 88
                 if($icalEvent['DTEND']) {
89 89
                 	$endDateTime = new \DateTime($icalEvent['DTEND']);
90
-				}
91
-                else {
90
+				} else {
92 91
                 	$endDateTime = clone($startDateTime);
93 92
                 	$endDateTime->add(new \DateInterval($icalEvent['DURATION']));
94 93
 				}
Please login to merge, or discard this patch.