Code Duplication    Length = 8-8 lines in 2 locations

application/third_party/Ion-Auth/libraries/Ion_auth.php 1 location

@@ 391-398 (lines=8) @@
388
389
		$identity = $this->config->item('identity', 'ion_auth');
390
391
                if (substr(CI_VERSION, 0, 1) == '2')
392
		{
393
			$this->session->unset_userdata( array($identity => '', 'id' => '', 'user_id' => '') );
394
                }
395
                else
396
                {
397
                	$this->session->unset_userdata( array($identity, 'id', 'user_id') );
398
                }
399
400
		// delete the remember me cookies if they exist
401
		if (get_cookie($this->config->item('identity_cookie_name', 'ion_auth')))

application/third_party/Ion-Auth/models/Ion_auth_model.php 1 location

@@ 1067-1074 (lines=8) @@
1064
1065
                    $identity = $this->config->item('identity', 'ion_auth');
1066
1067
                    if (substr(CI_VERSION, 0, 1) == '2')
1068
                    {
1069
                        $this->session->unset_userdata( array($identity => '', 'id' => '', 'user_id' => '') );
1070
                    }
1071
                    else
1072
                    {
1073
                        $this->session->unset_userdata( array($identity, 'id', 'user_id') );
1074
                    }
1075
                    return false;
1076
                }
1077
            }