Completed
Push — main ( ed9382...1be441 )
by Andreas
14s queued 13s
created
src/CalendarDayFactory.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -39,19 +39,19 @@
 block discarded – undo
39 39
 
40 40
 class CalendarDayFactory
41 41
 {
42
-	public static function createCalendarDay(int $day, int $month, string $calendar): CalendarDay
43
-	{
44
-		if (!Calendar::isValidCalendarName($calendar)) {
45
-			throw new UnknownCalendar(sprintf(
46
-				'The calendar %s is not known to the ICU',
47
-				$calendar
48
-			));
49
-		}
50
-		$calendar = IntlCalendar::createInstance('UTC', '@calendar=' . $calendar);
51
-		if (null === $calendar) {
52
-			throw new UnexpectedValueException('Expected instance of IntlCalendar, got null');
53
-		}
42
+    public static function createCalendarDay(int $day, int $month, string $calendar): CalendarDay
43
+    {
44
+        if (!Calendar::isValidCalendarName($calendar)) {
45
+            throw new UnknownCalendar(sprintf(
46
+                'The calendar %s is not known to the ICU',
47
+                $calendar
48
+            ));
49
+        }
50
+        $calendar = IntlCalendar::createInstance('UTC', '@calendar=' . $calendar);
51
+        if (null === $calendar) {
52
+            throw new UnexpectedValueException('Expected instance of IntlCalendar, got null');
53
+        }
54 54
 
55
-		return new CalendarDay($day, $month, $calendar);
56
-	}
55
+        return new CalendarDay($day, $month, $calendar);
56
+    }
57 57
 }
Please login to merge, or discard this patch.