Minor php style fix

This commit is contained in:
Lucas Bartholemy 2018-06-05 01:04:44 +02:00
parent 4e763b6eb0
commit 84c4eff90e
2 changed files with 3 additions and 3 deletions

View File

@ -42,7 +42,7 @@ class Widget extends \yii\base\Widget
}
if(isset($config['render']) && $config['render'] === false) {
return;
return '';
}
\yii\base\Event::trigger(self::className(), self::EVENT_CREATE, new WidgetCreateEvent($config));

View File

@ -8,8 +8,8 @@
namespace humhub\widgets;
use humhub\components\Widget;
use Yii;
use yii\base\Widget;
/**
* StackWidget is a widget which can hold a set of subwidgets.
@ -21,7 +21,7 @@ use yii\base\Widget;
* @since 0.5
* @author Luke
*/
class BaseStack extends \yii\base\Widget
class BaseStack extends Widget
{
const EVENT_INIT = 'init';