fix formatting

This commit is contained in:
Antonio Ramirez
2016-12-14 02:50:12 +01:00
parent f3f4b31bb4
commit 3ba01b4674
140 changed files with 512 additions and 523 deletions

View File

@ -1,4 +1,5 @@
<?php
namespace Da\User\Model;
use Da\User\Traits\AuthManagerTrait;
@ -16,14 +17,15 @@ class Assignment extends Model
public $updated = false;
/**
* @inheritdoc
* {@inheritdoc}
*
* @throws InvalidConfigException
*/
public function init()
{
parent::init();
if($this->user_id === null) {
if ($this->user_id === null) {
throw new InvalidConfigException('"user_id" must be set.');
}
@ -31,24 +33,24 @@ class Assignment extends Model
}
/**
* @inheritdoc
* {@inheritdoc}
*/
public function attributeLabels()
{
return [
'items' => Yii::t('user', 'Items')
'items' => Yii::t('user', 'Items'),
];
}
/**
* @inheritdoc
* {@inheritdoc}
*/
public function rules()
{
return [
['user_id', 'required'],
['items', RbacItemsValidator::class],
['user_id', 'integer']
['user_id', 'integer'],
];
}
}