Skip to content

Commit da8de3c

Browse files
authored
Fix @var tags syntax (#395)
1 parent 7621d6d commit da8de3c

15 files changed

+31
-29
lines changed

docs/guide-ja/oauth-direct-authentication.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ OAuth プロバイダのウェブ・サイトを訪問する必要のない、
2121
$loginForm = new LoginForm();
2222

2323
if ($loginForm->load(Yii::$app->request->post()) && $loginForm->validate()) {
24-
/* @var $client \yii\authclient\OAuth2 */
24+
/** @var \yii\authclient\OAuth2 $client */
2525
$client = Yii::$app->authClientCollection->getClient('someOAuth2');
2626

2727
try {
@@ -45,7 +45,7 @@ if ($loginForm->load(Yii::$app->request->post()) && $loginForm->validate()) {
4545
例えば、
4646

4747
```php
48-
/* @var $client \yii\authclient\OAuth2 */
48+
/** @var \yii\authclient\OAuth2 $client */
4949
$client = Yii::$app->authClientCollection->getClient('someOAuth2');
5050

5151
// クライアントだけの直接認証

docs/guide-ja/quick-start.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,15 @@ class AuthHandler
6464
$id = ArrayHelper::getValue($attributes, 'id');
6565
$nickname = ArrayHelper::getValue($attributes, 'login');
6666

67-
/* @var $auth Auth */
67+
/** @var Auth $auth */
6868
$auth = Auth::find()->where([
6969
'source' => $this->client->getId(),
7070
'source_id' => $id,
7171
])->one();
7272

7373
if (Yii::$app->user->isGuest) {
7474
if ($auth) { // ログイン
75-
/* @var User $user */
75+
/** @var User $user */
7676
$user = $auth->user;
7777
$this->updateUserInfo($user);
7878
Yii::$app->user->login($user, Yii::$app->params['user.rememberMeDuration']);
@@ -130,7 +130,7 @@ class AuthHandler
130130
'source_id' => (string)$attributes['id'],
131131
]);
132132
if ($auth->save()) {
133-
/* @var User $user */
133+
/** @var User $user */
134134
$user = $auth->user;
135135
$this->updateUserInfo($user);
136136
Yii::$app->getSession()->setFlash('success', [

docs/guide-ja/usage-api.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ $userInfo = $client->api('userinfo', 'GET');
2424
例えば、
2525

2626
```php
27-
/* @var $client \yii\authclient\OAuth2 */
27+
/** @var \yii\authclient\OAuth2 $client */
2828
$client = Yii::$app->authClientCollection->getClient('someOAuth2');
2929

3030
// 外部サービスに追加すべきユーザを探す
@@ -68,7 +68,7 @@ HTTP リクエストの送信に関する詳細は、[yii2-httpclient](https://g
6868
例えば、
6969

7070
```php
71-
/* @var $client \yii\authclient\OAuth1 */
71+
/** @var \yii\authclient\OAuth1 $client */
7272
$client = Yii::$app->authClientCollection->getClient('someOAuth1');
7373

7474
$request = $client->createRequest()

docs/guide-ru/oauth-direct-authentication.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
$loginForm = new LoginForm();
2222

2323
if ($loginForm->load(Yii::$app->request->post()) && $loginForm->validate()) {
24-
/* @var $client \yii\authclient\OAuth2 */
24+
/** @var \yii\authclient\OAuth2 $client */
2525
$client = Yii::$app->authClientCollection->getClient('someOAuth2');
2626

2727
try {
@@ -45,7 +45,7 @@ OAuth клиента (ваше приложение) без задействов
4545
Например:
4646

4747
```php
48-
/* @var $client \yii\authclient\OAuth2 */
48+
/** @var \yii\authclient\OAuth2 $client */
4949
$client = Yii::$app->authClientCollection->getClient('someOAuth2');
5050

5151
// аутентификация исключительно клиета напрямую:

docs/guide-ru/quick-start.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class SiteController extends Controller
2525
{
2626
$attributes = $client->getUserAttributes();
2727

28-
/* @var $auth Auth */
28+
/** @var Auth $auth */
2929
$auth = Auth::find()->where([
3030
'source' => $client->getId(),
3131
'source_id' => $attributes['id'],
@@ -138,4 +138,4 @@ class SiteController extends Controller
138138
'baseAuthUrl' => ['site/auth'],
139139
'popupMode' => false,
140140
]) ?>
141-
```
141+
```

docs/guide-ru/usage-api.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ $userInfo = $client->api('userinfo', 'GET');
2424
Например:
2525

2626
```php
27-
/* @var $client \yii\authclient\OAuth2 */
27+
/** @var \yii\authclient\OAuth2 $client */
2828
$client = Yii::$app->authClientCollection->getClient('someOAuth2');
2929

3030
// находим пользователя для добавлениея во внешний сервис:
@@ -68,7 +68,7 @@ echo $response->data['id'];
6868
Например:
6969

7070
```php
71-
/* @var $client \yii\authclient\OAuth1 */
71+
/** @var \yii\authclient\OAuth1 $client */
7272
$client = Yii::$app->authClientCollection->getClient('someOAuth1');
7373

7474
$request = $client->createRequest()

docs/guide-zh-CN/quick-start.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class SiteController extends Controller
2323
{
2424
$attributes = $client->getUserAttributes();
2525

26-
/* @var $auth Auth */
26+
/** @var Auth $auth */
2727
$auth = Auth::find()->where([
2828
'source' => $client->getId(),
2929
'source_id' => $attributes['id'],

docs/guide/oauth-direct-authentication.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ For example:
2121
$loginForm = new LoginForm();
2222

2323
if ($loginForm->load(Yii::$app->request->post()) && $loginForm->validate()) {
24-
/* @var $client \yii\authclient\OAuth2 */
24+
/** @var \yii\authclient\OAuth2 $client */
2525
$client = Yii::$app->authClientCollection->getClient('someOAuth2');
2626

2727
try {
@@ -45,7 +45,7 @@ You may authenticate client only via this work flow using [[\yii\authclient\OAut
4545
For example:
4646

4747
```php
48-
/* @var $client \yii\authclient\OAuth2 */
48+
/** @var \yii\authclient\OAuth2 $client */
4949
$client = Yii::$app->authClientCollection->getClient('someOAuth2');
5050

5151
// direct authentication of client only:

docs/guide/quick-start.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,15 +64,15 @@ class AuthHandler
6464
$id = ArrayHelper::getValue($attributes, 'id');
6565
$nickname = ArrayHelper::getValue($attributes, 'login');
6666

67-
/* @var Auth $auth */
67+
/** @var Auth $auth */
6868
$auth = Auth::find()->where([
6969
'source' => $this->client->getId(),
7070
'source_id' => $id,
7171
])->one();
7272

7373
if (Yii::$app->user->isGuest) {
7474
if ($auth) { // login
75-
/* @var User $user */
75+
/** @var User $user */
7676
$user = $auth->user;
7777
$this->updateUserInfo($user);
7878
Yii::$app->user->login($user, Yii::$app->params['user.rememberMeDuration']);

docs/guide/usage-api.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ instance of [[\yii\httpclient\Request]], which allows much more control over HTT
2424
For example:
2525

2626
```php
27-
/* @var $client \yii\authclient\OAuth2 */
27+
/** @var \yii\authclient\OAuth2 $client */
2828
$client = Yii::$app->authClientCollection->getClient('someOAuth2');
2929

3030
// find user to add to external service:
@@ -68,7 +68,7 @@ to perform missing actions for the API request.
6868
For example:
6969

7070
```php
71-
/* @var $client \yii\authclient\OAuth1 */
71+
/** @var \yii\authclient\OAuth1 $client */
7272
$client = Yii::$app->authClientCollection->getClient('someOAuth1');
7373

7474
$request = $client->createRequest()

0 commit comments

Comments
 (0)