diff --git a/src/mibew/libs/classes/Mibew/Controller/AbstractController.php b/src/mibew/libs/classes/Mibew/Controller/AbstractController.php index 68c6559a..a5e242ac 100644 --- a/src/mibew/libs/classes/Mibew/Controller/AbstractController.php +++ b/src/mibew/libs/classes/Mibew/Controller/AbstractController.php @@ -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. *