Code Duplication    Length = 4-7 lines in 2 locations

includes/services/wsl.authentication.php 1 location

@@ 83-86 (lines=4) @@
80
	// > check for wsl actions
81
	$action = isset( $_REQUEST['action'] ) ? $_REQUEST['action'] : null;
82
83
	if( ! in_array( $action, array( "wordpress_social_authenticate", "wordpress_social_profile_completion", "wordpress_social_account_linking", "wordpress_social_authenticated" ) ) )
84
	{
85
		return false;
86
	}
87
88
	require_once WORDPRESS_SOCIAL_LOGIN_ABS_PATH . 'hybridauth/library/src/autoload.php';
89

includes/services/wsl.session.php 1 location

@@ 20-26 (lines=7) @@
17
	$action = isset( $_REQUEST['action'] ) ? $_REQUEST['action'] : null;
18
	$page = isset( $_GET['page'] ) ? $_GET['page'] : null;
19
20
    if(
21
        ! in_array( $action, array( "wordpress_social_authenticate", "wordpress_social_profile_completion", "wordpress_social_account_linking", "wordpress_social_authenticated" ) )
22
        && ! in_array( $page, array( "wordpress-social-login" ) )
23
    )
24
	{
25
		return false;
26
	}
27
28
    if ( headers_sent() )
29
    {