refactoring to SettingsManager::isFixed

This commit is contained in:
Evgeniy Tkachenko 2017-06-01 11:28:40 +03:00 committed by GitHub
parent 90896d827b
commit 3008f6e33b

View File

@ -84,11 +84,7 @@ class SettingsManager extends BaseSettingsManager
*/
public function isFixed($name)
{
if (isset(Yii::$app->params['fixed-settings'][$this->moduleId][$name])) {
return true;
}
return false;
return isset(Yii::$app->params['fixed-settings'][$this->moduleId][$name]);
}
/**