Skip to content

Commit

Permalink
linting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jazzsequence committed Sep 12, 2023
1 parent 4de4711 commit 843652d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion inc/class-wp-saml-auth-cli.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,5 +131,4 @@ function wpsax_filter_option( \$value, \$option_name ) {
EOT;
return $function;
}

}
4 changes: 2 additions & 2 deletions inc/class-wp-saml-auth-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,14 +152,14 @@ public static function render_page_content() {
<p>
<?php
// translators: Link to the plugin settings page.
echo sprintf( wp_kses( __( 'Settings are defined with a filter and unavailable for editing through the backend. <a href="%s">Visit the plugin page</a> for more information.', 'wp-saml-auth' ), $allowed_html ), 'https://wordpress.org/plugins/wp-saml-auth/' );
printf( wp_kses( __( 'Settings are defined with a filter and unavailable for editing through the backend. <a href="%s">Visit the plugin page</a> for more information.', 'wp-saml-auth' ), $allowed_html ), 'https://wordpress.org/plugins/wp-saml-auth/' );
?>
</p>
<?php else : ?>
<p>
<?php
// translators: Link to the plugin settings page.
echo sprintf( wp_kses( __( 'Use the following settings to configure WP SAML Auth with the \'internal\' connection type. <a href="%s">Visit the plugin page</a> for more information.', 'wp-saml-auth' ), $allowed_html ), 'https://wordpress.org/plugins/wp-saml-auth/' );
printf( wp_kses( __( 'Use the following settings to configure WP SAML Auth with the \'internal\' connection type. <a href="%s">Visit the plugin page</a> for more information.', 'wp-saml-auth' ), $allowed_html ), 'https://wordpress.org/plugins/wp-saml-auth/' );
?>
</p>
<?php if ( WP_SAML_Auth_Options::do_required_settings_have_values() ) : ?>
Expand Down
4 changes: 2 additions & 2 deletions inc/class-wp-saml-auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ public function filter_login_body_class( $classes ) {
* @param string $password Password supplied by the user.
* @return mixed
*/
public function filter_authenticate( $user, $username, $password ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable
public function filter_authenticate( $user, $username, $password ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable,Generic.CodeAnalysis.UnusedFunctionParameter.FoundAfterLastUsed

$permit_wp_login = self::get_option( 'permit_wp_login' );
if ( is_a( $user, 'WP_User' ) && $permit_wp_login ) {
Expand Down Expand Up @@ -270,7 +270,7 @@ public function do_saml_authentication() {
|| ( ! $permit_wp_login && false === stripos( $redirect_to, parse_url( wp_login_url(), PHP_URL_PATH ) ) ) ) {
add_filter(
'login_redirect',
function() use ( $redirect_to ) {
function () use ( $redirect_to ) {
return $redirect_to;
},
1
Expand Down

0 comments on commit 843652d

Please sign in to comment.