Completed
Branch feature/session-life-span (a4eb75)
by
unknown
26:03 queued 19:01
created
caffeinated/admin/extend/registration_form/forms/SessionLifespanForm.php 1 patch
Indentation   +44 added lines, -44 removed lines patch added patch discarded remove patch
@@ -12,51 +12,51 @@
 block discarded – undo
12 12
 
13 13
 class SessionLifespanForm extends EE_Form_Section_Proper
14 14
 {
15
-    /**
16
-     * @var SessionLifespanOption
17
-     */
18
-    private $sessionLifespanOption;
15
+	/**
16
+	 * @var SessionLifespanOption
17
+	 */
18
+	private $sessionLifespanOption;
19 19
 
20 20
 
21
-    /**
22
-     * SessionLifespanForm constructor.
23
-     *
24
-     * @throws EE_Error
25
-     */
26
-    public function __construct()
27
-    {
28
-        $this->sessionLifespanOption = new SessionLifespanOption();
21
+	/**
22
+	 * SessionLifespanForm constructor.
23
+	 *
24
+	 * @throws EE_Error
25
+	 */
26
+	public function __construct()
27
+	{
28
+		$this->sessionLifespanOption = new SessionLifespanOption();
29 29
 
30
-        parent::__construct([
31
-            'name'            => 'session_lifespan',
32
-            'html_id'         => 'session_lifespan',
33
-            'layout_strategy' => new EE_Admin_Two_Column_Layout(),
34
-            'subsections'     => apply_filters(
35
-                'FHEE__EventEspresso_caffeinated_admin_extend_registration_form_forms_SessionLifespanForm__construct__form_subsections',
36
-                [
37
-                    'session_lifespan_hdr'   => new EE_Form_Section_HTML(
38
-                        EEH_HTML::h2(esc_html__('Session Settings', 'event_espresso'))
39
-                    ),
40
-                    'session_lifespan' => new EE_Select_Input(
41
-                        [
42
-                            300     => esc_html__('Five Minutes', 'event_espresso'),
43
-                            900     => esc_html__('Fifteen Minutes', 'event_espresso'),
44
-                            1800    => esc_html__('Thirty Minutes', 'event_espresso'),
45
-                            3600    => esc_html__('One Hour', 'event_espresso'),
46
-                            7200    => esc_html__('Two Hours', 'event_espresso'),
47
-                        ],
48
-                        [
49
-                            'html_label_text' => esc_html__('Session Lifespan', 'event_espresso'),
50
-                            'html_help_text'  => esc_html__(
51
-                                'Controls how long a user has to complete the registration form. Defaults to 1 hour.',
52
-                                'event_espresso'
53
-                            ),
54
-                            'default'         => $this->sessionLifespanOption->getSessionLifespan(),
55
-                            'required'        => false,
56
-                        ]
57
-                    ),
58
-                ]
59
-            ),
60
-        ]);
61
-    }
30
+		parent::__construct([
31
+			'name'            => 'session_lifespan',
32
+			'html_id'         => 'session_lifespan',
33
+			'layout_strategy' => new EE_Admin_Two_Column_Layout(),
34
+			'subsections'     => apply_filters(
35
+				'FHEE__EventEspresso_caffeinated_admin_extend_registration_form_forms_SessionLifespanForm__construct__form_subsections',
36
+				[
37
+					'session_lifespan_hdr'   => new EE_Form_Section_HTML(
38
+						EEH_HTML::h2(esc_html__('Session Settings', 'event_espresso'))
39
+					),
40
+					'session_lifespan' => new EE_Select_Input(
41
+						[
42
+							300     => esc_html__('Five Minutes', 'event_espresso'),
43
+							900     => esc_html__('Fifteen Minutes', 'event_espresso'),
44
+							1800    => esc_html__('Thirty Minutes', 'event_espresso'),
45
+							3600    => esc_html__('One Hour', 'event_espresso'),
46
+							7200    => esc_html__('Two Hours', 'event_espresso'),
47
+						],
48
+						[
49
+							'html_label_text' => esc_html__('Session Lifespan', 'event_espresso'),
50
+							'html_help_text'  => esc_html__(
51
+								'Controls how long a user has to complete the registration form. Defaults to 1 hour.',
52
+								'event_espresso'
53
+							),
54
+							'default'         => $this->sessionLifespanOption->getSessionLifespan(),
55
+							'required'        => false,
56
+						]
57
+					),
58
+				]
59
+			),
60
+		]);
61
+	}
62 62
 }
Please login to merge, or discard this patch.