Passed
Push — master ( 3b6fab...7d2cd0 )
by Paul
04:26
created
plugin/Handlers/EnqueuePublicAssets.php 1 patch
Braces   +9 added lines, -3 removed lines patch added patch discarded remove patch
@@ -54,7 +54,9 @@  discard block
 block discarded – undo
54 54
 	 */
55 55
 	public function enqueuePolyfillService()
56 56
 	{
57
-		if( !apply_filters( 'site-reviews/assets/polyfill', true ))return;
57
+		if( !apply_filters( 'site-reviews/assets/polyfill', true )) {
58
+			return;
59
+		}
58 60
 		wp_enqueue_script(
59 61
 			Application::ID.'/polyfill',
60 62
 			'https://cdn.polyfill.io/v2/polyfill.js?features=Element.prototype.closest,Element.prototype.dataset,Event&flags=gated',
@@ -68,7 +70,9 @@  discard block
 block discarded – undo
68 70
 	 */
69 71
 	public function enqueueRecaptchaScript()
70 72
 	{
71
-		if( glsr( OptionManager::class )->get( 'settings.submissions.recaptcha.integration' ) != 'custom' )return;
73
+		if( glsr( OptionManager::class )->get( 'settings.submissions.recaptcha.integration' ) != 'custom' ) {
74
+			return;
75
+		}
72 76
 		$language = apply_filters( 'site-reviews/recaptcha/language', get_locale() );
73 77
 		wp_enqueue_script( Application::ID.'/google-recaptcha', add_query_arg([
74 78
 			'hl' => $language,
@@ -86,7 +90,9 @@  discard block
 block discarded – undo
86 90
 	public function inlineStyles()
87 91
 	{
88 92
 		$inlineStylesheetPath = glsr()->path( 'assets/styles/inline-styles.css' );
89
-		if( !apply_filters( 'site-reviews/assets/css', true ))return;
93
+		if( !apply_filters( 'site-reviews/assets/css', true )) {
94
+			return;
95
+		}
90 96
 		if( !file_exists( $inlineStylesheetPath )) {
91 97
 			glsr_log()->error( 'Inline stylesheet is missing: '.$inlineStylesheetPath );
92 98
 			return;
Please login to merge, or discard this patch.