mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
Fix newlines and missing parameter description
This commit is contained in:
@ -1,8 +1,8 @@
|
||||
<?php
|
||||
namespace common\models;
|
||||
|
||||
use yii\base\Model;
|
||||
use Yii;
|
||||
use yii\base\Model;
|
||||
|
||||
/**
|
||||
* Login form
|
||||
@ -44,6 +44,7 @@ class LoginForm extends Model
|
||||
|
||||
/**
|
||||
* Logs in a user using the provided username and password.
|
||||
*
|
||||
* @return boolean whether the user is logged in successfully
|
||||
*/
|
||||
public function login()
|
||||
|
@ -30,8 +30,8 @@ class User extends ActiveRecord implements IdentityInterface
|
||||
/**
|
||||
* Creates a new user
|
||||
*
|
||||
* @param $attributes
|
||||
* @return static|null
|
||||
* @param array $attributes the attributes given by field => value
|
||||
* @return static|null the newly created model, or null on failure
|
||||
*/
|
||||
public static function create($attributes)
|
||||
{
|
||||
|
Reference in New Issue
Block a user