Completed
Branch dependabot/npm_and_yarn/@wordp... (e9f48b)
by
unknown
60:52 queued 52:34
created
core/domain/services/registration/CancelRegistrationService.php 1 patch
Indentation   +41 added lines, -41 removed lines patch added patch discarded remove patch
@@ -16,45 +16,45 @@
 block discarded – undo
16 16
 class CancelRegistrationService
17 17
 {
18 18
 
19
-    /**
20
-     * @var CancelTicketLineItemService $cancel_ticket_line_item_service
21
-     */
22
-    private $cancel_ticket_line_item_service;
23
-
24
-
25
-    /**
26
-     * Command constructor
27
-     *
28
-     * @param CancelTicketLineItemService $cancel_ticket_line_item_service
29
-     */
30
-    public function __construct(CancelTicketLineItemService $cancel_ticket_line_item_service)
31
-    {
32
-        $this->cancel_ticket_line_item_service = $cancel_ticket_line_item_service;
33
-    }
34
-
35
-
36
-    /**
37
-     * @param \EE_Registration $registration
38
-     * @param bool             $cancel_ticket_line_item
39
-     */
40
-    public function cancelRegistrationAndTicketLineItem(\EE_Registration $registration, $cancel_ticket_line_item = true)
41
-    {
42
-        // first cancel the original line item for the registration's ticket
43
-        if ($cancel_ticket_line_item) {
44
-            $this->cancel_ticket_line_item_service->forRegistration($registration);
45
-        }
46
-        $this->cancelRegistrationOnly($registration);
47
-    }
48
-
49
-
50
-    /**
51
-     * @param \EE_Registration $registration
52
-     * @throws \EE_Error
53
-     */
54
-    public function cancelRegistrationOnly(\EE_Registration $registration)
55
-    {
56
-        // now cancel the registration itself
57
-        $registration->set_status(\EEM_Registration::status_id_cancelled);
58
-        $registration->save();
59
-    }
19
+	/**
20
+	 * @var CancelTicketLineItemService $cancel_ticket_line_item_service
21
+	 */
22
+	private $cancel_ticket_line_item_service;
23
+
24
+
25
+	/**
26
+	 * Command constructor
27
+	 *
28
+	 * @param CancelTicketLineItemService $cancel_ticket_line_item_service
29
+	 */
30
+	public function __construct(CancelTicketLineItemService $cancel_ticket_line_item_service)
31
+	{
32
+		$this->cancel_ticket_line_item_service = $cancel_ticket_line_item_service;
33
+	}
34
+
35
+
36
+	/**
37
+	 * @param \EE_Registration $registration
38
+	 * @param bool             $cancel_ticket_line_item
39
+	 */
40
+	public function cancelRegistrationAndTicketLineItem(\EE_Registration $registration, $cancel_ticket_line_item = true)
41
+	{
42
+		// first cancel the original line item for the registration's ticket
43
+		if ($cancel_ticket_line_item) {
44
+			$this->cancel_ticket_line_item_service->forRegistration($registration);
45
+		}
46
+		$this->cancelRegistrationOnly($registration);
47
+	}
48
+
49
+
50
+	/**
51
+	 * @param \EE_Registration $registration
52
+	 * @throws \EE_Error
53
+	 */
54
+	public function cancelRegistrationOnly(\EE_Registration $registration)
55
+	{
56
+		// now cancel the registration itself
57
+		$registration->set_status(\EEM_Registration::status_id_cancelled);
58
+		$registration->save();
59
+	}
60 60
 }
Please login to merge, or discard this patch.
core/domain/services/registration/UpdateRegistrationService.php 1 patch
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -15,23 +15,23 @@
 block discarded – undo
15 15
 class UpdateRegistrationService extends DomainService
16 16
 {
17 17
 
18
-    /**
19
-     * @param \EE_Registration $registration
20
-     * @return bool
21
-     */
22
-    public function updateRegistrationAndTransaction(\EE_Registration $registration)
23
-    {
24
-        $transaction = $registration->transaction();
25
-        // reset transaction status back to incomplete
26
-        $transaction->set_status(\EEM_Transaction::incomplete_status_code);
27
-        // update transaction and all line item totals and subtotals
28
-        $transaction->total_line_item()->recalculate_total_including_taxes();
29
-        // maybe update status, but don't save transaction just yet
30
-        $transaction->update_status_based_on_total_paid();
31
-        /** @type \EE_Registration_Processor $registration_processor */
32
-        $registration_processor = \EE_Registry::instance()->load_class('Registration_Processor');
33
-        $registration_processor->update_registration_final_prices($transaction);
34
-        $registration_processor->update_registration_status_and_trigger_notifications($registration);
35
-        return true;
36
-    }
18
+	/**
19
+	 * @param \EE_Registration $registration
20
+	 * @return bool
21
+	 */
22
+	public function updateRegistrationAndTransaction(\EE_Registration $registration)
23
+	{
24
+		$transaction = $registration->transaction();
25
+		// reset transaction status back to incomplete
26
+		$transaction->set_status(\EEM_Transaction::incomplete_status_code);
27
+		// update transaction and all line item totals and subtotals
28
+		$transaction->total_line_item()->recalculate_total_including_taxes();
29
+		// maybe update status, but don't save transaction just yet
30
+		$transaction->update_status_based_on_total_paid();
31
+		/** @type \EE_Registration_Processor $registration_processor */
32
+		$registration_processor = \EE_Registry::instance()->load_class('Registration_Processor');
33
+		$registration_processor->update_registration_final_prices($transaction);
34
+		$registration_processor->update_registration_status_and_trigger_notifications($registration);
35
+		return true;
36
+	}
37 37
 }
Please login to merge, or discard this patch.
core/domain/services/validation/email/strategies/WordPress.php 2 patches
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -15,19 +15,19 @@
 block discarded – undo
15 15
 class WordPress extends Basic
16 16
 {
17 17
 
18
-    /**
19
-     * @param string $email_address
20
-     * @return boolean
21
-     * @throws EmailValidationException
22
-     */
23
-    public function validate($email_address)
24
-    {
25
-        parent::validate($email_address);
26
-        if (! is_email($email_address)) {
27
-            throw new EmailValidationException(
28
-                esc_html__('The email address provided is not valid.', 'event_espresso')
29
-            );
30
-        }
31
-        return true;
32
-    }
18
+	/**
19
+	 * @param string $email_address
20
+	 * @return boolean
21
+	 * @throws EmailValidationException
22
+	 */
23
+	public function validate($email_address)
24
+	{
25
+		parent::validate($email_address);
26
+		if (! is_email($email_address)) {
27
+			throw new EmailValidationException(
28
+				esc_html__('The email address provided is not valid.', 'event_espresso')
29
+			);
30
+		}
31
+		return true;
32
+	}
33 33
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
     public function validate($email_address)
24 24
     {
25 25
         parent::validate($email_address);
26
-        if (! is_email($email_address)) {
26
+        if ( ! is_email($email_address)) {
27 27
             throw new EmailValidationException(
28 28
                 esc_html__('The email address provided is not valid.', 'event_espresso')
29 29
             );
Please login to merge, or discard this patch.
core/domain/services/validation/email/strategies/International.php 1 patch
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -15,26 +15,26 @@
 block discarded – undo
15 15
 class International extends Basic
16 16
 {
17 17
 
18
-    /**
19
-     * @param string $email_address
20
-     * @return bool
21
-     * @throws \EventEspresso\core\domain\services\validation\email\EmailValidationException
22
-     */
23
-    public function validate($email_address)
24
-    {
25
-        parent::validate($email_address);
26
-        if (// plz see http://stackoverflow.com/a/24817336 re: the following regex
27
-        ! preg_match(
28
-        // @codingStandardsIgnoreStart
29
-            '/^(?!\.)((?!.*\.{2})[a-zA-Z0-9\x{0080}-\x{00FF}\x{0100}-\x{017F}\x{0180}-\x{024F}\x{0250}-\x{02AF}\x{0300}-\x{036F}\x{0370}-\x{03FF}\x{0400}-\x{04FF}\x{0500}-\x{052F}\x{0530}-\x{058F}\x{0590}-\x{05FF}\x{0600}-\x{06FF}\x{0700}-\x{074F}\x{0750}-\x{077F}\x{0780}-\x{07BF}\x{07C0}-\x{07FF}\x{0900}-\x{097F}\x{0980}-\x{09FF}\x{0A00}-\x{0A7F}\x{0A80}-\x{0AFF}\x{0B00}-\x{0B7F}\x{0B80}-\x{0BFF}\x{0C00}-\x{0C7F}\x{0C80}-\x{0CFF}\x{0D00}-\x{0D7F}\x{0D80}-\x{0DFF}\x{0E00}-\x{0E7F}\x{0E80}-\x{0EFF}\x{0F00}-\x{0FFF}\x{1000}-\x{109F}\x{10A0}-\x{10FF}\x{1100}-\x{11FF}\x{1200}-\x{137F}\x{1380}-\x{139F}\x{13A0}-\x{13FF}\x{1400}-\x{167F}\x{1680}-\x{169F}\x{16A0}-\x{16FF}\x{1700}-\x{171F}\x{1720}-\x{173F}\x{1740}-\x{175F}\x{1760}-\x{177F}\x{1780}-\x{17FF}\x{1800}-\x{18AF}\x{1900}-\x{194F}\x{1950}-\x{197F}\x{1980}-\x{19DF}\x{19E0}-\x{19FF}\x{1A00}-\x{1A1F}\x{1B00}-\x{1B7F}\x{1D00}-\x{1D7F}\x{1D80}-\x{1DBF}\x{1DC0}-\x{1DFF}\x{1E00}-\x{1EFF}\x{1F00}-\x{1FFF}\x{20D0}-\x{20FF}\x{2100}-\x{214F}\x{2C00}-\x{2C5F}\x{2C60}-\x{2C7F}\x{2C80}-\x{2CFF}\x{2D00}-\x{2D2F}\x{2D30}-\x{2D7F}\x{2D80}-\x{2DDF}\x{2F00}-\x{2FDF}\x{2FF0}-\x{2FFF}\x{3040}-\x{309F}\x{30A0}-\x{30FF}\x{3100}-\x{312F}\x{3130}-\x{318F}\x{3190}-\x{319F}\x{31C0}-\x{31EF}\x{31F0}-\x{31FF}\x{3200}-\x{32FF}\x{3300}-\x{33FF}\x{3400}-\x{4DBF}\x{4DC0}-\x{4DFF}\x{4E00}-\x{9FFF}\x{A000}-\x{A48F}\x{A490}-\x{A4CF}\x{A700}-\x{A71F}\x{A800}-\x{A82F}\x{A840}-\x{A87F}\x{AC00}-\x{D7AF}\x{F900}-\x{FAFF}\.!#$%&\'*+-\/=?^_`{|}~\-\d]+)@(?!\.)([a-zA-Z0-9\x{0080}-\x{00FF}\x{0100}-\x{017F}\x{0180}-\x{024F}\x{0250}-\x{02AF}\x{0300}-\x{036F}\x{0370}-\x{03FF}\x{0400}-\x{04FF}\x{0500}-\x{052F}\x{0530}-\x{058F}\x{0590}-\x{05FF}\x{0600}-\x{06FF}\x{0700}-\x{074F}\x{0750}-\x{077F}\x{0780}-\x{07BF}\x{07C0}-\x{07FF}\x{0900}-\x{097F}\x{0980}-\x{09FF}\x{0A00}-\x{0A7F}\x{0A80}-\x{0AFF}\x{0B00}-\x{0B7F}\x{0B80}-\x{0BFF}\x{0C00}-\x{0C7F}\x{0C80}-\x{0CFF}\x{0D00}-\x{0D7F}\x{0D80}-\x{0DFF}\x{0E00}-\x{0E7F}\x{0E80}-\x{0EFF}\x{0F00}-\x{0FFF}\x{1000}-\x{109F}\x{10A0}-\x{10FF}\x{1100}-\x{11FF}\x{1200}-\x{137F}\x{1380}-\x{139F}\x{13A0}-\x{13FF}\x{1400}-\x{167F}\x{1680}-\x{169F}\x{16A0}-\x{16FF}\x{1700}-\x{171F}\x{1720}-\x{173F}\x{1740}-\x{175F}\x{1760}-\x{177F}\x{1780}-\x{17FF}\x{1800}-\x{18AF}\x{1900}-\x{194F}\x{1950}-\x{197F}\x{1980}-\x{19DF}\x{19E0}-\x{19FF}\x{1A00}-\x{1A1F}\x{1B00}-\x{1B7F}\x{1D00}-\x{1D7F}\x{1D80}-\x{1DBF}\x{1DC0}-\x{1DFF}\x{1E00}-\x{1EFF}\x{1F00}-\x{1FFF}\x{20D0}-\x{20FF}\x{2100}-\x{214F}\x{2C00}-\x{2C5F}\x{2C60}-\x{2C7F}\x{2C80}-\x{2CFF}\x{2D00}-\x{2D2F}\x{2D30}-\x{2D7F}\x{2D80}-\x{2DDF}\x{2F00}-\x{2FDF}\x{2FF0}-\x{2FFF}\x{3040}-\x{309F}\x{30A0}-\x{30FF}\x{3100}-\x{312F}\x{3130}-\x{318F}\x{3190}-\x{319F}\x{31C0}-\x{31EF}\x{31F0}-\x{31FF}\x{3200}-\x{32FF}\x{3300}-\x{33FF}\x{3400}-\x{4DBF}\x{4DC0}-\x{4DFF}\x{4E00}-\x{9FFF}\x{A000}-\x{A48F}\x{A490}-\x{A4CF}\x{A700}-\x{A71F}\x{A800}-\x{A82F}\x{A840}-\x{A87F}\x{AC00}-\x{D7AF}\x{F900}-\x{FAFF}\-\.\d]+)((\.([a-zA-Z\x{0080}-\x{00FF}\x{0100}-\x{017F}\x{0180}-\x{024F}\x{0250}-\x{02AF}\x{0300}-\x{036F}\x{0370}-\x{03FF}\x{0400}-\x{04FF}\x{0500}-\x{052F}\x{0530}-\x{058F}\x{0590}-\x{05FF}\x{0600}-\x{06FF}\x{0700}-\x{074F}\x{0750}-\x{077F}\x{0780}-\x{07BF}\x{07C0}-\x{07FF}\x{0900}-\x{097F}\x{0980}-\x{09FF}\x{0A00}-\x{0A7F}\x{0A80}-\x{0AFF}\x{0B00}-\x{0B7F}\x{0B80}-\x{0BFF}\x{0C00}-\x{0C7F}\x{0C80}-\x{0CFF}\x{0D00}-\x{0D7F}\x{0D80}-\x{0DFF}\x{0E00}-\x{0E7F}\x{0E80}-\x{0EFF}\x{0F00}-\x{0FFF}\x{1000}-\x{109F}\x{10A0}-\x{10FF}\x{1100}-\x{11FF}\x{1200}-\x{137F}\x{1380}-\x{139F}\x{13A0}-\x{13FF}\x{1400}-\x{167F}\x{1680}-\x{169F}\x{16A0}-\x{16FF}\x{1700}-\x{171F}\x{1720}-\x{173F}\x{1740}-\x{175F}\x{1760}-\x{177F}\x{1780}-\x{17FF}\x{1800}-\x{18AF}\x{1900}-\x{194F}\x{1950}-\x{197F}\x{1980}-\x{19DF}\x{19E0}-\x{19FF}\x{1A00}-\x{1A1F}\x{1B00}-\x{1B7F}\x{1D00}-\x{1D7F}\x{1D80}-\x{1DBF}\x{1DC0}-\x{1DFF}\x{1E00}-\x{1EFF}\x{1F00}-\x{1FFF}\x{20D0}-\x{20FF}\x{2100}-\x{214F}\x{2C00}-\x{2C5F}\x{2C60}-\x{2C7F}\x{2C80}-\x{2CFF}\x{2D00}-\x{2D2F}\x{2D30}-\x{2D7F}\x{2D80}-\x{2DDF}\x{2F00}-\x{2FDF}\x{2FF0}-\x{2FFF}\x{3040}-\x{309F}\x{30A0}-\x{30FF}\x{3100}-\x{312F}\x{3130}-\x{318F}\x{3190}-\x{319F}\x{31C0}-\x{31EF}\x{31F0}-\x{31FF}\x{3200}-\x{32FF}\x{3300}-\x{33FF}\x{3400}-\x{4DBF}\x{4DC0}-\x{4DFF}\x{4E00}-\x{9FFF}\x{A000}-\x{A48F}\x{A490}-\x{A4CF}\x{A700}-\x{A71F}\x{A800}-\x{A82F}\x{A840}-\x{A87F}\x{AC00}-\x{D7AF}\x{F900}-\x{FAFF}]){2,63})+)$/u',
30
-            // @codingStandardsIgnoreEnd
31
-            $email_address
32
-        )
33
-        ) {
34
-            throw new EmailValidationException(
35
-                esc_html__('Email address is invalid.', 'event_espresso')
36
-            );
37
-        }
38
-        return true;
39
-    }
18
+	/**
19
+	 * @param string $email_address
20
+	 * @return bool
21
+	 * @throws \EventEspresso\core\domain\services\validation\email\EmailValidationException
22
+	 */
23
+	public function validate($email_address)
24
+	{
25
+		parent::validate($email_address);
26
+		if (// plz see http://stackoverflow.com/a/24817336 re: the following regex
27
+		! preg_match(
28
+		// @codingStandardsIgnoreStart
29
+			'/^(?!\.)((?!.*\.{2})[a-zA-Z0-9\x{0080}-\x{00FF}\x{0100}-\x{017F}\x{0180}-\x{024F}\x{0250}-\x{02AF}\x{0300}-\x{036F}\x{0370}-\x{03FF}\x{0400}-\x{04FF}\x{0500}-\x{052F}\x{0530}-\x{058F}\x{0590}-\x{05FF}\x{0600}-\x{06FF}\x{0700}-\x{074F}\x{0750}-\x{077F}\x{0780}-\x{07BF}\x{07C0}-\x{07FF}\x{0900}-\x{097F}\x{0980}-\x{09FF}\x{0A00}-\x{0A7F}\x{0A80}-\x{0AFF}\x{0B00}-\x{0B7F}\x{0B80}-\x{0BFF}\x{0C00}-\x{0C7F}\x{0C80}-\x{0CFF}\x{0D00}-\x{0D7F}\x{0D80}-\x{0DFF}\x{0E00}-\x{0E7F}\x{0E80}-\x{0EFF}\x{0F00}-\x{0FFF}\x{1000}-\x{109F}\x{10A0}-\x{10FF}\x{1100}-\x{11FF}\x{1200}-\x{137F}\x{1380}-\x{139F}\x{13A0}-\x{13FF}\x{1400}-\x{167F}\x{1680}-\x{169F}\x{16A0}-\x{16FF}\x{1700}-\x{171F}\x{1720}-\x{173F}\x{1740}-\x{175F}\x{1760}-\x{177F}\x{1780}-\x{17FF}\x{1800}-\x{18AF}\x{1900}-\x{194F}\x{1950}-\x{197F}\x{1980}-\x{19DF}\x{19E0}-\x{19FF}\x{1A00}-\x{1A1F}\x{1B00}-\x{1B7F}\x{1D00}-\x{1D7F}\x{1D80}-\x{1DBF}\x{1DC0}-\x{1DFF}\x{1E00}-\x{1EFF}\x{1F00}-\x{1FFF}\x{20D0}-\x{20FF}\x{2100}-\x{214F}\x{2C00}-\x{2C5F}\x{2C60}-\x{2C7F}\x{2C80}-\x{2CFF}\x{2D00}-\x{2D2F}\x{2D30}-\x{2D7F}\x{2D80}-\x{2DDF}\x{2F00}-\x{2FDF}\x{2FF0}-\x{2FFF}\x{3040}-\x{309F}\x{30A0}-\x{30FF}\x{3100}-\x{312F}\x{3130}-\x{318F}\x{3190}-\x{319F}\x{31C0}-\x{31EF}\x{31F0}-\x{31FF}\x{3200}-\x{32FF}\x{3300}-\x{33FF}\x{3400}-\x{4DBF}\x{4DC0}-\x{4DFF}\x{4E00}-\x{9FFF}\x{A000}-\x{A48F}\x{A490}-\x{A4CF}\x{A700}-\x{A71F}\x{A800}-\x{A82F}\x{A840}-\x{A87F}\x{AC00}-\x{D7AF}\x{F900}-\x{FAFF}\.!#$%&\'*+-\/=?^_`{|}~\-\d]+)@(?!\.)([a-zA-Z0-9\x{0080}-\x{00FF}\x{0100}-\x{017F}\x{0180}-\x{024F}\x{0250}-\x{02AF}\x{0300}-\x{036F}\x{0370}-\x{03FF}\x{0400}-\x{04FF}\x{0500}-\x{052F}\x{0530}-\x{058F}\x{0590}-\x{05FF}\x{0600}-\x{06FF}\x{0700}-\x{074F}\x{0750}-\x{077F}\x{0780}-\x{07BF}\x{07C0}-\x{07FF}\x{0900}-\x{097F}\x{0980}-\x{09FF}\x{0A00}-\x{0A7F}\x{0A80}-\x{0AFF}\x{0B00}-\x{0B7F}\x{0B80}-\x{0BFF}\x{0C00}-\x{0C7F}\x{0C80}-\x{0CFF}\x{0D00}-\x{0D7F}\x{0D80}-\x{0DFF}\x{0E00}-\x{0E7F}\x{0E80}-\x{0EFF}\x{0F00}-\x{0FFF}\x{1000}-\x{109F}\x{10A0}-\x{10FF}\x{1100}-\x{11FF}\x{1200}-\x{137F}\x{1380}-\x{139F}\x{13A0}-\x{13FF}\x{1400}-\x{167F}\x{1680}-\x{169F}\x{16A0}-\x{16FF}\x{1700}-\x{171F}\x{1720}-\x{173F}\x{1740}-\x{175F}\x{1760}-\x{177F}\x{1780}-\x{17FF}\x{1800}-\x{18AF}\x{1900}-\x{194F}\x{1950}-\x{197F}\x{1980}-\x{19DF}\x{19E0}-\x{19FF}\x{1A00}-\x{1A1F}\x{1B00}-\x{1B7F}\x{1D00}-\x{1D7F}\x{1D80}-\x{1DBF}\x{1DC0}-\x{1DFF}\x{1E00}-\x{1EFF}\x{1F00}-\x{1FFF}\x{20D0}-\x{20FF}\x{2100}-\x{214F}\x{2C00}-\x{2C5F}\x{2C60}-\x{2C7F}\x{2C80}-\x{2CFF}\x{2D00}-\x{2D2F}\x{2D30}-\x{2D7F}\x{2D80}-\x{2DDF}\x{2F00}-\x{2FDF}\x{2FF0}-\x{2FFF}\x{3040}-\x{309F}\x{30A0}-\x{30FF}\x{3100}-\x{312F}\x{3130}-\x{318F}\x{3190}-\x{319F}\x{31C0}-\x{31EF}\x{31F0}-\x{31FF}\x{3200}-\x{32FF}\x{3300}-\x{33FF}\x{3400}-\x{4DBF}\x{4DC0}-\x{4DFF}\x{4E00}-\x{9FFF}\x{A000}-\x{A48F}\x{A490}-\x{A4CF}\x{A700}-\x{A71F}\x{A800}-\x{A82F}\x{A840}-\x{A87F}\x{AC00}-\x{D7AF}\x{F900}-\x{FAFF}\-\.\d]+)((\.([a-zA-Z\x{0080}-\x{00FF}\x{0100}-\x{017F}\x{0180}-\x{024F}\x{0250}-\x{02AF}\x{0300}-\x{036F}\x{0370}-\x{03FF}\x{0400}-\x{04FF}\x{0500}-\x{052F}\x{0530}-\x{058F}\x{0590}-\x{05FF}\x{0600}-\x{06FF}\x{0700}-\x{074F}\x{0750}-\x{077F}\x{0780}-\x{07BF}\x{07C0}-\x{07FF}\x{0900}-\x{097F}\x{0980}-\x{09FF}\x{0A00}-\x{0A7F}\x{0A80}-\x{0AFF}\x{0B00}-\x{0B7F}\x{0B80}-\x{0BFF}\x{0C00}-\x{0C7F}\x{0C80}-\x{0CFF}\x{0D00}-\x{0D7F}\x{0D80}-\x{0DFF}\x{0E00}-\x{0E7F}\x{0E80}-\x{0EFF}\x{0F00}-\x{0FFF}\x{1000}-\x{109F}\x{10A0}-\x{10FF}\x{1100}-\x{11FF}\x{1200}-\x{137F}\x{1380}-\x{139F}\x{13A0}-\x{13FF}\x{1400}-\x{167F}\x{1680}-\x{169F}\x{16A0}-\x{16FF}\x{1700}-\x{171F}\x{1720}-\x{173F}\x{1740}-\x{175F}\x{1760}-\x{177F}\x{1780}-\x{17FF}\x{1800}-\x{18AF}\x{1900}-\x{194F}\x{1950}-\x{197F}\x{1980}-\x{19DF}\x{19E0}-\x{19FF}\x{1A00}-\x{1A1F}\x{1B00}-\x{1B7F}\x{1D00}-\x{1D7F}\x{1D80}-\x{1DBF}\x{1DC0}-\x{1DFF}\x{1E00}-\x{1EFF}\x{1F00}-\x{1FFF}\x{20D0}-\x{20FF}\x{2100}-\x{214F}\x{2C00}-\x{2C5F}\x{2C60}-\x{2C7F}\x{2C80}-\x{2CFF}\x{2D00}-\x{2D2F}\x{2D30}-\x{2D7F}\x{2D80}-\x{2DDF}\x{2F00}-\x{2FDF}\x{2FF0}-\x{2FFF}\x{3040}-\x{309F}\x{30A0}-\x{30FF}\x{3100}-\x{312F}\x{3130}-\x{318F}\x{3190}-\x{319F}\x{31C0}-\x{31EF}\x{31F0}-\x{31FF}\x{3200}-\x{32FF}\x{3300}-\x{33FF}\x{3400}-\x{4DBF}\x{4DC0}-\x{4DFF}\x{4E00}-\x{9FFF}\x{A000}-\x{A48F}\x{A490}-\x{A4CF}\x{A700}-\x{A71F}\x{A800}-\x{A82F}\x{A840}-\x{A87F}\x{AC00}-\x{D7AF}\x{F900}-\x{FAFF}]){2,63})+)$/u',
30
+			// @codingStandardsIgnoreEnd
31
+			$email_address
32
+		)
33
+		) {
34
+			throw new EmailValidationException(
35
+				esc_html__('Email address is invalid.', 'event_espresso')
36
+			);
37
+		}
38
+		return true;
39
+	}
40 40
 }
Please login to merge, or discard this patch.
core/domain/services/validation/email/EmailValidationService.php 1 patch
Indentation   +56 added lines, -56 removed lines patch added patch discarded remove patch
@@ -16,65 +16,65 @@
 block discarded – undo
16 16
 class EmailValidationService implements EmailValidatorInterface
17 17
 {
18 18
 
19
-    /**
20
-     * @var EE_Registration_Config $registration_config
21
-     */
22
-    protected $registration_config;
19
+	/**
20
+	 * @var EE_Registration_Config $registration_config
21
+	 */
22
+	protected $registration_config;
23 23
 
24
-    /**
25
-     * @var Loader $loader
26
-     */
27
-    protected $loader;
24
+	/**
25
+	 * @var Loader $loader
26
+	 */
27
+	protected $loader;
28 28
 
29 29
 
30
-    /**
31
-     * EmailValidationService constructor.
32
-     * Accepts an \EE_Config as an argument.
33
-     *
34
-     * @param EE_Registration_Config $config
35
-     * @param Loader                 $loader
36
-     */
37
-    public function __construct(EE_Registration_Config $config, Loader $loader)
38
-    {
39
-        $this->registration_config = $config;
40
-        $this->loader = $loader;
41
-    }
30
+	/**
31
+	 * EmailValidationService constructor.
32
+	 * Accepts an \EE_Config as an argument.
33
+	 *
34
+	 * @param EE_Registration_Config $config
35
+	 * @param Loader                 $loader
36
+	 */
37
+	public function __construct(EE_Registration_Config $config, Loader $loader)
38
+	{
39
+		$this->registration_config = $config;
40
+		$this->loader = $loader;
41
+	}
42 42
 
43 43
 
44
-    /**
45
-     * Validates the email address. If it's invalid, an EmailValidationException
46
-     * is thrown that describes why its invalid.
47
-     *
48
-     * @param string $email_address
49
-     * @return boolean
50
-     * @throws EmailValidationException
51
-     */
52
-    public function validate($email_address)
53
-    {
54
-        // pick the correct validator according to the config
55
-        switch ($this->registration_config->email_validation_level) {
56
-            case 'basic':
57
-                $validator = $this->loader->getShared(
58
-                    'EventEspresso\core\domain\services\validation\email\strategies\Basic'
59
-                );
60
-                break;
61
-            case 'i18n':
62
-                $validator = $this->loader->getShared(
63
-                    'EventEspresso\core\domain\services\validation\email\strategies\International'
64
-                );
65
-                break;
66
-            case 'i18n_dns':
67
-                $validator = $this->loader->getShared(
68
-                    'EventEspresso\core\domain\services\validation\email\strategies\InternationalDNS'
69
-                );
70
-                break;
71
-            case 'wp_default':
72
-            default:
73
-                $validator = $this->loader->getShared(
74
-                    'EventEspresso\core\domain\services\validation\email\strategies\WordPress'
75
-                );
76
-                break;
77
-        }
78
-        return $validator->validate($email_address);
79
-    }
44
+	/**
45
+	 * Validates the email address. If it's invalid, an EmailValidationException
46
+	 * is thrown that describes why its invalid.
47
+	 *
48
+	 * @param string $email_address
49
+	 * @return boolean
50
+	 * @throws EmailValidationException
51
+	 */
52
+	public function validate($email_address)
53
+	{
54
+		// pick the correct validator according to the config
55
+		switch ($this->registration_config->email_validation_level) {
56
+			case 'basic':
57
+				$validator = $this->loader->getShared(
58
+					'EventEspresso\core\domain\services\validation\email\strategies\Basic'
59
+				);
60
+				break;
61
+			case 'i18n':
62
+				$validator = $this->loader->getShared(
63
+					'EventEspresso\core\domain\services\validation\email\strategies\International'
64
+				);
65
+				break;
66
+			case 'i18n_dns':
67
+				$validator = $this->loader->getShared(
68
+					'EventEspresso\core\domain\services\validation\email\strategies\InternationalDNS'
69
+				);
70
+				break;
71
+			case 'wp_default':
72
+			default:
73
+				$validator = $this->loader->getShared(
74
+					'EventEspresso\core\domain\services\validation\email\strategies\WordPress'
75
+				);
76
+				break;
77
+		}
78
+		return $validator->validate($email_address);
79
+	}
80 80
 }
Please login to merge, or discard this patch.
core/domain/services/DomainService.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -20,10 +20,10 @@
 block discarded – undo
20 20
 abstract class DomainService implements DomainServiceInterface
21 21
 {
22 22
 
23
-    /**
24
-     * DomainService constructor.
25
-     */
26
-    public function __construct()
27
-    {
28
-    }
23
+	/**
24
+	 * DomainService constructor.
25
+	 */
26
+	public function __construct()
27
+	{
28
+	}
29 29
 }
Please login to merge, or discard this patch.
core/domain/services/custom_post_types/RewriteRules.php 1 patch
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -13,30 +13,30 @@
 block discarded – undo
13 13
 class RewriteRules
14 14
 {
15 15
 
16
-    const OPTION_KEY_FLUSH_REWRITE_RULES = 'ee_flush_rewrite_rules';
16
+	const OPTION_KEY_FLUSH_REWRITE_RULES = 'ee_flush_rewrite_rules';
17 17
 
18 18
 
19
-    /**
20
-     * This will flush rewrite rules on demand.  This actually gets called around wp init priority level 100.
21
-     *
22
-     * @return void
23
-     */
24
-    public function flush()
25
-    {
26
-        update_option(RewriteRules::OPTION_KEY_FLUSH_REWRITE_RULES, true);
27
-    }
19
+	/**
20
+	 * This will flush rewrite rules on demand.  This actually gets called around wp init priority level 100.
21
+	 *
22
+	 * @return void
23
+	 */
24
+	public function flush()
25
+	{
26
+		update_option(RewriteRules::OPTION_KEY_FLUSH_REWRITE_RULES, true);
27
+	}
28 28
 
29 29
 
30
-    /**
31
-     * This will flush rewrite rules on demand.  This actually gets called around wp init priority level 100.
32
-     *
33
-     * @return void
34
-     */
35
-    public function flushRewriteRules()
36
-    {
37
-        if (get_option(RewriteRules::OPTION_KEY_FLUSH_REWRITE_RULES, true)) {
38
-            flush_rewrite_rules();
39
-            update_option(RewriteRules::OPTION_KEY_FLUSH_REWRITE_RULES, false);
40
-        }
41
-    }
30
+	/**
31
+	 * This will flush rewrite rules on demand.  This actually gets called around wp init priority level 100.
32
+	 *
33
+	 * @return void
34
+	 */
35
+	public function flushRewriteRules()
36
+	{
37
+		if (get_option(RewriteRules::OPTION_KEY_FLUSH_REWRITE_RULES, true)) {
38
+			flush_rewrite_rules();
39
+			update_option(RewriteRules::OPTION_KEY_FLUSH_REWRITE_RULES, false);
40
+		}
41
+	}
42 42
 }
Please login to merge, or discard this patch.
core/domain/services/capabilities/CapabilitiesCheckerInterface.php 1 patch
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -16,25 +16,25 @@
 block discarded – undo
16 16
 interface CapabilitiesCheckerInterface
17 17
 {
18 18
 
19
-    /**
20
-     * Verifies that the current user has ALL of the capabilities listed in the CapCheck DTO.
21
-     * If any of the individual capability checks fails, then the command will NOT be executed.
22
-     *
23
-     * @param CapCheckInterface|CapCheckInterface[] $cap_check
24
-     * @return bool
25
-     * @throws InvalidClassException
26
-     * @throws InsufficientPermissionsException
27
-     */
28
-    public function processCapCheck($cap_check);
19
+	/**
20
+	 * Verifies that the current user has ALL of the capabilities listed in the CapCheck DTO.
21
+	 * If any of the individual capability checks fails, then the command will NOT be executed.
22
+	 *
23
+	 * @param CapCheckInterface|CapCheckInterface[] $cap_check
24
+	 * @return bool
25
+	 * @throws InvalidClassException
26
+	 * @throws InsufficientPermissionsException
27
+	 */
28
+	public function processCapCheck($cap_check);
29 29
 
30 30
 
31
-    /**
32
-     * @param string $capability - the capability to be checked, like: 'ee_edit_registrations'
33
-     * @param string $context    - what the user is attempting to do, like: 'Edit Registration'
34
-     * @param int    $ID         - (optional) ID for item where current_user_can is being called from
35
-     * @return bool
36
-     * @throws InsufficientPermissionsException
37
-     * @throws InvalidClassException
38
-     */
39
-    public function process($capability, $context, $ID = 0);
31
+	/**
32
+	 * @param string $capability - the capability to be checked, like: 'ee_edit_registrations'
33
+	 * @param string $context    - what the user is attempting to do, like: 'Edit Registration'
34
+	 * @param int    $ID         - (optional) ID for item where current_user_can is being called from
35
+	 * @return bool
36
+	 * @throws InsufficientPermissionsException
37
+	 * @throws InvalidClassException
38
+	 */
39
+	public function process($capability, $context, $ID = 0);
40 40
 }
Please login to merge, or discard this patch.
core/domain/services/capabilities/RequiresCapCheckInterface.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -11,8 +11,8 @@
 block discarded – undo
11 11
 interface RequiresCapCheckInterface
12 12
 {
13 13
 
14
-    /**
15
-     * @return CapCheckInterface
16
-     */
17
-    public function getCapCheck();
14
+	/**
15
+	 * @return CapCheckInterface
16
+	 */
17
+	public function getCapCheck();
18 18
 }
Please login to merge, or discard this patch.