Completed
Push — develop ( 490197...33f31d )
by Armando
28s queued 12s
created
lib/class-wp2d-helpers.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,8 @@
 block discarded – undo
32 32
 		// Make sure we're in debug mode.
33 33
 		if ( defined( 'WP2D_DEBUGGING' ) && true === WP2D_DEBUGGING ) {
34 34
 			$d = '';
35
-			foreach ( debug_backtrace() as $dbt ) { // phpcs:ignore
35
+			foreach ( debug_backtrace() as $dbt ) {
36
+// phpcs:ignore
36 37
 				extract( $dbt ); // phpcs:ignore
37 38
 				// Only trace back as far as the plugin goes.
38 39
 				if ( strstr( $file, plugin_dir_path( __DIR__ ) ) ) {
Please login to merge, or discard this patch.
lib/class-wp2d-options.php 1 patch
Braces   +13 added lines, -5 removed lines patch added patch discarded remove patch
@@ -599,8 +599,11 @@  discard block
 block discarded – undo
599 599
 		if ( 'settings_page_wp_to_diaspora' === get_current_screen()->id ) : ?>
600 600
 			<label><?php echo $checkbox; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?><?php esc_html_e( 'Yes', 'wp-to-diaspora' ); ?></label>
601 601
 			<p class="description"><?php echo esc_html( $description ); ?></p>
602
-		<?php else : ?>
603
-			<label title="<?php echo esc_attr( $description ); ?>"><?php echo $checkbox; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?><?php esc_html_e( 'Show "Posted at" link?', 'wp-to-diaspora' ); ?></label>
602
+		<?php else {
603
+	: ?>
604
+			<label title="<?php echo esc_attr( $description );
605
+}
606
+?>"><?php echo $checkbox; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?><?php esc_html_e( 'Show "Posted at" link?', 'wp-to-diaspora' ); ?></label>
604 607
 		<?php endif;
605 608
 	}
606 609
 
@@ -639,9 +642,11 @@  discard block
 block discarded – undo
639 642
 
640 643
 		<?php if ( $on_settings_page ) : ?>
641 644
 			<p class="description"><?php echo esc_html( $description ); ?></p>
642
-		<?php else : ?>
645
+		<?php else {
646
+	: ?>
643 647
 			</label>
644 648
 		<?php endif;
649
+}
645 650
 	}
646 651
 
647 652
 	/**
@@ -720,8 +725,11 @@  discard block
 block discarded – undo
720 725
 				<?php foreach ( $list as $id => $name ) : ?>
721 726
 					<label><input type="checkbox" name="wp_to_diaspora_settings[<?php echo esc_attr( $type ); ?>][]" value="<?php echo esc_attr( $id ); ?>" <?php checked( in_array( $id, $items, false ) ); // phpcs:ignore WordPress.PHP.StrictInArray.FoundNonStrictFalse ?>><?php echo esc_html( $name ); ?></label>
722 727
 				<?php endforeach; ?>
723
-			<?php else : ?>
724
-				<label><?php echo $empty_label; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></label>
728
+			<?php else {
729
+	: ?>
730
+				<label><?php echo $empty_label;
731
+}
732
+// phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></label>
725 733
 			<?php endif; ?>
726 734
 		</div>
727 735
 		<p class="description">
Please login to merge, or discard this patch.
lib/class-wp2d-post.php 1 patch
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -811,7 +811,8 @@  discard block
 block discarded – undo
811 811
 			$latest_post = end( $diaspora_post_history );
812 812
 
813 813
 			// Only show if this post is showing a message and the post is a fresh share.
814
-			if ( isset( $_GET['message'] ) && $post->post_modified === $latest_post['created_at'] ) { // phpcs:ignore
814
+			if ( isset( $_GET['message'] ) && $post->post_modified === $latest_post['created_at'] ) {
815
+// phpcs:ignore
815 816
 				printf(
816 817
 					'<div class="updated notice is-dismissible"><p>%1$s <a href="%2$s" target="_blank">%3$s</a></p></div>',
817 818
 					esc_html__( 'Successfully posted to diaspora*.', 'wp-to-diaspora' ),
@@ -829,7 +830,8 @@  discard block
 block discarded – undo
829 830
 	 */
830 831
 	public function ignore_post_error(): void {
831 832
 		// If "Ignore" link has been clicked, delete the post error meta data.
832
-		if ( isset( $_GET['wp2d_ignore_post_error'], $_GET['post'] ) ) { // phpcs:ignore
833
+		if ( isset( $_GET['wp2d_ignore_post_error'], $_GET['post'] ) ) {
834
+// phpcs:ignore
833 835
 			delete_post_meta( absint( $_GET['post'] ), '_wp_to_diaspora_post_error' ); // phpcs:ignore
834 836
 		}
835 837
 	}
@@ -863,7 +865,8 @@  discard block
 block discarded – undo
863 865
 			$latest_post = end( $diaspora_post_history );
864 866
 
865 867
 			// Only show if this post is a fresh share.
866
-			if ( get_post( $post_id )->post_modified === $latest_post['created_at'] ) { // phpcs:ignore
868
+			if ( get_post( $post_id )->post_modified === $latest_post['created_at'] ) {
869
+// phpcs:ignore
867 870
 				wp_send_json_success( [
868 871
 					'message' => esc_html__( 'Successfully posted to diaspora*.', 'wp-to-diaspora' ),
869 872
 					'action'  => [
Please login to merge, or discard this patch.
lib/class-wp2d.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,7 +71,8 @@  discard block
 block discarded – undo
71 71
 	 */
72 72
 	private function constants(): void {
73 73
 		// Are we in debugging mode?
74
-		if ( isset( $_GET['debugging'] ) ) { // phpcs:ignore
74
+		if ( isset( $_GET['debugging'] ) ) {
75
+// phpcs:ignore
75 76
 			define( 'WP2D_DEBUGGING', true );
76 77
 		}
77 78
 
@@ -376,7 +377,8 @@  discard block
 block discarded – undo
376 377
 	 * @todo esc_html
377 378
 	 */
378 379
 	public function check_pod_connection_status_callback(): void {
379
-		if ( ! defined( 'WP2D_DEBUGGING' ) && isset( $_REQUEST['debugging'] ) ) { // phpcs:ignore
380
+		if ( ! defined( 'WP2D_DEBUGGING' ) && isset( $_REQUEST['debugging'] ) ) {
381
+// phpcs:ignore
380 382
 			define( 'WP2D_DEBUGGING', true );
381 383
 		}
382 384
 
Please login to merge, or discard this patch.