Completed
Push — develop ( 811f38...1e789a )
by Paul
04:11
created
src/Helpers/Theme.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,9 @@
 block discarded – undo
72 72
 	public function pageTitle()
73 73
 	{
74 74
 		foreach( ['is_404', 'is_archive', 'is_home', 'is_page', 'is_search'] as $bool ) {
75
-			if( !$bool() )continue;
75
+			if( !$bool() ) {
76
+				continue;
77
+			}
76 78
 			$method = sprintf( 'get%sTitle', ucfirst( str_replace( 'is_', '', $bool )));
77 79
 			return $this->$method();
78 80
 		}
Please login to merge, or discard this patch.
src/Helpers/Media.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,7 +65,9 @@  discard block
 block discarded – undo
65 65
 	{
66 66
 		$image = $this->getImageSrc( $attachment->ID );
67 67
 
68
-		if( !$image )return;
68
+		if( !$image ) {
69
+			return;
70
+		}
69 71
 
70 72
 		return sprintf(
71 73
 			'<figure data-w="%s" data-h="%s" itemprop="associatedMedia" itemscope itemtype="http://schema.org/ImageObject">' .
@@ -126,7 +128,9 @@  discard block
 block discarded – undo
126 128
 	{
127 129
 		$thumbnail = wp_get_attachment_image_src( $id, 'thumbnail' );
128 130
 
129
-		if( !$thumbnail )return;
131
+		if( !$thumbnail ) {
132
+			return;
133
+		}
130 134
 
131 135
 		$medium = $this->normalizeImageSrc( wp_get_attachment_image_src( $id, 'medium' ), $thumbnail );
132 136
 		$large = $this->normalizeImageSrc( wp_get_attachment_image_src( $id, 'large' ), $medium );
Please login to merge, or discard this patch.