Fix newlines and missing parameter description

This commit is contained in:
Johnny Theill
2014-02-16 03:14:28 +01:00
parent 63272f4166
commit f42af951e1
9 changed files with 14 additions and 13 deletions

View File

@ -1,8 +1,8 @@
<?php
namespace common\models;
use yii\base\Model;
use Yii;
use yii\base\Model;
/**
* Login form
@ -44,12 +44,13 @@ 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()
{
if ($this->validate()) {
return Yii::$app->user->login($this->getUser(), $this->rememberMe ? 3600*24*30 : 0);
return Yii::$app->user->login($this->getUser(), $this->rememberMe ? 3600 * 24 * 30 : 0);
} else {
return false;
}

View File

@ -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)
{