original_string: public static function create($postType, $config, $throwExceptionOnInvalidWriter = false)
      {
          $className = 'Fillet\\Writer\\' . ucfirst($postType) . 'Writer';
          if(class_exists($className)) {
              /** @var WriterInterface $writer */
              $writer = new $className($config['destinationFolders'][$postType], $config);
              return $writer;
          }
  
          if($throwExceptionOnInvalidWriter) {
              throw new \Exception('There is no writer for ' . $postType);
          }
      }
code: public static function create($postType, $config, $throwExceptionOnInvalidWriter = false)
      {
          $className = 'Fillet\\Writer\\' . ucfirst($postType) . 'Writer';
          if(class_exists($className)) {
              /** @var WriterInterface $writer */
              $writer = new $className($config['destinationFolders'][$postType], $config);
              return $writer;
          }
  
          if($throwExceptionOnInvalidWriter) {
              throw new \Exception('There is no writer for ' . $postType);
          }
      }
code_tokens: public static function create ( $ postType , $ config , $ throwExceptionOnInvalidWriter = false ) { $ className = 'Fillet\\Writer\\' . ucfirst ( $ postType ) . 'Writer' ; if ( class_exists ( $ className ) ) { /** @var WriterInterface $writer */ $ writer = new $ className ( $ config [ 'destinationFolders' ] [ $ postType ] , $ config ) ; return $ writer ; } if ( $ throwExceptionOnInvalidWriter ) { throw new \ Exception ( 'There is no writer for ' . $ postType ) ; } }
docstring: Create a new instance of a writer based on the post type
  
  @param string $postType Post type we are working against
  @param array $config Config to use to generate the writer
  @param bool $throwExceptionOnInvalidWriter Whether to throw an exception if an unknown writer is requested
  
  @return WriterInterface
  @throws \Exception
docstring_tokens: Create a new instance of a writer based on the post type