Completed
Branch feature/checkins-to-csv (914601)
by
unknown
10:17 queued 08:06
created
domain/services/admin/registrations/list_table/csv_reports/CheckinsCSV.php 1 patch
Indentation   +49 added lines, -49 removed lines patch added patch discarded remove patch
@@ -17,57 +17,57 @@
 block discarded – undo
17 17
 class CheckinsCSV
18 18
 {
19 19
 
20
-    /**
21
-     * Returns datetime label
22
-     *
23
-     * @param EE_Datetime $datetime
24
-     * @return string
25
-     * @throws EE_Error
26
-     * @throws ReflectionException
27
-     */
28
-    public static function getDatetineLabel(EE_Datetime $datetime)
29
-    {
30
-        if (trim($datetime->get('DTT_name'))) {
31
-            /* translators: 1: datetime name, 2: datetime ID */
32
-            return sprintf(
33
-                esc_html__('Check-ins for %1$s - ID: %2$s', 'event_espresso'),
34
-                esc_html($datetime->get('DTT_name')),
35
-                esc_html($datetime->get('DTT_ID'))
36
-            );
37
-        }
20
+	/**
21
+	 * Returns datetime label
22
+	 *
23
+	 * @param EE_Datetime $datetime
24
+	 * @return string
25
+	 * @throws EE_Error
26
+	 * @throws ReflectionException
27
+	 */
28
+	public static function getDatetineLabel(EE_Datetime $datetime)
29
+	{
30
+		if (trim($datetime->get('DTT_name'))) {
31
+			/* translators: 1: datetime name, 2: datetime ID */
32
+			return sprintf(
33
+				esc_html__('Check-ins for %1$s - ID: %2$s', 'event_espresso'),
34
+				esc_html($datetime->get('DTT_name')),
35
+				esc_html($datetime->get('DTT_ID'))
36
+			);
37
+		}
38 38
 
39
-        /* translators: %s: datetime ID */
40
-        return sprintf(
41
-            esc_html__('ID: %1$s', 'event_espresso'),
42
-            esc_html($datetime->get('DTT_ID'))
43
-        );
44
-    }
39
+		/* translators: %s: datetime ID */
40
+		return sprintf(
41
+			esc_html__('ID: %1$s', 'event_espresso'),
42
+			esc_html($datetime->get('DTT_ID'))
43
+		);
44
+	}
45 45
 
46 46
 
47
-    /**
48
-     * Returns checkin value using checkin status and datetime
49
-     *
50
-     * @param EE_Checkin $checkin
51
-     * @return string|null
52
-     * @throws EE_Error
53
-     * @throws ReflectionException
54
-     */
55
-    public static function getCheckinValue(?EE_Checkin $checkin)
56
-    {
57
-        if ($checkin instanceof EE_Checkin && $checkin->get('CHK_in') === true) {
58
-            /* translators: 1: check-in timestamp */
59
-            return sprintf(
60
-                esc_html__('IN: %1$s', 'event_espresso'),
61
-                $checkin->get_datetime('CHK_timestamp', 'Y-m-d', 'g:i a')
62
-            );
63
-        } elseif ($checkin instanceof EE_Checkin && $checkin->get('CHK_in') === false) {
64
-            /* translators: 1: check-in timestamp */
65
-            return sprintf(
66
-                esc_html__('OUT: %1$s', 'event_espresso'),
67
-                $checkin->get_datetime('CHK_timestamp', 'Y-m-d', 'g:i a')
68
-            );
69
-        }
47
+	/**
48
+	 * Returns checkin value using checkin status and datetime
49
+	 *
50
+	 * @param EE_Checkin $checkin
51
+	 * @return string|null
52
+	 * @throws EE_Error
53
+	 * @throws ReflectionException
54
+	 */
55
+	public static function getCheckinValue(?EE_Checkin $checkin)
56
+	{
57
+		if ($checkin instanceof EE_Checkin && $checkin->get('CHK_in') === true) {
58
+			/* translators: 1: check-in timestamp */
59
+			return sprintf(
60
+				esc_html__('IN: %1$s', 'event_espresso'),
61
+				$checkin->get_datetime('CHK_timestamp', 'Y-m-d', 'g:i a')
62
+			);
63
+		} elseif ($checkin instanceof EE_Checkin && $checkin->get('CHK_in') === false) {
64
+			/* translators: 1: check-in timestamp */
65
+			return sprintf(
66
+				esc_html__('OUT: %1$s', 'event_espresso'),
67
+				$checkin->get_datetime('CHK_timestamp', 'Y-m-d', 'g:i a')
68
+			);
69
+		}
70 70
 
71
-        return '';
72
-    }
71
+		return '';
72
+	}
73 73
 }
Please login to merge, or discard this patch.