Passed
Push — master ( fe5b90...baa8e1 )
by Paul
05:38
created
plugin/Controllers/PublicController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -32,10 +32,10 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.