Completed
Branch BUG/php-linting (7df46a)
by
unknown
05:24 queued 03:22
created
ui/browser/checkins/entities/CheckinStatusDashicon.php 1 patch
Indentation   +84 added lines, -84 removed lines patch added patch discarded remove patch
@@ -16,98 +16,98 @@
 block discarded – undo
16 16
  */
17 17
 class CheckinStatusDashicon
18 18
 {
19
-    /**
20
-     * @var int $checkin_status
21
-     */
22
-    private $checkin_status;
19
+	/**
20
+	 * @var int $checkin_status
21
+	 */
22
+	private $checkin_status;
23 23
 
24 24
 
25
-    /**
26
-     * CheckinStatusDashicon constructor.
27
-     *
28
-     * @param int $checkin_status
29
-     */
30
-    public function __construct($checkin_status = EE_Checkin::status_checked_never)
31
-    {
32
-        $this->checkin_status = $checkin_status;
33
-    }
25
+	/**
26
+	 * CheckinStatusDashicon constructor.
27
+	 *
28
+	 * @param int $checkin_status
29
+	 */
30
+	public function __construct($checkin_status = EE_Checkin::status_checked_never)
31
+	{
32
+		$this->checkin_status = $checkin_status;
33
+	}
34 34
 
35 35
 
36
-    /**
37
-     * @param EE_Checkin $checkin
38
-     * @return CheckinStatusDashicon
39
-     * @throws EE_Error
40
-     */
41
-    public static function fromCheckin(EE_Checkin $checkin)
42
-    {
43
-        return new CheckinStatusDashicon(
44
-            $checkin->status()
45
-                ? EE_Checkin::status_checked_in
46
-                : EE_Checkin::status_checked_out
47
-        );
48
-    }
36
+	/**
37
+	 * @param EE_Checkin $checkin
38
+	 * @return CheckinStatusDashicon
39
+	 * @throws EE_Error
40
+	 */
41
+	public static function fromCheckin(EE_Checkin $checkin)
42
+	{
43
+		return new CheckinStatusDashicon(
44
+			$checkin->status()
45
+				? EE_Checkin::status_checked_in
46
+				: EE_Checkin::status_checked_out
47
+		);
48
+	}
49 49
 
50 50
 
51
-    /**
52
-     * @param EE_Registration $registration
53
-     * @param EE_Datetime     $datetime
54
-     * @return CheckinStatusDashicon
55
-     * @throws EE_Error
56
-     */
57
-    public static function fromRegistrationAndDatetime(EE_Registration $registration, EE_Datetime $datetime)
58
-    {
59
-        return new CheckinStatusDashicon(
60
-            $registration->check_in_status_for_datetime(
61
-                $datetime->ID()
62
-            )
63
-        );
64
-    }
51
+	/**
52
+	 * @param EE_Registration $registration
53
+	 * @param EE_Datetime     $datetime
54
+	 * @return CheckinStatusDashicon
55
+	 * @throws EE_Error
56
+	 */
57
+	public static function fromRegistrationAndDatetime(EE_Registration $registration, EE_Datetime $datetime)
58
+	{
59
+		return new CheckinStatusDashicon(
60
+			$registration->check_in_status_for_datetime(
61
+				$datetime->ID()
62
+			)
63
+		);
64
+	}
65 65
 
66 66
 
67
-    /**
68
-     * @param EE_Registration $registration
69
-     * @param int             $DTT_ID
70
-     * @return CheckinStatusDashicon
71
-     * @throws EE_Error
72
-     */
73
-    public static function fromRegistrationAndDatetimeId(EE_Registration $registration, $DTT_ID = 0)
74
-    {
75
-        return new CheckinStatusDashicon(
76
-            $registration->check_in_status_for_datetime(
77
-                absint($DTT_ID)
78
-            )
79
-        );
80
-    }
67
+	/**
68
+	 * @param EE_Registration $registration
69
+	 * @param int             $DTT_ID
70
+	 * @return CheckinStatusDashicon
71
+	 * @throws EE_Error
72
+	 */
73
+	public static function fromRegistrationAndDatetimeId(EE_Registration $registration, $DTT_ID = 0)
74
+	{
75
+		return new CheckinStatusDashicon(
76
+			$registration->check_in_status_for_datetime(
77
+				absint($DTT_ID)
78
+			)
79
+		);
80
+	}
81 81
 
82
-    /**
83
-     * Will return the correct set of dashicon css classes for the set checkin status
84
-     *
85
-     * @return string
86
-     */
87
-    public function cssClasses()
88
-    {
89
-        if ($this->checkin_status === EE_Checkin::status_checked_in) {
90
-            return "ee-dashicons ee-icon-check-in checkin-icons checkedin-status-{$this->checkin_status}";
91
-        }
92
-        if ($this->checkin_status === EE_Checkin::status_checked_out) {
93
-            return "ee-dashicons ee-icon-check-out checkin-icons checkedin-status-{$this->checkin_status}";
94
-        }
95
-        return "dashicons dashicons-no checkin-icons checkedin-status-{$this->checkin_status}";
96
-    }
82
+	/**
83
+	 * Will return the correct set of dashicon css classes for the set checkin status
84
+	 *
85
+	 * @return string
86
+	 */
87
+	public function cssClasses()
88
+	{
89
+		if ($this->checkin_status === EE_Checkin::status_checked_in) {
90
+			return "ee-dashicons ee-icon-check-in checkin-icons checkedin-status-{$this->checkin_status}";
91
+		}
92
+		if ($this->checkin_status === EE_Checkin::status_checked_out) {
93
+			return "ee-dashicons ee-icon-check-out checkin-icons checkedin-status-{$this->checkin_status}";
94
+		}
95
+		return "dashicons dashicons-no checkin-icons checkedin-status-{$this->checkin_status}";
96
+	}
97 97
 
98
-    /**
99
-     * returns a description for the Checkin Status Dashicon that can be used in List Table Legends
100
-     *
101
-     * @return string
102
-     */
103
-    public function legendLabel()
104
-    {
105
-        if ($this->checkin_status === EE_Checkin::status_checked_in) {
106
-            return esc_html__('This Registrant has been Checked In', 'event_espresso');
107
-        }
108
-        if ($this->checkin_status === EE_Checkin::status_checked_out) {
109
-            return esc_html__('This Registrant has been Checked Out', 'event_espresso');
110
-        }
111
-        return esc_html__('No Check-in Record has been Created for this Registrant', 'event_espresso');
112
-    }
98
+	/**
99
+	 * returns a description for the Checkin Status Dashicon that can be used in List Table Legends
100
+	 *
101
+	 * @return string
102
+	 */
103
+	public function legendLabel()
104
+	{
105
+		if ($this->checkin_status === EE_Checkin::status_checked_in) {
106
+			return esc_html__('This Registrant has been Checked In', 'event_espresso');
107
+		}
108
+		if ($this->checkin_status === EE_Checkin::status_checked_out) {
109
+			return esc_html__('This Registrant has been Checked Out', 'event_espresso');
110
+		}
111
+		return esc_html__('No Check-in Record has been Created for this Registrant', 'event_espresso');
112
+	}
113 113
 }
Please login to merge, or discard this patch.