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 ( badf79...cdbb44 )
by Chris
13s queued 10s
created
includes/pinterest-functions.php 1 patch
Spacing   +13 added lines, -13 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,11 +84,11 @@  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 ( ! isset( $_POST['_ppp_pinterest_data'] ) || ! is_array( $_POST['_ppp_pinterest_data'] ) ) {
91
+	if ( ! isset($_POST['_ppp_pinterest_data']) || ! is_array( $_POST['_ppp_pinterest_data'] )) {
92 92
 		return;
93 93
 	}
94 94
 
@@ -105,13 +105,13 @@  discard block
 block discarded – undo
105 105
  */
106 106
 function ppp_pt_open_graph_meta() {
107 107
 
108
-	if ( ! is_single() ) {
108
+	if ( ! is_single()) {
109 109
 		return;
110 110
 	}
111 111
 
112 112
 	global $post, $ppp_options;
113 113
 
114
-	if ( ! array_key_exists( $post->post_type, $ppp_options['post_types'] ) ) {
114
+	if ( ! array_key_exists( $post->post_type, $ppp_options['post_types'] )) {
115 115
 		return;
116 116
 	}
117 117
 
@@ -129,20 +129,20 @@  discard block
 block discarded – undo
129 129
 
130 130
 	$return = '';
131 131
 
132
-	if ( ! is_single() ) {
132
+	if ( ! is_single()) {
133 133
 		return $return;
134 134
 	}
135 135
 
136 136
 	global $post;
137 137
 
138 138
 
139
-	if ( empty( $post ) ) {
139
+	if (empty($post)) {
140 140
 		return;
141 141
 	}
142 142
 
143 143
 	$elements = ppp_pt_default_meta_elements();
144
-	foreach ( $elements as $name => $content ) {
145
-		$return .= '<meta name="' . $name . '" content="' . $content . '" />' . "\n";
144
+	foreach ($elements as $name => $content) {
145
+		$return .= '<meta name="'.$name.'" content="'.$content.'" />'."\n";
146 146
 	}
147 147
 
148 148
 	return apply_filters( 'ppp_pt_og_data', $return );
@@ -162,15 +162,15 @@  discard block
 block discarded – undo
162 162
 	$elements       = array();
163 163
 	$pinterest_data = get_post_meta( $post->ID, '_ppp_pt_media', true );
164 164
 
165
-	if ( ! empty( $pinterest_data['image'] ) ) {
165
+	if ( ! empty($pinterest_data['image'])) {
166 166
 		$elements['og:image'] = $pinterest_data['image'];
167 167
 
168
-		$thumb_id = ! empty( $pinterest_data['attachment_id'] ) ? (int) $pinterest_data['attachment_id'] : ppp_get_attachment_id_from_image_url( $pinterest_data['image'] ) ;
168
+		$thumb_id = ! empty($pinterest_data['attachment_id']) ? (int) $pinterest_data['attachment_id'] : ppp_get_attachment_id_from_image_url( $pinterest_data['image'] );
169 169
 
170
-		if ( ! empty( $thumb_id ) ) {
170
+		if ( ! empty($thumb_id)) {
171 171
 			$alt_text = ppp_get_attachment_alt_text( $thumb_id );
172 172
 			// When adding media via the WP Uploader, any 'alt text' supplied will be used as the accessible alt text.
173
-			if ( ! empty( $alt_text ) ) {
173
+			if ( ! empty($alt_text)) {
174 174
 				$elements['og:image:alt'] = esc_attr( $alt_text );
175 175
 			}
176 176
 		}
Please login to merge, or discard this patch.