Move protected AbstractController::getStyle method to the end of the class

This commit is contained in:
Dmitriy Simushev 2014-09-03 11:56:53 +00:00
parent 5ee217accb
commit 09c7b15656

View File

@ -173,24 +173,6 @@ abstract class AbstractController implements
return $this->getStyle()->render($template, $parameters);
}
/**
* Returns style object related with the controller.
*
* The method can be overridden in child classes to implement style choosing
* logic.
*
* @return StyleInterface
* @todo Update the method after rewriting style choosing logic
*/
protected function getStyle()
{
if (is_null($this->style)) {
$this->style = $this->prepareStyle(new PageStyle(PageStyle::getDefaultStyle()));
}
return $this->style;
}
/**
* Returns the current operator.
*
@ -216,6 +198,24 @@ abstract class AbstractController implements
->generate($relative_path, $reference_type);
}
/**
* Returns style object related with the controller.
*
* The method can be overridden in child classes to implement style choosing
* logic.
*
* @return StyleInterface
* @todo Update the method after rewriting style choosing logic
*/
protected function getStyle()
{
if (is_null($this->style)) {
$this->style = $this->prepareStyle(new PageStyle(PageStyle::getDefaultStyle()));
}
return $this->style;
}
/**
* Prepares a style right after creation.
*