mirror of
https://github.com/yiisoft/yii2.git
synced 2025-12-19 07:07:58 +08:00
Fixes #12055: Changed boolean to bool and integer to int in phpdoc
This commit is contained in:
committed by
Alexander Makarov
parent
940f7c7cd4
commit
4aa935e69e
@@ -23,7 +23,7 @@ HTTP キャッシュ
|
||||
/**
|
||||
* @param Action $action 現在扱っているアクションオブジェクト
|
||||
* @param array $params "params" プロパティの値
|
||||
* @return integer ページの更新時刻を表す UNIX タイムスタンプ
|
||||
* @return int ページの更新時刻を表す UNIX タイムスタンプ
|
||||
*/
|
||||
function ($action, $params)
|
||||
```
|
||||
|
||||
@@ -162,7 +162,7 @@ public function rules()
|
||||
/**
|
||||
* @param Model $model 検証されるモデル
|
||||
* @param string $attribute 検証される属性
|
||||
* @return boolean 規則が適用されるか否か
|
||||
* @return bool 規則が適用されるか否か
|
||||
*/
|
||||
function ($model, $attribute)
|
||||
```
|
||||
|
||||
@@ -18,7 +18,7 @@ Yii はさまざまなコンポーネントを結び付けてログインをサ
|
||||
実際の認証ロジックを含む [[yii\web\User::identityClass|ユーザ識別情報クラス]] は、あなたが指定しなければなりません。
|
||||
下記のアプリケーション構成情報においては、[[yii\web\User|user]] の [[yii\web\User::identityClass|ユーザ識別情報クラス]] は `app\models\User` であると構成されています。
|
||||
`app\models\User` の実装については、次の項で説明します。
|
||||
|
||||
|
||||
```php
|
||||
return [
|
||||
'components' => [
|
||||
@@ -63,7 +63,7 @@ class User extends ActiveRecord implements IdentityInterface
|
||||
/**
|
||||
* 与えられた ID によってユーザ識別情報を探す
|
||||
*
|
||||
* @param string|integer $id 探すための ID
|
||||
* @param string|int $id 探すための ID
|
||||
* @return IdentityInterface|null 与えられた ID に合致する Identity オブジェクト
|
||||
*/
|
||||
public static function findIdentity($id)
|
||||
@@ -100,7 +100,7 @@ class User extends ActiveRecord implements IdentityInterface
|
||||
|
||||
/**
|
||||
* @param string $authKey
|
||||
* @return boolean 認証キーが現在のユーザに対して有効か否か
|
||||
* @return bool 認証キーが現在のユーザに対して有効か否か
|
||||
*/
|
||||
public function validateAuthKey($authKey)
|
||||
{
|
||||
@@ -116,7 +116,7 @@ class User extends ActiveRecord implements IdentityInterface
|
||||
class User extends ActiveRecord implements IdentityInterface
|
||||
{
|
||||
......
|
||||
|
||||
|
||||
public function beforeSave($insert)
|
||||
{
|
||||
if (parent::beforeSave($insert)) {
|
||||
|
||||
@@ -363,10 +363,10 @@ class AuthorRule extends Rule
|
||||
public $name = 'isAuthor';
|
||||
|
||||
/**
|
||||
* @param string|integer $user ユーザ ID
|
||||
* @param string|int $user ユーザ ID
|
||||
* @param Item $item この規則が関連付けられているロールまたは許可
|
||||
* @param array $params ManagerInterface::checkAccess() に渡されたパラメータ
|
||||
* @return boolean 関連付けられたロールまたは許可を認めるか否かを示す値
|
||||
* @return bool 関連付けられたロールまたは許可を認めるか否かを示す値
|
||||
*/
|
||||
public function execute($user, $item, $params)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user