original_string: public function isLogined()
      {
          $session = $this->getSession();
          $cookie = $this->getCookie();
  
          if ($cookie->has(self::USER_SESSION)) {
              $login = $cookie->get(self::USER_SESSION);
              $login = unserialize(base64_decode($login));
          }elseif (false !== $session->has(self::USER_SESSION)) {
              $login = $session->get(self::USER_SESSION);
          }else{
              return false;
          }
  
          return $this->isSameIp($login);
      }
code: public function isLogined()
      {
          $session = $this->getSession();
          $cookie = $this->getCookie();
  
          if ($cookie->has(self::USER_SESSION)) {
              $login = $cookie->get(self::USER_SESSION);
              $login = unserialize(base64_decode($login));
          }elseif (false !== $session->has(self::USER_SESSION)) {
              $login = $session->get(self::USER_SESSION);
          }else{
              return false;
          }
  
          return $this->isSameIp($login);
      }
code_tokens: public function isLogined ( ) { $ session = $ this -> getSession ( ) ; $ cookie = $ this -> getCookie ( ) ; if ( $ cookie -> has ( self :: USER_SESSION ) ) { $ login = $ cookie -> get ( self :: USER_SESSION ) ; $ login = unserialize ( base64_decode ( $ login ) ) ; } elseif ( false !== $ session -> has ( self :: USER_SESSION ) ) { $ login = $ session -> get ( self :: USER_SESSION ) ; } else { return false ; } return $ this -> isSameIp ( $ login ) ; }
docstring: check is login usered
  
  @return bool
docstring_tokens: check is login usered