Completed
Pull Request — master (#234)
by Kristof
04:52
created
src/Calendar.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
         }
59 59
 
60 60
         if ($type->is(CalendarType::SINGLE()) && empty($endDate)) {
61
-          throw new \UnexpectedValueException('End date can not be empty for calendar type: ' . $type . '.');
61
+            throw new \UnexpectedValueException('End date can not be empty for calendar type: ' . $type . '.');
62 62
         }
63 63
 
64 64
         if ($type->is(CalendarType::PERIODIC()) && (empty($startDate) || empty($endDate))) {
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
         );
94 94
 
95 95
         $calendar = [
96
-          'type' => $this->type,
96
+            'type' => $this->type,
97 97
         ];
98 98
 
99 99
         empty($this->startDate) ?: $calendar['startDate'] = $this->startDate->format(DateTime::ATOM);
@@ -201,9 +201,9 @@  discard block
 block discarded – undo
201 201
             $jsonLd['subEvent'] = array();
202 202
             foreach ($timestamps as $timestamp) {
203 203
                 $jsonLd['subEvent'][] = array(
204
-                  '@type' => 'Event',
205
-                  'startDate' => $timestamp->getStartDate()->format(DateTime::ATOM),
206
-                  'endDate' => $timestamp->getEndDate()->format(DateTime::ATOM),
204
+                    '@type' => 'Event',
205
+                    'startDate' => $timestamp->getStartDate()->format(DateTime::ATOM),
206
+                    'endDate' => $timestamp->getEndDate()->format(DateTime::ATOM),
207 207
                 );
208 208
             }
209 209
         }
Please login to merge, or discard this patch.