Completed
Push — master ( 760553...dce43d )
by J.D.
03:49
created
src/components/points/admin/classes/screen/points/types.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -211,9 +211,12 @@
 block discarded – undo
211 211
 					<p>
212 212
 						<?php if ( $slug ) : ?>
213 213
 							<?php esc_html_e( 'Changes to this points type&#8217;s settings will affect all sites on this network.', 'wordpoints' ) ?>
214
-						<?php else : ?>
214
+						<?php else {
215
+	: ?>
215 216
 							<?php esc_html_e( 'The new points type will be global across all sites on this network.', 'wordpoints' ) ?>
216
-						<?php endif; ?>
217
+						<?php endif;
218
+}
219
+?>
217 220
 					</p>
218 221
 				</div>
219 222
 			<?php endif; ?>
Please login to merge, or discard this patch.
src/components/points/admin/screens/hooks-no-js.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -125,8 +125,10 @@
 block discarded – undo
125 125
 			<div class="hook-control-actions">
126 126
 				<?php if ( isset( $_GET['addnew'] ) ) : ?>
127 127
 					<a href="<?php echo esc_url( self_admin_url( 'admin.php?page=wordpoints_points_hooks' ) ); ?>" class="button alignleft"><?php esc_html_e( 'Cancel', 'wordpoints' ); ?></a>
128
-				<?php else :
128
+				<?php else {
129
+	:
129 130
 						submit_button( _x( 'Delete', 'points hook', 'wordpoints' ), 'button alignleft', 'removehook', false );
131
+}
130 132
 					endif;
131 133
 
132 134
 					submit_button( __( 'Save Hook', 'wordpoints' ), 'button-primary alignright', 'savehook', false );
Please login to merge, or discard this patch.
src/components/points/admin/includes/functions.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -290,9 +290,12 @@
 block discarded – undo
290 290
 
291 291
 	<?php if ( $has_form ) : ?>
292 292
 		<hr />
293
-	<?php else : ?>
293
+	<?php else {
294
+	: ?>
294 295
 		<br />
295
-	<?php endif; ?>
296
+	<?php endif;
297
+}
298
+?>
296 299
 
297 300
 	<div class="hook-instance-description">
298 301
 		<label for="<?php $hook->the_field_id( '_description' ); ?>"><?php echo esc_html_x( 'Description (optional):', 'points hook', 'wordpoints' ); ?></label>
Please login to merge, or discard this patch.
src/components/ranks/includes/class-wordpoints-rank-type.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -218,8 +218,11 @@
 block discarded – undo
218 218
 						name="<?php echo esc_attr( $name ); ?>"
219 219
 						<?php if ( $args['placeholders'] && 'hidden' !== $field['type'] ) : ?>
220 220
 						value="<% if ( typeof <?php echo preg_replace( '/[^a-z0-9_]/i', '', $name ); // WPCS: XSS OK ?> !== "undefined" ) { print( <?php echo preg_replace( '/[^a-z0-9_]/i', '', $name ); // WPCS: XSS OK ?> ); } %>"
221
-						<?php else : ?>
222
-						value="<?php echo esc_attr( $value ); ?>"
221
+						<?php else {
222
+	: ?>
223
+						value="<?php echo esc_attr( $value );
224
+}
225
+?>"
223 226
 						<?php endif; ?>
224 227
 						class="widefat"
225 228
 					/>
Please login to merge, or discard this patch.
src/admin/includes/class-wordpoints-modules-list-table.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -579,9 +579,12 @@
 block discarded – undo
579 579
 								<p>
580 580
 									<?php if ( ! empty( $module_data['description'] ) ) : ?>
581 581
 										<?php echo wp_kses( $module_data['description'] , 'wordpoints_module_description' ); ?>
582
-									<?php else : ?>
582
+									<?php else {
583
+	: ?>
583 584
 										&nbsp;
584
-									<?php endif; ?>
585
+									<?php endif;
586
+}
587
+?>
585 588
 								</p>
586 589
 							</div>
587 590
 							<div class="<?php echo esc_attr( $class ); ?> second module-version-author-uri">
Please login to merge, or discard this patch.