@@ -32,10 +32,10 @@ discard block |
||
32 | 32 | public function filterEnqueuedScripts( $tag, $handle ) |
33 | 33 | { |
34 | 34 | $scripts = [Application::ID.'/google-recaptcha']; |
35 | - if( in_array( $handle, apply_filters( 'site-reviews/async-scripts', $scripts ))) { |
|
35 | + if( in_array( $handle, apply_filters( 'site-reviews/async-scripts', $scripts ) ) ) { |
|
36 | 36 | $tag = str_replace( ' src=', ' async src=', $tag ); |
37 | 37 | } |
38 | - if( in_array( $handle, apply_filters( 'site-reviews/defer-scripts', $scripts ))) { |
|
38 | + if( in_array( $handle, apply_filters( 'site-reviews/defer-scripts', $scripts ) ) ) { |
|
39 | 39 | $tag = str_replace( ' src=', ' defer src=', $tag ); |
40 | 40 | } |
41 | 41 | return $tag; |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | public function routerSubmitReview( array $request ) |
86 | 86 | { |
87 | 87 | $validated = glsr( ValidateReview::class )->validate( $request ); |
88 | - if( !empty( $validated->error ) || $validated->recaptchaIsUnset )return; |
|
89 | - $this->execute( new CreateReview( $validated->request )); |
|
88 | + if( !empty($validated->error) || $validated->recaptchaIsUnset )return; |
|
89 | + $this->execute( new CreateReview( $validated->request ) ); |
|
90 | 90 | } |
91 | 91 | } |