Passed
Branch master (a6d779)
by ANDRE
04:02 queued 01:46
created
simple-featured-image-column.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@  discard block
 block discarded – undo
9 9
  * License: GPLv2+
10 10
  **/
11 11
 
12
-  if (!defined( 'ABSPATH' ) || preg_match('#'.basename( __FILE__ ).'#', $_SERVER['PHP_SELF'])) {
12
+  if (!defined('ABSPATH') || preg_match('#'.basename(__FILE__).'#', $_SERVER['PHP_SELF'])) {
13 13
   	die("Hey, dude! What are you doing here?");
14 14
   }
15 15
 
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 				$columns = array();
48 48
 			}
49 49
 			$new = array();
50
-			foreach($columns as $key => $title){
50
+			foreach ($columns as $key => $title) {
51 51
 				if ($key == 'title') {
52 52
 					$new['featured-image'] = __('Image', 'wordpress');
53 53
 				}
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 				$size = 'thumbnail';
69 69
 				echo get_the_post_thumbnail($post_id, $size, 'style='.$style);
70 70
 			} else {
71
-				echo '<img style="'. $style .'" src="'. esc_url(plugins_url('images/default.png', __FILE__)) .'" />';
71
+				echo '<img style="'.$style.'" src="'.esc_url(plugins_url('images/default.png', __FILE__)).'" />';
72 72
 			}	
73 73
 		}
74 74
 	}
Please login to merge, or discard this patch.