@@ -54,7 +54,9 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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; |