original_string: public function getSignup($code = null)
      {
          if ($code === null) {
              throw new NotFoundHttpException();
          }
  
          $invite = Invite::where('code', '=', $code)->first();
  
          if (!$invite || $invite->is_claimed) {
              throw new BadRequestHttpException();
          }
  
          return View::make('signup')
              ->withCode($invite->code)
              ->withUsername(Binput::old('username'))
              ->withEmail(Binput::old('email', $invite->email));
      }
code: public function getSignup($code = null)
      {
          if ($code === null) {
              throw new NotFoundHttpException();
          }
  
          $invite = Invite::where('code', '=', $code)->first();
  
          if (!$invite || $invite->is_claimed) {
              throw new BadRequestHttpException();
          }
  
          return View::make('signup')
              ->withCode($invite->code)
              ->withUsername(Binput::old('username'))
              ->withEmail(Binput::old('email', $invite->email));
      }
code_tokens: public function getSignup ( $ code = null ) { if ( $ code === null ) { throw new NotFoundHttpException ( ) ; } $ invite = Invite :: where ( 'code' , '=' , $ code ) -> first ( ) ; if ( ! $ invite || $ invite -> is_claimed ) { throw new BadRequestHttpException ( ) ; } return View :: make ( 'signup' ) -> withCode ( $ invite -> code ) -> withUsername ( Binput :: old ( 'username' ) ) -> withEmail ( Binput :: old ( 'email' , $ invite -> email ) ) ; }
docstring: Handle the signup with invite.
  
  @param string|null $code
  
  @return \Illuminate\View\View
docstring_tokens: Handle the signup with invite .