original_string: public static function isTokenValid($token, $expire)
      {
          if (empty($token) || empty($expire)) {
              return false;
          }
          $parts = explode('_', $token);
          $timestamp = (int)end($parts);
          return $timestamp + (int)$expire >= time();
      }
code: public static function isTokenValid($token, $expire)
      {
          if (empty($token) || empty($expire)) {
              return false;
          }
          $parts = explode('_', $token);
          $timestamp = (int)end($parts);
          return $timestamp + (int)$expire >= time();
      }
code_tokens: public static function isTokenValid ( $ token , $ expire ) { if ( empty ( $ token ) || empty ( $ expire ) ) { return false ; } $ parts = explode ( '_' , $ token ) ; $ timestamp = ( int ) end ( $ parts ) ; return $ timestamp + ( int ) $ expire >= time ( ) ; }
docstring: Finds out if given token type is valid.
  @param string $token activation token
  @param int $expire expire time
  @return bool
docstring_tokens: Finds out if given token type is valid .