original_string: public function byId($id)
      {
          if ($user = $this->sentinel->getUserRepository()->findById($id)) {
              $this->sentinel->setUser($user);
  
              return true;
          }
  
          return false;
      }
code: public function byId($id)
      {
          if ($user = $this->sentinel->getUserRepository()->findById($id)) {
              $this->sentinel->setUser($user);
  
              return true;
          }
  
          return false;
      }
code_tokens: public function byId ( $ id ) { if ( $ user = $ this -> sentinel -> getUserRepository ( ) -> findById ( $ id ) ) { $ this -> sentinel -> setUser ( $ user ) ; return true ; } return false ; }
docstring: Authenticate a user via the id.
  
  @param  mixed  $id
  
  @return bool
docstring_tokens: Authenticate a user via the id .