mirror of
https://github.com/retailcrm/PHPExcel.git
synced 2024-11-22 21:36:05 +03:00
Working toward PSR-2 standards
This commit is contained in:
parent
1549cc42ca
commit
ee8062fece
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user