Remove another unused parameter

This commit is contained in:
Franz Liedke 2018-07-16 15:48:29 +02:00
parent dc7c31e1c2
commit 85ceda0b0b
No known key found for this signature in database
GPG Key ID: 9A0231A879B055F4

View File

@ -73,7 +73,7 @@ class Formatter
*/ */
public function render($xml, $context = null) public function render($xml, $context = null)
{ {
$renderer = $this->getRenderer($context); $renderer = $this->getRenderer();
$this->events->dispatch(new Rendering($renderer, $context, $xml)); $this->events->dispatch(new Rendering($renderer, $context, $xml));
@ -177,10 +177,9 @@ class Formatter
/** /**
* Get the renderer. * Get the renderer.
* *
* @param mixed $context
* @return \s9e\TextFormatter\Renderer * @return \s9e\TextFormatter\Renderer
*/ */
protected function getRenderer($context = null) protected function getRenderer()
{ {
spl_autoload_register(function ($class) { spl_autoload_register(function ($class) {
if (file_exists($file = $this->cacheDir.'/'.$class.'.php')) { if (file_exists($file = $this->cacheDir.'/'.$class.'.php')) {