@@ -3,7 +3,7 @@ |
||
3 | 3 | <?php _e('Adjust the settings for the PayPal Pro payment gateway.', 'event_espresso'); ?> |
4 | 4 | </p> |
5 | 5 | <p> |
6 | -<?php printf( __( 'See %1$shere%2$s for list of currencies supported by Paypal Pro.', 'event_espresso' ), "<a href='https://www.paypal.com/multicurrency'>","</a>" ); ?> |
|
6 | +<?php printf(__('See %1$shere%2$s for list of currencies supported by Paypal Pro.', 'event_espresso'), "<a href='https://www.paypal.com/multicurrency'>", "</a>"); ?> |
|
7 | 7 | </p> |
8 | 8 | <p><strong><?php _e('PayPal Pro Settings', 'event_espresso'); ?></strong></p> |
9 | 9 | <ul> |
@@ -1,8 +1,8 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | namespace EventEspresso\core\exceptions; |
3 | 3 | |
4 | -if ( ! defined( 'EVENT_ESPRESSO_VERSION' ) ) { |
|
5 | - exit( 'No direct script access allowed' ); |
|
4 | +if ( ! defined('EVENT_ESPRESSO_VERSION')) { |
|
5 | + exit('No direct script access allowed'); |
|
6 | 6 | } |
7 | 7 | |
8 | 8 | |
@@ -26,14 +26,14 @@ discard block |
||
26 | 26 | * @param int $code |
27 | 27 | * @param \Exception $previous |
28 | 28 | */ |
29 | - public function __construct( $interface_name, $message = '', $code = 0, \Exception $previous = null ) { |
|
30 | - if ( empty( $message ) ) { |
|
29 | + public function __construct($interface_name, $message = '', $code = 0, \Exception $previous = null) { |
|
30 | + if (empty($message)) { |
|
31 | 31 | $message = sprintf( |
32 | - __( 'The "%1$s" Interface is either missing or invalid.', 'event_espresso' ), |
|
32 | + __('The "%1$s" Interface is either missing or invalid.', 'event_espresso'), |
|
33 | 33 | $interface_name |
34 | 34 | ); |
35 | 35 | } |
36 | - parent::__construct( $message, $code, $previous ); |
|
36 | + parent::__construct($message, $code, $previous); |
|
37 | 37 | } |
38 | 38 | |
39 | 39 | } |
@@ -2,8 +2,8 @@ discard block |
||
2 | 2 | namespace EventEspresso\core\exceptions; |
3 | 3 | |
4 | 4 | |
5 | -if ( ! defined( 'EVENT_ESPRESSO_VERSION' ) ) { |
|
6 | - exit( 'No direct script access allowed' ); |
|
5 | +if ( ! defined('EVENT_ESPRESSO_VERSION')) { |
|
6 | + exit('No direct script access allowed'); |
|
7 | 7 | } |
8 | 8 | |
9 | 9 | |
@@ -27,8 +27,8 @@ discard block |
||
27 | 27 | * @param int $code |
28 | 28 | * @param \Exception $previous |
29 | 29 | */ |
30 | - public function __construct( $entity_class, $message = '', $code = 0, \Exception $previous = null ) { |
|
31 | - if ( empty( $message ) ) { |
|
30 | + public function __construct($entity_class, $message = '', $code = 0, \Exception $previous = null) { |
|
31 | + if (empty($message)) { |
|
32 | 32 | $message = sprintf( |
33 | 33 | __( |
34 | 34 | 'The "%1$s" entity could not be instantiated for an unknown reason', |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | $entity_class |
38 | 38 | ); |
39 | 39 | } |
40 | - parent::__construct( $message, $code, $previous ); |
|
40 | + parent::__construct($message, $code, $previous); |
|
41 | 41 | } |
42 | 42 | |
43 | 43 | } |
@@ -1,8 +1,8 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | namespace EventEspresso\core\exceptions; |
3 | 3 | |
4 | -if ( ! defined( 'EVENT_ESPRESSO_VERSION' ) ) { |
|
5 | - exit( 'No direct script access allowed' ); |
|
4 | +if ( ! defined('EVENT_ESPRESSO_VERSION')) { |
|
5 | + exit('No direct script access allowed'); |
|
6 | 6 | } |
7 | 7 | |
8 | 8 | |
@@ -26,18 +26,18 @@ discard block |
||
26 | 26 | * @param int $code |
27 | 27 | * @param \Exception $previous |
28 | 28 | */ |
29 | - public function __construct( $entity, $expected_class, $message = '', $code = 0, \Exception $previous = null ) { |
|
30 | - if ( empty( $message ) ) { |
|
29 | + public function __construct($entity, $expected_class, $message = '', $code = 0, \Exception $previous = null) { |
|
30 | + if (empty($message)) { |
|
31 | 31 | $message = sprintf( |
32 | 32 | __( |
33 | 33 | 'The retrieved entity is an instance of "%1$s", but an instance of "%2$s" was expected.', |
34 | 34 | 'event_espresso' |
35 | 35 | ), |
36 | - is_object( $entity ) ? get_class( $entity ) : gettype( $entity ), |
|
36 | + is_object($entity) ? get_class($entity) : gettype($entity), |
|
37 | 37 | $expected_class |
38 | 38 | ); |
39 | 39 | } |
40 | - parent::__construct( $message, $code, $previous ); |
|
40 | + parent::__construct($message, $code, $previous); |
|
41 | 41 | } |
42 | 42 | |
43 | 43 | } |
@@ -1,8 +1,8 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | namespace EventEspresso\core\exceptions; |
3 | 3 | |
4 | -if ( ! defined( 'EVENT_ESPRESSO_VERSION' ) ) { |
|
5 | - exit( 'No direct script access allowed' ); |
|
4 | +if ( ! defined('EVENT_ESPRESSO_VERSION')) { |
|
5 | + exit('No direct script access allowed'); |
|
6 | 6 | } |
7 | 7 | |
8 | 8 | |
@@ -25,14 +25,14 @@ discard block |
||
25 | 25 | * @param int $code |
26 | 26 | * @param \Exception $previous |
27 | 27 | */ |
28 | - public function __construct( $class_name, $message = '', $code = 0, \Exception $previous = null ) { |
|
29 | - if ( empty( $message ) ) { |
|
28 | + public function __construct($class_name, $message = '', $code = 0, \Exception $previous = null) { |
|
29 | + if (empty($message)) { |
|
30 | 30 | $message = sprintf( |
31 | - __( 'The "%1$s" Class is either missing or invalid.', 'event_espresso' ), |
|
31 | + __('The "%1$s" Class is either missing or invalid.', 'event_espresso'), |
|
32 | 32 | $class_name |
33 | 33 | ); |
34 | 34 | } |
35 | - parent::__construct( $message, $code, $previous ); |
|
35 | + parent::__construct($message, $code, $previous); |
|
36 | 36 | } |
37 | 37 | |
38 | 38 | } |
@@ -1,8 +1,8 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | namespace EventEspresso\core\exceptions; |
3 | 3 | |
4 | -if ( ! defined( 'EVENT_ESPRESSO_VERSION' ) ) { |
|
5 | - exit( 'No direct script access allowed' ); |
|
4 | +if ( ! defined('EVENT_ESPRESSO_VERSION')) { |
|
5 | + exit('No direct script access allowed'); |
|
6 | 6 | } |
7 | 7 | |
8 | 8 | |
@@ -25,19 +25,19 @@ discard block |
||
25 | 25 | * @param int $code |
26 | 26 | * @param \Exception $previous |
27 | 27 | */ |
28 | - public function __construct( $file_path, $message = '', $code = 0, \Exception $previous = null ) { |
|
29 | - if ( empty( $message ) ) { |
|
28 | + public function __construct($file_path, $message = '', $code = 0, \Exception $previous = null) { |
|
29 | + if (empty($message)) { |
|
30 | 30 | $message = sprintf( |
31 | 31 | __( |
32 | 32 | 'The "%1$s" file is either missing or could not be read due to permissions. Please ensure that the following path is correct and verify that the file permissions are correct:%2$s %3$s', |
33 | 33 | 'event_espresso' |
34 | 34 | ), |
35 | - basename( $file_path ), |
|
35 | + basename($file_path), |
|
36 | 36 | '<br />', |
37 | 37 | $file_path |
38 | 38 | ); |
39 | 39 | } |
40 | - parent::__construct( $message, $code, $previous ); |
|
40 | + parent::__construct($message, $code, $previous); |
|
41 | 41 | } |
42 | 42 | |
43 | 43 | } |
@@ -1,8 +1,8 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | namespace EventEspresso\core\exceptions; |
3 | 3 | |
4 | -if ( ! defined( 'EVENT_ESPRESSO_VERSION' ) ) { |
|
5 | - exit( 'No direct script access allowed' ); |
|
4 | +if ( ! defined('EVENT_ESPRESSO_VERSION')) { |
|
5 | + exit('No direct script access allowed'); |
|
6 | 6 | } |
7 | 7 | |
8 | 8 | |
@@ -28,8 +28,8 @@ discard block |
||
28 | 28 | * @param int $code |
29 | 29 | * @param \Exception $previous |
30 | 30 | */ |
31 | - public function __construct( $identifier_type, $identifier, $message = '', $code = 0, \Exception $previous = null ) { |
|
32 | - if ( empty( $message ) ) { |
|
31 | + public function __construct($identifier_type, $identifier, $message = '', $code = 0, \Exception $previous = null) { |
|
32 | + if (empty($message)) { |
|
33 | 33 | $message = sprintf( |
34 | 34 | __( |
35 | 35 | 'The requested entity with %1$s="%2$s" was not found.', |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | $identifier |
40 | 40 | ); |
41 | 41 | } |
42 | - parent::__construct( $message, $code, $previous ); |
|
42 | + parent::__construct($message, $code, $previous); |
|
43 | 43 | } |
44 | 44 | |
45 | 45 |
@@ -1,8 +1,8 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | namespace EventEspresso\core\exceptions; |
3 | 3 | |
4 | -if ( ! defined( 'EVENT_ESPRESSO_VERSION' ) ) { |
|
5 | - exit( 'No direct script access allowed' ); |
|
4 | +if ( ! defined('EVENT_ESPRESSO_VERSION')) { |
|
5 | + exit('No direct script access allowed'); |
|
6 | 6 | } |
7 | 7 | |
8 | 8 | |
@@ -26,8 +26,8 @@ discard block |
||
26 | 26 | * @param int $code |
27 | 27 | * @param \Exception $previous |
28 | 28 | */ |
29 | - public function __construct( $form_name, $message = '', $code = 0, \Exception $previous = null ) { |
|
30 | - if ( empty( $message ) ) { |
|
29 | + public function __construct($form_name, $message = '', $code = 0, \Exception $previous = null) { |
|
30 | + if (empty($message)) { |
|
31 | 31 | $message = sprintf( |
32 | 32 | __( |
33 | 33 | 'The data for the "%1$s" form, is either missing or was not submitted properly.', |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | $form_name |
37 | 37 | ); |
38 | 38 | } |
39 | - parent::__construct( $message, $code, $previous ); |
|
39 | + parent::__construct($message, $code, $previous); |
|
40 | 40 | } |
41 | 41 | |
42 | 42 | } |
@@ -1,8 +1,8 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | namespace EventEspresso\core\exceptions; |
3 | 3 | |
4 | -if ( ! defined( 'EVENT_ESPRESSO_VERSION' ) ) { |
|
5 | - exit( 'No direct script access allowed' ); |
|
4 | +if ( ! defined('EVENT_ESPRESSO_VERSION')) { |
|
5 | + exit('No direct script access allowed'); |
|
6 | 6 | } |
7 | 7 | /** |
8 | 8 | * Class InvalidEntityException |
@@ -23,8 +23,8 @@ discard block |
||
23 | 23 | * @param int $code |
24 | 24 | * @param \Exception $previous |
25 | 25 | */ |
26 | - public function __construct( $actual, $expected, $message = '', $code = 0, \Exception $previous = null ) { |
|
27 | - if ( empty( $message ) ) { |
|
26 | + public function __construct($actual, $expected, $message = '', $code = 0, \Exception $previous = null) { |
|
27 | + if (empty($message)) { |
|
28 | 28 | $message = sprintf( |
29 | 29 | __( |
30 | 30 | 'The supplied entity is an instance of "%1$s", but an instance of "%2$s" was expected.', |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | $expected |
35 | 35 | ); |
36 | 36 | } |
37 | - parent::__construct( $message, $code, $previous ); |
|
37 | + parent::__construct($message, $code, $previous); |
|
38 | 38 | } |
39 | 39 | |
40 | 40 | } |