GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( 8a7927...881eb7 )
by Chris
10s
created
includes/pinterest-functions.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 // Exit if accessed directly
4
-if ( ! defined( 'ABSPATH' ) ) {
4
+if ( ! defined( 'ABSPATH' )) {
5 5
 	exit;
6 6
 }
7 7
 
@@ -84,15 +84,15 @@  discard block
 block discarded – undo
84 84
  */
85 85
 function ppp_pt_save_post_meta_boxes( $post_id, $post ) {
86 86
 
87
-	if ( ! ppp_should_save( $post_id, $post ) ) {
87
+	if ( ! ppp_should_save( $post_id, $post )) {
88 88
 		return;
89 89
 	}
90 90
 
91
-	if ( ! is_array( $_POST['_ppp_pinterest_data'] ) ) {
91
+	if ( ! is_array( $_POST['_ppp_pinterest_data'] )) {
92 92
 		return;
93 93
 	}
94 94
 
95
-	if ( isset( $_POST['_ppp_pinterest_data'] ) ) {
95
+	if (isset($_POST['_ppp_pinterest_data'])) {
96 96
 		$pinterest_data = $_POST['_ppp_pinterest_data'];
97 97
 		update_post_meta( $post_id, '_ppp_pt_media', $pinterest_data );
98 98
 	}
@@ -108,13 +108,13 @@  discard block
 block discarded – undo
108 108
  */
109 109
 function ppp_pt_open_graph_meta() {
110 110
 
111
-	if ( ! is_single() ) {
111
+	if ( ! is_single()) {
112 112
 		return;
113 113
 	}
114 114
 
115 115
 	global $post, $ppp_options;
116 116
 
117
-	if ( ! array_key_exists( $post->post_type, $ppp_options['post_types'] ) ) {
117
+	if ( ! array_key_exists( $post->post_type, $ppp_options['post_types'] )) {
118 118
 		return;
119 119
 	}
120 120
 
@@ -132,20 +132,20 @@  discard block
 block discarded – undo
132 132
 
133 133
 	$return = '';
134 134
 
135
-	if ( ! is_single() ) {
135
+	if ( ! is_single()) {
136 136
 		return $return;
137 137
 	}
138 138
 
139 139
 	global $post;
140 140
 
141 141
 
142
-	if ( empty( $post ) ) {
142
+	if (empty($post)) {
143 143
 		return;
144 144
 	}
145 145
 
146 146
 	$elements = ppp_pt_default_meta_elements();
147
-	foreach ( $elements as $name => $content ) {
148
-		$return .= '<meta name="' . $name . '" content="' . $content . '" />' . "\n";
147
+	foreach ($elements as $name => $content) {
148
+		$return .= '<meta name="'.$name.'" content="'.$content.'" />'."\n";
149 149
 	}
150 150
 
151 151
 	return apply_filters( 'ppp_pt_og_data', $return );
@@ -165,15 +165,15 @@  discard block
 block discarded – undo
165 165
 	$elements       = array();
166 166
 	$pinterest_data = get_post_meta( $post->ID, '_ppp_pt_media', true );
167 167
 
168
-	if ( ! empty( $pinterest_data['image'] ) ) {
168
+	if ( ! empty($pinterest_data['image'])) {
169 169
 		$elements['og:image'] = $pinterest_data['image'];
170 170
 
171
-		$thumb_id = ! empty( $pinterest_data['attachment_id'] ) ? (int) $pinterest_data['attachment_id'] : ppp_get_attachment_id_from_image_url( $pinterest_data['image'] ) ;
171
+		$thumb_id = ! empty($pinterest_data['attachment_id']) ? (int) $pinterest_data['attachment_id'] : ppp_get_attachment_id_from_image_url( $pinterest_data['image'] );
172 172
 
173
-		if ( ! empty( $thumb_id ) ) {
173
+		if ( ! empty($thumb_id)) {
174 174
 			$alt_text = ppp_get_attachment_alt_text( $thumb_id );
175 175
 			// When adding media via the WP Uploader, any 'alt text' supplied will be used as the accessible alt text.
176
-			if ( ! empty( $alt_text ) ) {
176
+			if ( ! empty($alt_text)) {
177 177
 				$elements['og:image:alt'] = esc_attr( $alt_text );
178 178
 			}
179 179
 		}
Please login to merge, or discard this patch.