Conditions | 3 |
Paths | 4 |
Total Lines | 6 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 0 |
1 | <?php |
||
27 | public function filterEnqueuedScripts( $tag, $handle ) |
||
28 | { |
||
29 | return $handle == Application::ID.'/google-recaptcha' |
||
30 | && glsr( OptionManager::class )->get( 'settings.submissions.recaptcha.integration' ) == 'custom' |
||
31 | ? str_replace( ' src=', ' async defer src=', $tag ) |
||
32 | : $tag; |
||
33 | } |
||
57 |