original_string: protected function getTemplate($templatePath)
      {
          $path = base_path('resources/generator-templates/'.$templatePath.'.stub');
  
          if (!file_exists($path)) {
              $path = __DIR__.'/../../templates/'.$templatePath.'.stub';
          }
  
          return $this->fileHelper->get($path);
      }
code: protected function getTemplate($templatePath)
      {
          $path = base_path('resources/generator-templates/'.$templatePath.'.stub');
  
          if (!file_exists($path)) {
              $path = __DIR__.'/../../templates/'.$templatePath.'.stub';
          }
  
          return $this->fileHelper->get($path);
      }
code_tokens: protected function getTemplate ( $ templatePath ) { $ path = base_path ( 'resources/generator-templates/' . $ templatePath . '.stub' ) ; if ( ! file_exists ( $ path ) ) { $ path = __DIR__ . '/../../templates/' . $ templatePath . '.stub' ; } return $ this -> fileHelper -> get ( $ path ) ; }
docstring: Get the template for the generator.
  
  @param  string $templatePath
  @return string
docstring_tokens: Get the template for the generator .