@@ -37,7 +37,9 @@ discard block |
||
| 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 |
||
| 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( '%s<div class="video-poster" style="background-image: url(%s)">%s</div>', |
| 66 | 70 | $this->renderSpinner(), |
| 67 | 71 | $this->args['image'], |
@@ -108,7 +112,9 @@ discard block |
||
| 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; |