Completed
Branch FET/datetime-and-event-status (270044)
by
unknown
04:26 queued 14s
created
core/exceptions/InvalidDataTypeException.php 2 patches
Indentation   +40 added lines, -40 removed lines patch added patch discarded remove patch
@@ -16,46 +16,46 @@
 block discarded – undo
16 16
 class InvalidDataTypeException extends InvalidArgumentException
17 17
 {
18 18
 
19
-    /**
20
-     * InvalidDataTypeException constructor
21
-     *
22
-     * @param string    $var_name  name of the variable that was of the wrong type ie: "$my_var"
23
-     * @param mixed     $variable  the actual variable that was of the wrong data type, ie: $my_var
24
-     * @param string    $expected  data type we wanted ie: "integer", "string", "array", etc.
25
-     *                             or an entire rewrite of: "{something something} was expected."
26
-     * @param string    $message
27
-     * @param int       $code
28
-     * @param Exception $previous
29
-     */
30
-    public function __construct($var_name, $variable, $expected, $message = '', $code = 0, Exception $previous = null)
31
-    {
32
-        if (empty($message)) {
33
-            $expected = strpos(' was expected.', $expected) === false
34
-                ? $this->addIndefiniteArticle($expected) . ' was expected.'
35
-                : $expected;
36
-            $message = sprintf(
37
-                __(
38
-                    'The supplied data for "%1$s" was %2$s, but %3$s',
39
-                    'event_espresso'
40
-                ),
41
-                $var_name,
42
-                $this->addIndefiniteArticle(gettype($variable)),
43
-                $expected
44
-            );
45
-        }
46
-        parent::__construct($message, $code, $previous);
47
-    }
19
+	/**
20
+	 * InvalidDataTypeException constructor
21
+	 *
22
+	 * @param string    $var_name  name of the variable that was of the wrong type ie: "$my_var"
23
+	 * @param mixed     $variable  the actual variable that was of the wrong data type, ie: $my_var
24
+	 * @param string    $expected  data type we wanted ie: "integer", "string", "array", etc.
25
+	 *                             or an entire rewrite of: "{something something} was expected."
26
+	 * @param string    $message
27
+	 * @param int       $code
28
+	 * @param Exception $previous
29
+	 */
30
+	public function __construct($var_name, $variable, $expected, $message = '', $code = 0, Exception $previous = null)
31
+	{
32
+		if (empty($message)) {
33
+			$expected = strpos(' was expected.', $expected) === false
34
+				? $this->addIndefiniteArticle($expected) . ' was expected.'
35
+				: $expected;
36
+			$message = sprintf(
37
+				__(
38
+					'The supplied data for "%1$s" was %2$s, but %3$s',
39
+					'event_espresso'
40
+				),
41
+				$var_name,
42
+				$this->addIndefiniteArticle(gettype($variable)),
43
+				$expected
44
+			);
45
+		}
46
+		parent::__construct($message, $code, $previous);
47
+	}
48 48
 
49 49
 
50
-    /**
51
-     * @param $string
52
-     * @return string
53
-     */
54
-    protected function addIndefiniteArticle($string)
55
-    {
56
-        if (strtolower($string) === 'null') {
57
-            return $string;
58
-        }
59
-        return (stripos('aeiou', $string[0]) !== false ? 'an ' : 'a ') . $string;
60
-    }
50
+	/**
51
+	 * @param $string
52
+	 * @return string
53
+	 */
54
+	protected function addIndefiniteArticle($string)
55
+	{
56
+		if (strtolower($string) === 'null') {
57
+			return $string;
58
+		}
59
+		return (stripos('aeiou', $string[0]) !== false ? 'an ' : 'a ') . $string;
60
+	}
61 61
 }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
     {
32 32
         if (empty($message)) {
33 33
             $expected = strpos(' was expected.', $expected) === false
34
-                ? $this->addIndefiniteArticle($expected) . ' was expected.'
34
+                ? $this->addIndefiniteArticle($expected).' was expected.'
35 35
                 : $expected;
36 36
             $message = sprintf(
37 37
                 __(
@@ -56,6 +56,6 @@  discard block
 block discarded – undo
56 56
         if (strtolower($string) === 'null') {
57 57
             return $string;
58 58
         }
59
-        return (stripos('aeiou', $string[0]) !== false ? 'an ' : 'a ') . $string;
59
+        return (stripos('aeiou', $string[0]) !== false ? 'an ' : 'a ').$string;
60 60
     }
61 61
 }
Please login to merge, or discard this patch.
core/exceptions/InvalidInterfaceException.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -16,22 +16,22 @@
 block discarded – undo
16 16
 class InvalidInterfaceException extends DomainException
17 17
 {
18 18
 
19
-    /**
20
-     * InvalidInterfaceException constructor.
21
-     *
22
-     * @param string     $interface_name
23
-     * @param string     $message
24
-     * @param int        $code
25
-     * @param \Exception $previous
26
-     */
27
-    public function __construct($interface_name, $message = '', $code = 0, \Exception $previous = null)
28
-    {
29
-        if (empty($message)) {
30
-            $message = sprintf(
31
-                __('The "%1$s" Interface is either missing or invalid.', 'event_espresso'),
32
-                $interface_name
33
-            );
34
-        }
35
-        parent::__construct($message, $code, $previous);
36
-    }
19
+	/**
20
+	 * InvalidInterfaceException constructor.
21
+	 *
22
+	 * @param string     $interface_name
23
+	 * @param string     $message
24
+	 * @param int        $code
25
+	 * @param \Exception $previous
26
+	 */
27
+	public function __construct($interface_name, $message = '', $code = 0, \Exception $previous = null)
28
+	{
29
+		if (empty($message)) {
30
+			$message = sprintf(
31
+				__('The "%1$s" Interface is either missing or invalid.', 'event_espresso'),
32
+				$interface_name
33
+			);
34
+		}
35
+		parent::__construct($message, $code, $previous);
36
+	}
37 37
 }
Please login to merge, or discard this patch.
core/exceptions/InsufficientPermissionsException.php 1 patch
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -13,24 +13,24 @@
 block discarded – undo
13 13
 class InsufficientPermissionsException extends \RuntimeException
14 14
 {
15 15
 
16
-    /**
17
-     * @access public
18
-     * @param  string     $action
19
-     * @param  string     $message
20
-     * @param  int        $code
21
-     * @param  \Exception $previous
22
-     */
23
-    public function __construct($action, $message = '', $code = 0, \Exception $previous = null)
24
-    {
25
-        if (empty($message)) {
26
-            $message = sprintf(
27
-                __(
28
-                    'We\'re sorry, but you do not have the required permissions to perform the following action: %1$s',
29
-                    'event_espresso'
30
-                ),
31
-                ucwords(str_replace('_', ' ', $action))
32
-            );
33
-        }
34
-        parent::__construct($message, $code, $previous);
35
-    }
16
+	/**
17
+	 * @access public
18
+	 * @param  string     $action
19
+	 * @param  string     $message
20
+	 * @param  int        $code
21
+	 * @param  \Exception $previous
22
+	 */
23
+	public function __construct($action, $message = '', $code = 0, \Exception $previous = null)
24
+	{
25
+		if (empty($message)) {
26
+			$message = sprintf(
27
+				__(
28
+					'We\'re sorry, but you do not have the required permissions to perform the following action: %1$s',
29
+					'event_espresso'
30
+				),
31
+				ucwords(str_replace('_', ' ', $action))
32
+			);
33
+		}
34
+		parent::__construct($message, $code, $previous);
35
+	}
36 36
 }
Please login to merge, or discard this patch.
core/exceptions/UnexpectedEntityException.php 1 patch
Indentation   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -12,27 +12,27 @@
 block discarded – undo
12 12
 class UnexpectedEntityException extends \UnexpectedValueException
13 13
 {
14 14
 
15
-    /**
16
-     * UnexpectedEntityException constructor
17
-     *
18
-     * @param mixed      $entity         the actual object or variable that was received
19
-     * @param string     $expected_class classname of the entity we wanted
20
-     * @param string     $message
21
-     * @param int        $code
22
-     * @param \Exception $previous
23
-     */
24
-    public function __construct($entity, $expected_class, $message = '', $code = 0, \Exception $previous = null)
25
-    {
26
-        if (empty($message)) {
27
-            $message = sprintf(
28
-                __(
29
-                    'The retrieved entity is an instance of "%1$s", but an instance of "%2$s" was expected.',
30
-                    'event_espresso'
31
-                ),
32
-                is_object($entity) ? get_class($entity) : gettype($entity),
33
-                $expected_class
34
-            );
35
-        }
36
-        parent::__construct($message, $code, $previous);
37
-    }
15
+	/**
16
+	 * UnexpectedEntityException constructor
17
+	 *
18
+	 * @param mixed      $entity         the actual object or variable that was received
19
+	 * @param string     $expected_class classname of the entity we wanted
20
+	 * @param string     $message
21
+	 * @param int        $code
22
+	 * @param \Exception $previous
23
+	 */
24
+	public function __construct($entity, $expected_class, $message = '', $code = 0, \Exception $previous = null)
25
+	{
26
+		if (empty($message)) {
27
+			$message = sprintf(
28
+				__(
29
+					'The retrieved entity is an instance of "%1$s", but an instance of "%2$s" was expected.',
30
+					'event_espresso'
31
+				),
32
+				is_object($entity) ? get_class($entity) : gettype($entity),
33
+				$expected_class
34
+			);
35
+		}
36
+		parent::__construct($message, $code, $previous);
37
+	}
38 38
 }
Please login to merge, or discard this patch.
core/exceptions/EntityConstructionException.php 1 patch
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -13,25 +13,25 @@
 block discarded – undo
13 13
 {
14 14
 
15 15
 
16
-    /**
17
-     * EntityConstructionException constructor
18
-     *
19
-     * @param string     $entity_class class name of the entity being constructed
20
-     * @param string     $message
21
-     * @param int        $code
22
-     * @param \Exception $previous
23
-     */
24
-    public function __construct($entity_class, $message = '', $code = 0, \Exception $previous = null)
25
-    {
26
-        if (empty($message)) {
27
-            $message = sprintf(
28
-                __(
29
-                    'The "%1$s" entity could not be instantiated for an unknown reason',
30
-                    'event_espresso'
31
-                ),
32
-                $entity_class
33
-            );
34
-        }
35
-        parent::__construct($message, $code, $previous);
36
-    }
16
+	/**
17
+	 * EntityConstructionException constructor
18
+	 *
19
+	 * @param string     $entity_class class name of the entity being constructed
20
+	 * @param string     $message
21
+	 * @param int        $code
22
+	 * @param \Exception $previous
23
+	 */
24
+	public function __construct($entity_class, $message = '', $code = 0, \Exception $previous = null)
25
+	{
26
+		if (empty($message)) {
27
+			$message = sprintf(
28
+				__(
29
+					'The "%1$s" entity could not be instantiated for an unknown reason',
30
+					'event_espresso'
31
+				),
32
+				$entity_class
33
+			);
34
+		}
35
+		parent::__construct($message, $code, $previous);
36
+	}
37 37
 }
Please login to merge, or discard this patch.
core/services/formatters/FormatterBase.php 2 patches
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -15,26 +15,26 @@
 block discarded – undo
15 15
 abstract class FormatterBase implements FormatterInterface
16 16
 {
17 17
 
18
-    /**
19
-     * Recursively applies the formatting to all VALUES in this multi-dimensional array
20
-     *
21
-     * @param array $input
22
-     * @return array
23
-     * @throws InvalidDataTypeException if $input is not an array
24
-     */
25
-    public function formatArray($input)
26
-    {
27
-        if (! is_array($input)) {
28
-            throw new InvalidDataTypeException('input', $input, 'array');
29
-        }
30
-        // we can use $this inside the closure in PHP 5.3, so pass in a variable pointing to this instead
31
-        $formatter = $this;
32
-        array_walk_recursive(
33
-            $input,
34
-            function (&$value, $key) use ($formatter) {
35
-                $value = $formatter->format($value);
36
-            }
37
-        );
38
-        return $input;
39
-    }
18
+	/**
19
+	 * Recursively applies the formatting to all VALUES in this multi-dimensional array
20
+	 *
21
+	 * @param array $input
22
+	 * @return array
23
+	 * @throws InvalidDataTypeException if $input is not an array
24
+	 */
25
+	public function formatArray($input)
26
+	{
27
+		if (! is_array($input)) {
28
+			throw new InvalidDataTypeException('input', $input, 'array');
29
+		}
30
+		// we can use $this inside the closure in PHP 5.3, so pass in a variable pointing to this instead
31
+		$formatter = $this;
32
+		array_walk_recursive(
33
+			$input,
34
+			function (&$value, $key) use ($formatter) {
35
+				$value = $formatter->format($value);
36
+			}
37
+		);
38
+		return $input;
39
+	}
40 40
 }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,14 +24,14 @@
 block discarded – undo
24 24
      */
25 25
     public function formatArray($input)
26 26
     {
27
-        if (! is_array($input)) {
27
+        if ( ! is_array($input)) {
28 28
             throw new InvalidDataTypeException('input', $input, 'array');
29 29
         }
30 30
         // we can use $this inside the closure in PHP 5.3, so pass in a variable pointing to this instead
31 31
         $formatter = $this;
32 32
         array_walk_recursive(
33 33
             $input,
34
-            function (&$value, $key) use ($formatter) {
34
+            function(&$value, $key) use ($formatter) {
35 35
                 $value = $formatter->format($value);
36 36
             }
37 37
         );
Please login to merge, or discard this patch.
core/services/formatters/LeaveAlone.php 1 patch
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -15,26 +15,26 @@
 block discarded – undo
15 15
 class LeaveAlone extends FormatterBase
16 16
 {
17 17
 
18
-    /**
19
-     * Removes the emojis from the inputted string
20
-     *
21
-     * @param string|int|float $input anything easily cast into a string
22
-     * @return string
23
-     * @throws InvalidDataTypeException if $input is not a string
24
-     */
25
-    public function format($input)
26
-    {
27
-        return $input;
28
-    }
18
+	/**
19
+	 * Removes the emojis from the inputted string
20
+	 *
21
+	 * @param string|int|float $input anything easily cast into a string
22
+	 * @return string
23
+	 * @throws InvalidDataTypeException if $input is not a string
24
+	 */
25
+	public function format($input)
26
+	{
27
+		return $input;
28
+	}
29 29
 
30
-    /**
31
-     * Just returns the inputted $input array
32
-     *
33
-     * @param array $input
34
-     * @return array
35
-     */
36
-    public function formatArray($input)
37
-    {
38
-        return $input;
39
-    }
30
+	/**
31
+	 * Just returns the inputted $input array
32
+	 *
33
+	 * @param array $input
34
+	 * @return array
35
+	 */
36
+	public function formatArray($input)
37
+	{
38
+		return $input;
39
+	}
40 40
 }
Please login to merge, or discard this patch.
core/services/request/RequestStackCoreApp.php 2 patches
Indentation   +76 added lines, -76 removed lines patch added patch discarded remove patch
@@ -23,87 +23,87 @@
 block discarded – undo
23 23
 class RequestStackCoreApp implements RequestDecoratorInterface, RequestStackCoreAppInterface
24 24
 {
25 25
 
26
-    /**
27
-     * @var RequestInterface $request
28
-     */
29
-    protected $request;
26
+	/**
27
+	 * @var RequestInterface $request
28
+	 */
29
+	protected $request;
30 30
 
31
-    /**
32
-     * @var ResponseInterface $response
33
-     */
34
-    protected $response;
31
+	/**
32
+	 * @var ResponseInterface $response
33
+	 */
34
+	protected $response;
35 35
 
36 36
 
37
-    /**
38
-     * handle
39
-     * sets hooks for running rest of system
40
-     * provides "AHEE__EE_System__construct__complete" hook for EE Addons to use as their starting point
41
-     * starting EE Addons from any other point may lead to problems
42
-     *
43
-     * @param RequestInterface  $request
44
-     * @param ResponseInterface $response
45
-     * @return ResponseInterface
46
-     * @throws InvalidClassException
47
-     * @throws EE_Error
48
-     * @throws InvalidDataTypeException
49
-     * @throws InvalidInterfaceException
50
-     * @throws InvalidArgumentException
51
-     */
52
-    public function handleRequest(RequestInterface $request, ResponseInterface $response)
53
-    {
54
-        $this->request = $request;
55
-        $this->response = $response;
56
-        espresso_load_required('EE_Base', EE_CORE . 'EE_Base.core.php');
57
-        espresso_load_required('EE_Deprecated', EE_CORE . 'EE_Deprecated.core.php');
58
-        // workarounds for PHP < 5.3
59
-        espresso_load_required('EEH_Class_Tools', EE_HELPERS . 'EEH_Class_Tools.helper.php');
60
-        do_action(
61
-            'EE_EventEspresso_core_services_request_RequestStackCoreApp__handle_request__initialize_core_loading'
62
-        );
63
-        // legacy action for backwards compatibility
64
-        do_action('EE_Load_Espresso_Core__handle_request__initialize_core_loading');
65
-        $this->setupFramework();
66
-        $loader = LoaderFactory::getLoader();
67
-        $loader->getShared(
68
-            'EventEspresso\core\services\notifications\PersistentAdminNoticeManager'
69
-        );
70
-        // WP cron jobs
71
-        $loader->getShared('EE_Cron_Tasks');
72
-        $loader->getShared('EE_System');
73
-        return $this->response;
74
-    }
37
+	/**
38
+	 * handle
39
+	 * sets hooks for running rest of system
40
+	 * provides "AHEE__EE_System__construct__complete" hook for EE Addons to use as their starting point
41
+	 * starting EE Addons from any other point may lead to problems
42
+	 *
43
+	 * @param RequestInterface  $request
44
+	 * @param ResponseInterface $response
45
+	 * @return ResponseInterface
46
+	 * @throws InvalidClassException
47
+	 * @throws EE_Error
48
+	 * @throws InvalidDataTypeException
49
+	 * @throws InvalidInterfaceException
50
+	 * @throws InvalidArgumentException
51
+	 */
52
+	public function handleRequest(RequestInterface $request, ResponseInterface $response)
53
+	{
54
+		$this->request = $request;
55
+		$this->response = $response;
56
+		espresso_load_required('EE_Base', EE_CORE . 'EE_Base.core.php');
57
+		espresso_load_required('EE_Deprecated', EE_CORE . 'EE_Deprecated.core.php');
58
+		// workarounds for PHP < 5.3
59
+		espresso_load_required('EEH_Class_Tools', EE_HELPERS . 'EEH_Class_Tools.helper.php');
60
+		do_action(
61
+			'EE_EventEspresso_core_services_request_RequestStackCoreApp__handle_request__initialize_core_loading'
62
+		);
63
+		// legacy action for backwards compatibility
64
+		do_action('EE_Load_Espresso_Core__handle_request__initialize_core_loading');
65
+		$this->setupFramework();
66
+		$loader = LoaderFactory::getLoader();
67
+		$loader->getShared(
68
+			'EventEspresso\core\services\notifications\PersistentAdminNoticeManager'
69
+		);
70
+		// WP cron jobs
71
+		$loader->getShared('EE_Cron_Tasks');
72
+		$loader->getShared('EE_System');
73
+		return $this->response;
74
+	}
75 75
 
76 76
 
77
-    /**
78
-     * set framework for the rest of EE to hook into when loading
79
-     *
80
-     * @throws EE_Error
81
-     */
82
-    private function setupFramework()
83
-    {
84
-        espresso_load_required(
85
-            'EE_Bootstrap',
86
-            EE_CORE . 'EE_Bootstrap.core.php'
87
-        );
88
-        add_action('plugins_loaded', array('EE_Bootstrap', 'load_espresso_addons'), 1);
89
-        add_action('plugins_loaded', array('EE_Bootstrap', 'detect_activations_or_upgrades'), 3);
90
-        add_action('plugins_loaded', array('EE_Bootstrap', 'load_core_configuration'), 5);
91
-        add_action('plugins_loaded', array('EE_Bootstrap', 'register_shortcodes_modules_and_widgets'), 7);
92
-        add_action('plugins_loaded', array('EE_Bootstrap', 'brew_espresso'), 9);
93
-    }
77
+	/**
78
+	 * set framework for the rest of EE to hook into when loading
79
+	 *
80
+	 * @throws EE_Error
81
+	 */
82
+	private function setupFramework()
83
+	{
84
+		espresso_load_required(
85
+			'EE_Bootstrap',
86
+			EE_CORE . 'EE_Bootstrap.core.php'
87
+		);
88
+		add_action('plugins_loaded', array('EE_Bootstrap', 'load_espresso_addons'), 1);
89
+		add_action('plugins_loaded', array('EE_Bootstrap', 'detect_activations_or_upgrades'), 3);
90
+		add_action('plugins_loaded', array('EE_Bootstrap', 'load_core_configuration'), 5);
91
+		add_action('plugins_loaded', array('EE_Bootstrap', 'register_shortcodes_modules_and_widgets'), 7);
92
+		add_action('plugins_loaded', array('EE_Bootstrap', 'brew_espresso'), 9);
93
+	}
94 94
 
95 95
 
96
-    /**
97
-     * called after the request stack has been fully processed
98
-     * if any of the middleware apps has requested the plugin be deactivated, then we do that now
99
-     *
100
-     * @param RequestInterface  $request
101
-     * @param ResponseInterface $response
102
-     */
103
-    public function handleResponse(RequestInterface $request, ResponseInterface $response)
104
-    {
105
-        if ($response->pluginDeactivated()) {
106
-            espresso_deactivate_plugin(EE_PLUGIN_BASENAME);
107
-        }
108
-    }
96
+	/**
97
+	 * called after the request stack has been fully processed
98
+	 * if any of the middleware apps has requested the plugin be deactivated, then we do that now
99
+	 *
100
+	 * @param RequestInterface  $request
101
+	 * @param ResponseInterface $response
102
+	 */
103
+	public function handleResponse(RequestInterface $request, ResponseInterface $response)
104
+	{
105
+		if ($response->pluginDeactivated()) {
106
+			espresso_deactivate_plugin(EE_PLUGIN_BASENAME);
107
+		}
108
+	}
109 109
 }
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -53,10 +53,10 @@  discard block
 block discarded – undo
53 53
     {
54 54
         $this->request = $request;
55 55
         $this->response = $response;
56
-        espresso_load_required('EE_Base', EE_CORE . 'EE_Base.core.php');
57
-        espresso_load_required('EE_Deprecated', EE_CORE . 'EE_Deprecated.core.php');
56
+        espresso_load_required('EE_Base', EE_CORE.'EE_Base.core.php');
57
+        espresso_load_required('EE_Deprecated', EE_CORE.'EE_Deprecated.core.php');
58 58
         // workarounds for PHP < 5.3
59
-        espresso_load_required('EEH_Class_Tools', EE_HELPERS . 'EEH_Class_Tools.helper.php');
59
+        espresso_load_required('EEH_Class_Tools', EE_HELPERS.'EEH_Class_Tools.helper.php');
60 60
         do_action(
61 61
             'EE_EventEspresso_core_services_request_RequestStackCoreApp__handle_request__initialize_core_loading'
62 62
         );
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
     {
84 84
         espresso_load_required(
85 85
             'EE_Bootstrap',
86
-            EE_CORE . 'EE_Bootstrap.core.php'
86
+            EE_CORE.'EE_Bootstrap.core.php'
87 87
         );
88 88
         add_action('plugins_loaded', array('EE_Bootstrap', 'load_espresso_addons'), 1);
89 89
         add_action('plugins_loaded', array('EE_Bootstrap', 'detect_activations_or_upgrades'), 3);
Please login to merge, or discard this patch.
core/services/request/InvalidRequestStackMiddlewareException.php 1 patch
Indentation   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -15,33 +15,33 @@
 block discarded – undo
15 15
 class InvalidRequestStackMiddlewareException extends InvalidDataTypeException
16 16
 {
17 17
 
18
-    /**
19
-     * @param  mixed    $middleware_app_class
20
-     * @param  string   $message
21
-     * @param int       $code
22
-     * @param Exception $previous
23
-     */
24
-    public function __construct($middleware_app_class, $message = '', $code = 0, Exception $previous = null)
25
-    {
26
-        if (is_array($middleware_app_class)) {
27
-            $middleware_app_class = reset($middleware_app_class);
28
-        }
29
-        if (empty($message)) {
30
-            $message = sprintf(
31
-                esc_html__(
32
-                    'The supplied Request Stack Middleware class "%1$s" is invalid or could no be found.',
33
-                    'event_espresso'
34
-                ),
35
-                $middleware_app_class
36
-            );
37
-        }
38
-        parent::__construct(
39
-            '$middleware_app_class',
40
-            $middleware_app_class,
41
-            'EventEspresso\core\services\request\middleware\Middleware',
42
-            $message,
43
-            $code,
44
-            $previous
45
-        );
46
-    }
18
+	/**
19
+	 * @param  mixed    $middleware_app_class
20
+	 * @param  string   $message
21
+	 * @param int       $code
22
+	 * @param Exception $previous
23
+	 */
24
+	public function __construct($middleware_app_class, $message = '', $code = 0, Exception $previous = null)
25
+	{
26
+		if (is_array($middleware_app_class)) {
27
+			$middleware_app_class = reset($middleware_app_class);
28
+		}
29
+		if (empty($message)) {
30
+			$message = sprintf(
31
+				esc_html__(
32
+					'The supplied Request Stack Middleware class "%1$s" is invalid or could no be found.',
33
+					'event_espresso'
34
+				),
35
+				$middleware_app_class
36
+			);
37
+		}
38
+		parent::__construct(
39
+			'$middleware_app_class',
40
+			$middleware_app_class,
41
+			'EventEspresso\core\services\request\middleware\Middleware',
42
+			$message,
43
+			$code,
44
+			$previous
45
+		);
46
+	}
47 47
 }
Please login to merge, or discard this patch.