Use "get" prfix for AbstractStyle::defaultConfigurations

This commit is contained in:
Dmitriy Simushev 2014-03-04 14:07:19 +00:00
parent 3a01ec4d26
commit db710b9e06
4 changed files with 5 additions and 5 deletions

View File

@ -89,7 +89,7 @@ abstract class AbstractStyle
// Load configurations from file, merge it with default configs and // Load configurations from file, merge it with default configs and
// cache the result. // cache the result.
$loaded_config = parse_ini_file($config_file, true); $loaded_config = parse_ini_file($config_file, true);
$default_config = $this->defaultConfigurations(); $default_config = $this->getDefaultConfigurations();
$this->cachedConfigurations = $loaded_config + $default_config; $this->cachedConfigurations = $loaded_config + $default_config;
} }
@ -138,5 +138,5 @@ abstract class AbstractStyle
* *
* @return array Default configurations of the style * @return array Default configurations of the style
*/ */
abstract protected function defaultConfigurations(); abstract protected function getDefaultConfigurations();
} }

View File

@ -167,7 +167,7 @@ class ChatStyle extends AbstractStyle implements StyleInterface
* *
* @return array Default configurations of the style * @return array Default configurations of the style
*/ */
protected function defaultConfigurations() protected function getDefaultConfigurations()
{ {
return array( return array(
'chat' => array( 'chat' => array(

View File

@ -111,7 +111,7 @@ class InvitationStyle extends AbstractStyle implements StyleInterface
* *
* @return array Default configurations of the style * @return array Default configurations of the style
*/ */
protected function defaultConfigurations() protected function getDefaultConfigurations()
{ {
return array(); return array();
} }

View File

@ -146,7 +146,7 @@ class PageStyle extends AbstractStyle implements StyleInterface
* *
* @return array Default configurations of the style * @return array Default configurations of the style
*/ */
protected function defaultConfigurations() protected function getDefaultConfigurations()
{ {
return array( return array(
'history' => array( 'history' => array(