Completed
Branch FET/Gutenberg/11426/event-atte... (b97e58)
by
unknown
59:18 queued 44:03
created
core/exceptions/EntityConstructionException.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -2,8 +2,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
core/exceptions/UnexpectedEntityException.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
core/exceptions/EntityNotFoundException.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
core/exceptions/InvalidFormSubmissionException.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
core/exceptions/InsufficientPermissionsException.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  discard block
 block discarded – undo
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
 
@@ -24,8 +24,8 @@  discard block
 block discarded – undo
24 24
 	 * @param  int $code
25 25
 	 * @param  \Exception $previous
26 26
 	 */
27
-	public function __construct( $action, $message = '', $code = 0, \Exception $previous = null ) {
28
-		if ( empty( $message ) ) {
27
+	public function __construct($action, $message = '', $code = 0, \Exception $previous = null) {
28
+		if (empty($message)) {
29 29
 			$message = sprintf(
30 30
 				__(
31 31
 					'We\'re sorry, but you do not have the required permissions to perform the following action: %1$s',
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 				ucwords(str_replace('_', ' ', $action))
35 35
 			);
36 36
 		}
37
-		parent::__construct( $message, $code, $previous );
37
+		parent::__construct($message, $code, $previous);
38 38
 	}
39 39
 
40 40
 
Please login to merge, or discard this patch.
core/exceptions/InvalidIdentifierException.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  discard block
 block discarded – undo
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 InvalidIdentifierException
@@ -23,8 +23,8 @@  discard block
 block discarded – undo
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 identifier "%1$s" is invalid. A value like "%2$s" was expected.',
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
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
  }
Please login to merge, or discard this patch.
core/data_migration_scripts/EE_Data_Migration_Script_Stage.core.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
  * _migration_step() (ie, it its a count of rows in the old attendees table in _count_records_to_migrate(), it should also be OLD attendee rows migrated
35 35
  * on each call to _migration_step().
36 36
  */
37
-abstract class EE_Data_Migration_Script_Stage extends EE_Data_Migration_Class_Base{
37
+abstract class EE_Data_Migration_Script_Stage extends EE_Data_Migration_Class_Base {
38 38
 	/**
39 39
 	 * The migration script this is a stage of
40 40
 	 * @var EE_Data_Migration_Script_Base
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 	 * called by EE_Data_Migration_Script_Base's __construct() method so children don't have to
48 48
 	 * @param EE_Data_Migration_Script_Base $migration_script
49 49
 	 */
50
-	public function _construct_finalize($migration_script){
50
+	public function _construct_finalize($migration_script) {
51 51
 		$this->_migration_script = $migration_script;
52 52
 	}
53 53
 
@@ -58,13 +58,13 @@  discard block
 block discarded – undo
58 58
 	 * @param int $num_items_to_migrate
59 59
 	 * @return int
60 60
 	 */
61
-	public function migration_step($num_items_to_migrate=50){
61
+	public function migration_step($num_items_to_migrate = 50) {
62 62
 		//before we run the migration step, we want ot take note of warnings that get outputted
63 63
 		ob_start();
64 64
 		$items_migrated = $this->_migration_step($num_items_to_migrate);
65 65
 		$output = ob_get_contents();
66 66
 		ob_end_clean();
67
-		if( $output ){
67
+		if ($output) {
68 68
 			$this->add_error($output);
69 69
 		}
70 70
 		$this->_records_migrated += $items_migrated;
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 	 * @param int $num_items_to_migrate
83 83
 	 * @return int number of items ACTUALLY migrated
84 84
 	 */
85
-	abstract protected function _migration_step($num_items_to_migrate=50);
85
+	abstract protected function _migration_step($num_items_to_migrate = 50);
86 86
 
87 87
 	/**
88 88
 	 * Counts the records that have been migrated so far
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 	 * returns an array of strings describing errors
97 97
 	 * @return array
98 98
 	 */
99
-	public function get_errors(){
99
+	public function get_errors() {
100 100
 		return $this->_errors;
101 101
 	}
102 102
 
@@ -106,9 +106,9 @@  discard block
 block discarded – undo
106 106
 	 * to have been made from the properties_as_array() function.
107 107
 	 * @param array $array_of_properties like what's produced from properties_as_array() method
108 108
 	 */
109
-	public function instantiate_from_array_of_properties($array_of_properties){
109
+	public function instantiate_from_array_of_properties($array_of_properties) {
110 110
 		unset($array_of_properties['class']);
111
-		foreach($array_of_properties as $property_name => $property_value){
111
+		foreach ($array_of_properties as $property_name => $property_value) {
112 112
 			$this->{$property_name} = $property_value;
113 113
 		}
114 114
 	}
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
 	 * Gets the script this is a stage of
118 118
 	 * @return EE_Data_Migration_Script_Base
119 119
 	 */
120
-	protected function get_migration_script(){
120
+	protected function get_migration_script() {
121 121
 		return $this->_migration_script;
122 122
 	}
123 123
 }
Please login to merge, or discard this patch.
core/admin/templates/admin_details_legend.template.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -2,25 +2,25 @@
 block discarded – undo
2 2
 //this displays any legends with an array of $items that are indexed by id for each item and each item itself is an array of 'icon' and 'desc'.
3 3
 
4 4
 //figure out the columns based on the count of items (we want a max of 6 items per column).
5
-$per_col = isset( $per_column ) ? $per_column : 5;
5
+$per_col = isset($per_column) ? $per_column : 5;
6 6
 $count = 1;
7 7
 ?>
8 8
 <div class="ee-list-table-legend-container">
9 9
 	<h3><?php _e('Legend', 'event_espresso'); ?></h3>
10 10
 	<dl class="alignleft ee-list-table-legend">
11
-		<?php foreach ( $items as $item => $details ) : ?>
12
-			<?php if ( $per_col < $count ) : ?>
11
+		<?php foreach ($items as $item => $details) : ?>
12
+			<?php if ($per_col < $count) : ?>
13 13
 				</dl>
14 14
 				<dl class="alignleft ee-list-table-legend">
15 15
 			<?php $count = 1; endif; ?>
16 16
 			<dt id="ee-legend-item-<?php echo $item; ?>">
17
-				<?php $class = ! empty( $details['class'] ) ? $details['class'] : 'ee-legend-img-container'; ?>
18
-				<?php if ( strpos( $details[ 'class' ], '<span' ) !== false ) {
17
+				<?php $class = ! empty($details['class']) ? $details['class'] : 'ee-legend-img-container'; ?>
18
+				<?php if (strpos($details['class'], '<span') !== false) {
19 19
 					echo $class;
20 20
 				} else { ?>
21 21
 				<span class="<?php echo $class; ?>">
22
-					<?php if ( ! empty( $details[ 'icon' ] ) ) : ?>
23
-						<img src="<?php echo $details[ 'icon' ]; ?>" class="ee-legend-icon" alt="<?php echo esc_attr( $details[ 'desc' ] ); ?>"/>
22
+					<?php if ( ! empty($details['icon'])) : ?>
23
+						<img src="<?php echo $details['icon']; ?>" class="ee-legend-icon" alt="<?php echo esc_attr($details['desc']); ?>"/>
24 24
 					<?php endif; ?>
25 25
 				</span>
26 26
 				<?php } ?>
Please login to merge, or discard this patch.
core/admin/templates/admin_details_wrapper.template.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
 /** @var string|WP_Screen $current_page */
5 5
 global $post_type, $post;
6 6
 //action for registering metaboxes
7
-do_action( 'add_meta_boxes', $post_type, $post );
7
+do_action('add_meta_boxes', $post_type, $post);
8 8
 ?>
9 9
 <?php if ( ! empty($admin_page_header)) : ?>
10 10
 <div id="admin-page-header">
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 		<!-- admin-page-header -->
16 16
 	<div id="post-body" class="metabox-holder columns-2">
17 17
 
18
-	<?php if ( ! empty( $post_body_content )) : ?>
18
+	<?php if ( ! empty($post_body_content)) : ?>
19 19
 		<div id="post-body-content">
20 20
 			<?php echo $post_body_content; ?>
21 21
 		</div>
@@ -23,13 +23,13 @@  discard block
 block discarded – undo
23 23
 	<?php endif; ?>
24 24
 
25 25
 		<div id="postbox-container-1" class="postbox-container">
26
-			<?php do_meta_boxes( $current_page, 'side', NULL ); ?>
26
+			<?php do_meta_boxes($current_page, 'side', NULL); ?>
27 27
 		</div>
28 28
 		<!-- postbox-container-1 -->
29 29
 
30 30
 		<div id="postbox-container-2" class="postbox-container">
31
-			<?php do_meta_boxes( $current_page, 'normal', NULL ); ?>
32
-			<?php do_meta_boxes( $current_page, 'advanced', NULL ); ?>
31
+			<?php do_meta_boxes($current_page, 'normal', NULL); ?>
32
+			<?php do_meta_boxes($current_page, 'advanced', NULL); ?>
33 33
 		</div>
34 34
 		<!-- postbox-container-2 -->
35 35
         <div class="clear"></div>
Please login to merge, or discard this patch.