| @@ -27,7 +27,7 @@ discard block | ||
| 27 | 27 | 'loader' => '<div class="glsr-loader"></div>', | 
| 28 | 28 | 'screen_reader_text' => __( 'Site Reviews navigation', 'site-reviews' ), | 
| 29 | 29 | ], | 
| 30 | - ]); | |
| 30 | + ] ); | |
| 31 | 31 | } | 
| 32 | 32 | |
| 33 | 33 | /** | 
| @@ -35,12 +35,12 @@ discard block | ||
| 35 | 35 | */ | 
| 36 | 36 | protected function buildLinks() | 
| 37 | 37 |  	{ | 
| 38 | - $args = glsr( Style::class )->paginationArgs([ | |
| 38 | + $args = glsr( Style::class )->paginationArgs( [ | |
| 39 | 39 | 'current' => $this->args['paged'], | 
| 40 | 40 | 'total' => $this->args['total'], | 
| 41 | - ]); | |
| 41 | + ] ); | |
| 42 | 42 |  		if( is_front_page() ) { | 
| 43 | - unset( $args['format'] ); | |
| 43 | + unset($args['format']); | |
| 44 | 44 | } | 
| 45 | 45 |  		if( $args['type'] == 'array' ) { | 
| 46 | 46 | $args['type'] = 'plain'; | 
| @@ -56,6 +56,6 @@ discard block | ||
| 56 | 56 | return wp_parse_args( $args, [ | 
| 57 | 57 | 'paged' => glsr( QueryBuilder::class )->getPaged(), | 
| 58 | 58 | 'total' => 1, | 
| 59 | - ]); | |
| 59 | + ] ); | |
| 60 | 60 | } | 
| 61 | 61 | } | 
| @@ -43,7 +43,7 @@ discard block | ||
| 43 | 43 | $this->newSettings['settings.submissions'][] = 'terms'; | 
| 44 | 44 | $this->migrateNotificationSettings(); | 
| 45 | 45 | $this->migrateRecaptchaSettings(); | 
| 46 | - glsr( OptionManager::class )->set( glsr( Helper::class )->convertDotNotationArray( $this->newSettings )); | |
| 46 | + glsr( OptionManager::class )->set( glsr( Helper::class )->convertDotNotationArray( $this->newSettings ) ); | |
| 47 | 47 | } | 
| 48 | 48 | |
| 49 | 49 | /** | 
| @@ -61,7 +61,7 @@ discard block | ||
| 61 | 61 | */ | 
| 62 | 62 | protected function getOldSettings() | 
| 63 | 63 |  	{ | 
| 64 | - $settings = glsr( Helper::class )->flattenArray( get_option( Application::ID.'-v2', [] )); | |
| 64 | + $settings = glsr( Helper::class )->flattenArray( get_option( Application::ID.'-v2', [] ) ); | |
| 65 | 65 | return wp_parse_args( $settings, [ | 
| 66 | 66 | 'settings.general.notification' => '', | 
| 67 | 67 | 'settings.general.webhook_url' => '', | 
| @@ -74,7 +74,7 @@ discard block | ||
| 74 | 74 | 'settings.reviews-form.recaptcha.key' => $this->newSettings['submissions.recaptcha.key'], | 
| 75 | 75 | 'settings.reviews-form.recaptcha.secret' => $this->newSettings['submissions.recaptcha.secret'], | 
| 76 | 76 | 'settings.reviews-form.recaptcha.position' => $this->newSettings['submissions.recaptcha.position'], | 
| 77 | - ]); | |
| 77 | + ] ); | |
| 78 | 78 | } | 
| 79 | 79 | |
| 80 | 80 | /** | 
| @@ -98,7 +98,7 @@ discard block | ||
| 98 | 98 | */ | 
| 99 | 99 | protected function migrateRecaptchaSettings() | 
| 100 | 100 |  	{ | 
| 101 | -		if( in_array( $this->oldSettings['settings.reviews-form.recaptcha.integration'], ['custom', 'invisible-recaptcha'] )) { | |
| 101 | +		if( in_array( $this->oldSettings['settings.reviews-form.recaptcha.integration'], ['custom', 'invisible-recaptcha'] ) ) { | |
| 102 | 102 | $this->newSettings['settings.submissions.recaptcha.integration'] == 'all'; | 
| 103 | 103 | } | 
| 104 | 104 |  		if( $this->oldSettings['settings.reviews-form.recaptcha.integration'] == 'invisible-recaptcha' ) { | 
| @@ -106,7 +106,7 @@ discard block | ||
| 106 | 106 | 'BadgePosition' => $this->oldSettings['settings.reviews-form.recaptcha.position'], | 
| 107 | 107 | 'SecretKey' => $this->oldSettings['settings.reviews-form.recaptcha.secret'], | 
| 108 | 108 | 'SiteKey' => $this->oldSettings['settings.reviews-form.recaptcha.key'], | 
| 109 | - ]); | |
| 109 | + ] ); | |
| 110 | 110 | $this->newSettings['settings.submissions.recaptcha.key'] = $invisibleRecaptchaOptions['SiteKey']; | 
| 111 | 111 | $this->newSettings['settings.submissions.recaptcha.secret'] = $invisibleRecaptchaOptions['SecretKey']; | 
| 112 | 112 | $this->newSettings['settings.submissions.recaptcha.position'] = $invisibleRecaptchaOptions['BadgePosition']; |