octicon-rss(16/)
You've already forked yii2
mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-10 02:13:17 +08:00
apidoc and codestyle fixes
This commit is contained in:
octicon-git-branch(16/)
octicon-tag(16/)
octicon-diff(16/tw-mr-1) 7 changed files with 19 additions and 16 deletions
@@ -44,6 +44,7 @@ class PhpManager extends Manager
|
||||
private $_children = []; // itemName, childName => child
|
||||
private $_assignments = []; // userId, itemName => assignment
|
||||
|
||||
|
||||
/**
|
||||
* Initializes the application component.
|
||||
* This method overrides parent implementation by loading the authorization data
|
||||
@@ -158,7 +159,7 @@ class PhpManager extends Manager
|
||||
|
||||
/**
|
||||
* Returns the children of the specified item.
|
||||
* @param mixed $names the parent item name. This can be either a string or an array.
|
||||
* @param string|array $names the parent item name. This can be either a string or an array.
|
||||
* The latter represents a list of item names.
|
||||
* @return Item[] all child items of the parent
|
||||
*/
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
<?php
|
||||
/* @var YiiRequirementChecker $this */
|
||||
/* @var array $summary */
|
||||
/* @var array[] $requirements */
|
||||
/**
|
||||
* @var YiiRequirementChecker $this
|
||||
* @var array $summary
|
||||
* @var array[] $requirements
|
||||
*/
|
||||
|
||||
echo "\nYii Application Requirement Checker\n\n";
|
||||
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
<?php
|
||||
/* @var YiiRequirementChecker $this */
|
||||
/* @var array $summary */
|
||||
/* @var array[] $requirements */
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
/**
|
||||
* @var YiiRequirementChecker $this
|
||||
* @var array $summary
|
||||
* @var array[] $requirements
|
||||
*/
|
||||
?><!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
|
||||
@@ -232,9 +232,8 @@ class FileValidator extends Validator
|
||||
*/
|
||||
public function isEmpty($value, $trim = false)
|
||||
{
|
||||
$value = is_array($value) && !empty($value) ? $value[0] : $value;
|
||||
|
||||
return !$value instanceof UploadedFile || $value->error == UPLOAD_ERR_NO_FILE;
|
||||
$value = is_array($value) && !empty($value) ? $value[0] : $value;
|
||||
return !($value instanceof UploadedFile) || $value->error == UPLOAD_ERR_NO_FILE;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -738,7 +738,6 @@ class Response extends \yii\base\Response
|
||||
if ($this->_cookies === null) {
|
||||
$this->_cookies = new CookieCollection;
|
||||
}
|
||||
|
||||
return $this->_cookies;
|
||||
}
|
||||
|
||||
|
||||
@@ -101,6 +101,7 @@ class UrlRule extends Object implements UrlRuleInterface
|
||||
*/
|
||||
private $_routeParams = [];
|
||||
|
||||
|
||||
/**
|
||||
* Initializes this rule.
|
||||
*/
|
||||
|
||||
@@ -141,8 +141,8 @@ class User extends Component
|
||||
* @param boolean $checkSession whether to check the session if the identity has never been determined before.
|
||||
* If the identity is already determined (e.g., by calling [[setIdentity()]] or [[login()]]),
|
||||
* then this parameter has no effect.
|
||||
* @return IdentityInterface the identity object associated with the currently logged-in user.
|
||||
* Null is returned if the user is not logged in (not authenticated).
|
||||
* @return IdentityInterface|null the identity object associated with the currently logged-in user.
|
||||
* `null` is returned if the user is not logged in (not authenticated).
|
||||
* @see login()
|
||||
* @see logout()
|
||||
*/
|
||||
@@ -170,7 +170,7 @@ class User extends Component
|
||||
* [[switchIdentity()]]. Those methods will try to use session and cookie to maintain the user authentication
|
||||
* status.
|
||||
*
|
||||
* @param IdentityInterface $identity the identity object associated with the currently logged user.
|
||||
* @param IdentityInterface|null $identity the identity object associated with the currently logged user.
|
||||
*/
|
||||
public function setIdentity($identity)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user