original_string: public function render($type, $assets)
      {
          if (! in_array($type, $this->types)) {
              throw new InvalidArgumentException("Invalid assets type [${type}]");
          }
  
          // The assets type is valid.
          else if (! empty($items = $this->parseAssets($assets))) {
              return implode("\n", $this->renderItems($items, $type, false));
          }
      }
code: public function render($type, $assets)
      {
          if (! in_array($type, $this->types)) {
              throw new InvalidArgumentException("Invalid assets type [${type}]");
          }
  
          // The assets type is valid.
          else if (! empty($items = $this->parseAssets($assets))) {
              return implode("\n", $this->renderItems($items, $type, false));
          }
      }
code_tokens: public function render ( $ type , $ assets ) { if ( ! in_array ( $ type , $ this -> types ) ) { throw new InvalidArgumentException ( "Invalid assets type [${type}]" ) ; } // The assets type is valid. else if ( ! empty ( $ items = $ this -> parseAssets ( $ assets ) ) ) { return implode ( "\n" , $ this -> renderItems ( $ items , $ type , false ) ) ; } }
docstring: Render the CSS or JS scripts.
  
  @param string       $type
  @param string|array $assets
  
  @return string|null
  @throws \InvalidArgumentException
docstring_tokens: Render the CSS or JS scripts .