Completed
Push — develop ( 410ed6...c337fc )
by Paul
02:03
created
src/Video.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,7 +41,9 @@  discard block
 block discarded – undo
41 41
 
42 42
 	public function render()
43 43
 	{
44
-		if( !isset( $this->video->html ))return;
44
+		if( !isset( $this->video->html )) {
45
+			return;
46
+		}
45 47
 		return sprintf(
46 48
 			'<div class="video embed">%s%s</div>',
47 49
 			$this->renderScreenshot(),
@@ -114,7 +116,9 @@  discard block
 block discarded – undo
114 116
 
115 117
 		foreach( $this->args as $key => $value ) {
116 118
 			$method = $this->utility->buildMethodName( $key, 'set' );
117
-			if( !method_exists( $this, $method ))continue;
119
+			if( !method_exists( $this, $method )) {
120
+				continue;
121
+			}
118 122
 			call_user_func([ $this, $method ], $value );
119 123
 		}
120 124
 		return $this->args;
Please login to merge, or discard this patch.
src/Oembed.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,8 +37,12 @@
 block discarded – undo
37 37
 			'width'  => 1280,
38 38
 			'height' => 1280,
39 39
 		]);
40
-		if( $request === false )return;
41
-		if( !empty( $args['embed_type'] ) && $args['embed_type'] != $request->type )return;
40
+		if( $request === false ) {
41
+			return;
42
+		}
43
+		if( !empty( $args['embed_type'] ) && $args['embed_type'] != $request->type ) {
44
+			return;
45
+		}
42 46
 		return $this->modifyRequest( $request, $args );
43 47
 	}
44 48
 
Please login to merge, or discard this patch.