original_string: public function resolve($type, $id)
      {
          $instance = (new $type)->find($id);
  
          if ($instance) {
              return $instance;
          }
  
          throw new EntityNotFoundException($type, $id);
      }
code: public function resolve($type, $id)
      {
          $instance = (new $type)->find($id);
  
          if ($instance) {
              return $instance;
          }
  
          throw new EntityNotFoundException($type, $id);
      }
code_tokens: public function resolve ( $ type , $ id ) { $ instance = ( new $ type ) -> find ( $ id ) ; if ( $ instance ) { return $ instance ; } throw new EntityNotFoundException ( $ type , $ id ) ; }
docstring: Resolve the entity for the given ID.
  
  @param  string  $type
  @param  mixed  $id
  @return mixed
  
  @throws \Illuminate\Contracts\Queue\EntityNotFoundException
docstring_tokens: Resolve the entity for the given ID .