Completed
Push — develop ( 251fde...5649b4 )
by Paul
02:11
created
src/Image.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,7 +59,9 @@
 block discarded – undo
59 59
 
60 60
 		$attachment = get_post( $attachmentId );
61 61
 
62
-		if( is_null( $attachment ) || $attachment->post_type != 'attachment' )return;
62
+		if( is_null( $attachment ) || $attachment->post_type != 'attachment' ) {
63
+			return;
64
+		}
63 65
 
64 66
 		return $attachment->ID;
65 67
 	}
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
@@ -37,7 +37,9 @@  discard block
 block discarded – undo
37 37
 
38 38
 	public function render()
39 39
 	{
40
-		if( !isset( $this->video->html ))return;
40
+		if( !isset( $this->video->html )) {
41
+			return;
42
+		}
41 43
 		return sprintf(
42 44
 			'<div class="video embed">%s%s</div>',
43 45
 			$this->renderScreenshot(),
@@ -61,7 +63,9 @@  discard block
 block discarded – undo
61 63
 
62 64
 	public function renderScreenshot()
63 65
 	{
64
-		if( !$this->args['image'] )return;
66
+		if( !$this->args['image'] ) {
67
+			return;
68
+		}
65 69
 		return sprintf( '<div class="video-screenshot" style="background-image: url(%s)">%s</div>%s',
66 70
 			$this->args['image'],
67 71
 			$this->renderPlayButton(),
@@ -108,7 +112,9 @@  discard block
 block discarded – undo
108 112
 
109 113
 		foreach( $this->args as $key => $value ) {
110 114
 			$method = $this->utility->buildMethodName( $key, 'set' );
111
-			if( !method_exists( $this, $method ))continue;
115
+			if( !method_exists( $this, $method )) {
116
+				continue;
117
+			}
112 118
 			call_user_func([ $this, $method ], $value );
113 119
 		}
114 120
 		return $this->args;
Please login to merge, or discard this patch.