Working toward PSR-2 standards

This commit is contained in:
Mark Baker 2013-06-23 23:44:16 +01:00
parent 1549cc42ca
commit ee8062fece
23 changed files with 64 additions and 64 deletions

View File

@ -43,7 +43,7 @@ class Writer_PDF
*
* @var PHPExcel\Writer_PDF_Core
*/
private $_renderer = null;
private $renderer = null;
/**
* Instantiate a new renderer of the configured type within this container class
@ -69,7 +69,7 @@ class Writer_PDF
}
$rendererName = __NAMESPACE__ . '\Writer_PDF_' . $pdfLibraryName;
$this->_renderer = new $rendererName($phpExcel);
$this->renderer = new $rendererName($phpExcel);
}
@ -82,10 +82,10 @@ class Writer_PDF
*/
public function __call($name, $arguments)
{
if ($this->_renderer === null) {
if ($this->renderer === null) {
throw new Writer_Exception("PDF Rendering library has not been defined.");
}
return call_user_func_array(array($this->_renderer, $name), $arguments);
return call_user_func_array(array($this->renderer, $name), $arguments);
}
}