Passed
Push — addIntervalForBefrijdingsdag ( b5e81e...27ae7d )
by Andreas
01:35
created
src/CalendarDayFactory.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -38,22 +38,22 @@
 block discarded – undo
38 38
 
39 39
 class CalendarDayFactory
40 40
 {
41
-	public static function createCalendarDay(int $day, int $month, string $calendar): CalendarDay
42
-	{
43
-		if (!Calendar::isValidCalendarName($calendar)) {
44
-			throw new UnknownCalendar(sprintf(
45
-				'The calendar %s is not known to the ICU',
46
-				$calendar
47
-			));
48
-		}
49
-		$icuCalendar = IntlCalendar::createInstance('UTC', '@calendar=' . $calendar);
41
+    public static function createCalendarDay(int $day, int $month, string $calendar): CalendarDay
42
+    {
43
+        if (!Calendar::isValidCalendarName($calendar)) {
44
+            throw new UnknownCalendar(sprintf(
45
+                'The calendar %s is not known to the ICU',
46
+                $calendar
47
+            ));
48
+        }
49
+        $icuCalendar = IntlCalendar::createInstance('UTC', '@calendar=' . $calendar);
50 50
 
51
-		if ($icuCalendar === null) {
52
-			throw new UnknownCalendar(sprintf(
53
-				'The %s calendar could not be created',
54
-				$calendar
55
-			));
56
-		}
57
-		return new CalendarDay($day, $month, $icuCalendar);
58
-	}
51
+        if ($icuCalendar === null) {
52
+            throw new UnknownCalendar(sprintf(
53
+                'The %s calendar could not be created',
54
+                $calendar
55
+            ));
56
+        }
57
+        return new CalendarDay($day, $month, $icuCalendar);
58
+    }
59 59
 }
Please login to merge, or discard this patch.