original_string: protected function makeRequest($type) {
  
          if(isset($this->{$type . 'Request'}) && $this->{$type . 'Request'}) {
              $request = app()->make($this->{$type . 'Request'});
              if (!$request instanceof Request) {
                  throw new \Exception("Class {$this->{$type . 'Request'}} must be an instance of Illuminate\\Http\\Request");
              }
              return $request;
          }
  
      }
code: protected function makeRequest($type) {
  
          if(isset($this->{$type . 'Request'}) && $this->{$type . 'Request'}) {
              $request = app()->make($this->{$type . 'Request'});
              if (!$request instanceof Request) {
                  throw new \Exception("Class {$this->{$type . 'Request'}} must be an instance of Illuminate\\Http\\Request");
              }
              return $request;
          }
  
      }
code_tokens: protected function makeRequest ( $ type ) { if ( isset ( $ this -> { $ type . 'Request' } ) && $ this -> { $ type . 'Request' } ) { $ request = app ( ) -> make ( $ this -> { $ type . 'Request' } ) ; if ( ! $ request instanceof Request ) { throw new \ Exception ( "Class {$this->{$type . 'Request'}} must be an instance of Illuminate\\Http\\Request" ) ; } return $ request ; } }
docstring: Create a FormRequest declared in property type
  
  @param string $type
  @return Illuminate\Http\Request | void
docstring_tokens: Create a FormRequest declared in property type