Completed
Push — develop ( 13bd87...d494ed )
by Paul
02:08
created
src/Helpers/Render.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,7 +33,9 @@  discard block
 block discarded – undo
33 33
 	{
34 34
 		$post = get_post( $postId );
35 35
 
36
-		if( !$postId || !$post )return;
36
+		if( !$postId || !$post ) {
37
+			return;
38
+		}
37 39
 		if( !$title ) {
38 40
 			$title = $post->post_title;
39 41
 		}
@@ -71,7 +73,9 @@  discard block
 block discarded – undo
71 73
 			? $this->postmeta->get( $metaKey )
72 74
 			: $this->theme->pageTitle();
73 75
 
74
-		if( !$value )return;
76
+		if( !$value ) {
77
+			return;
78
+		}
75 79
 
76 80
 		$this->utility->printTag( $tag, wp_strip_all_tags( $value ), $attributes );
77 81
 	}
Please login to merge, or discard this patch.
src/Video.php 1 patch
Braces   +9 added lines, -3 removed lines patch added patch discarded remove patch
@@ -51,7 +51,9 @@  discard block
 block discarded – undo
51 51
 
52 52
 	public function renderScreenshot()
53 53
 	{
54
-		if( !$this->args['image'] )return;
54
+		if( !$this->args['image'] ) {
55
+			return;
56
+		}
55 57
 		return sprintf( '<div class="video-screenshot" style="background-image: url(%s)">%s</div>',
56 58
 			$this->args['image'],
57 59
 			$this->renderPlayButton()
@@ -60,7 +62,9 @@  discard block
 block discarded – undo
60 62
 
61 63
 	public function render()
62 64
 	{
63
-		if( !isset( $this->video->html ))return;
65
+		if( !isset( $this->video->html )) {
66
+			return;
67
+		}
64 68
 		return sprintf(
65 69
 			'<div class="video embed">%s%s</div>',
66 70
 			$this->renderScreenshot(),
@@ -93,7 +97,9 @@  discard block
 block discarded – undo
93 97
 
94 98
 		foreach( $this->args as $key => $value ) {
95 99
 			$method = $this->utility->buildMethodName( $key, 'set' );
96
-			if( !method_exists( $this, $method ))continue;
100
+			if( !method_exists( $this, $method )) {
101
+				continue;
102
+			}
97 103
 			call_user_func([ $this, $method ], $value );
98 104
 		}
99 105
 		return $this->args;
Please login to merge, or discard this patch.
src/Image.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,9 @@
 block discarded – undo
26 26
 		if( !filter_var( $attachment, FILTER_VALIDATE_INT )) {
27 27
 			$attachment = $this->postmeta->get( $attachment );
28 28
 		}
29
-		if( !$attachment )return;
29
+		if( !$attachment ) {
30
+			return;
31
+		}
30 32
 
31 33
 		if( $thumbnail = wp_get_attachment_image_src( $attachment, 'thumbnail' )) {
32 34
 			$medium = $this->normalizeSrc( wp_get_attachment_image_src( $attachment, 'medium' ), $thumbnail );
Please login to merge, or discard this patch.