phpstan: ok at level 1

This commit is contained in:
tonis ormisson
2022-08-10 17:25:35 +03:00
parent c856eded75
commit fdac4698bd
25 changed files with 57 additions and 59 deletions

View File

@ -1,5 +1,5 @@
parameters: parameters:
level: 0 level: 1
paths: paths:
- src - src
excludePaths: excludePaths:

View File

@ -10,8 +10,8 @@
*/ */
/** /**
* @var \yii\web\View * @var \yii\web\View $this
* @var yii\mail\BaseMessage $content * @var string $content
*/ */
?> ?>
<?php $this->beginPage() ?> <?php $this->beginPage() ?>

View File

@ -10,7 +10,9 @@
*/ */
/** /**
* @var string main view render result /**
* @var \yii\web\View $this
* @var string $content
*/ */
?> ?>

View File

@ -10,7 +10,6 @@
*/ */
/** /**
* @var \Da\User\Model\User
* @var \Da\User\Model\Token $token * @var \Da\User\Model\Token $token
*/ */
?> ?>

View File

@ -10,7 +10,7 @@
*/ */
/** /**
* @var \Da\User\Model\Token * @var \Da\User\Model\Token $token
*/ */
?> ?>
<?= Yii::t('usuario', 'Hello') ?>, <?= Yii::t('usuario', 'Hello') ?>,

View File

@ -10,7 +10,6 @@
*/ */
/** /**
* @var \Da\User\Model\User
* @var \Da\User\Model\Token $token * @var \Da\User\Model\Token $token
*/ */
?> ?>

View File

@ -15,9 +15,9 @@ use yii\helpers\Html;
use yii\widgets\ActiveForm; use yii\widgets\ActiveForm;
/** /**
* @var $this yii\web\View * @var yii\web\View $this
* @var $model Da\User\Model\Permission * @var Da\User\Model\Permission $model
* @var $unassignedItems string[] * @var string[] $unassignedItems
*/ */
?> ?>

View File

@ -10,9 +10,9 @@
*/ */
/** /**
* @var \Da\User\Model\Permission * @var yii\web\View $this
* @var $this yii\web\View * @var Da\User\Model\Permission $model
* @var $unassignedItems string[] * @var string[] $unassignedItems
*/ */
$this->title = Yii::t('usuario', 'Create new permission'); $this->title = Yii::t('usuario', 'Create new permission');

View File

@ -10,9 +10,9 @@
*/ */
/** /**
* @var $dataProvider \yii\data\ActiveDataProvider * @var \yii\data\ActiveDataProvider $dataProvider
* @var $this yii\web\View * @var yii\web\View $this
* @var $searchModel \Da\User\Search\PermissionSearch * @var \Da\User\Search\PermissionSearch $searchModel
*/ */
use yii\grid\ActionColumn; use yii\grid\ActionColumn;
use yii\grid\GridView; use yii\grid\GridView;

View File

@ -10,9 +10,9 @@
*/ */
/** /**
* @var \Da\User\Model\Permission * @var yii\web\View $this
* @var $this yii\web\View * @var Da\User\Model\Permission $model
* @var $unassignedItems string[] * @var string[] $unassignedItems
*/ */
$this->title = Yii::t('usuario', 'Update permission'); $this->title = Yii::t('usuario', 'Update permission');

View File

@ -10,8 +10,8 @@
*/ */
/** /**
* @var $this yii\web\View * @var yii\web\View $this
* @var $model \Da\User\Model\Role * @var \Da\User\Model\Role $model
*/ */
use Da\User\Helper\AuthHelper; use Da\User\Helper\AuthHelper;

View File

@ -10,9 +10,9 @@
*/ */
/** /**
* @var \Da\User\Model\Role * @var yii\web\View $this
* @var $this yii\web\View * @var \Da\User\Model\Role $model
* @var $unassignedItems string[] * @var string[] $unassignedItems
*/ */
$this->title = Yii::t('usuario', 'Create new role'); $this->title = Yii::t('usuario', 'Create new role');
$this->params['breadcrumbs'][] = $this->title; $this->params['breadcrumbs'][] = $this->title;

View File

@ -14,9 +14,9 @@ use yii\grid\GridView;
use yii\helpers\Url; use yii\helpers\Url;
/** /**
* @var $dataProvider array * @var \yii\data\DataProviderInterface $dataProvider
* @var $searchModel \Da\User\Search\RoleSearch * @var \Da\User\Search\RoleSearch $searchModel
* @var $this yii\web\View * @var yii\web\View $this
*/ */
$this->title = Yii::t('usuario', 'Roles'); $this->title = Yii::t('usuario', 'Roles');

View File

@ -10,9 +10,9 @@
*/ */
/** /**
* @var yii\web\View $this
* @var \Da\User\Model\Role $model * @var \Da\User\Model\Role $model
* @var $this yii\web\View * @var string[] $unassignedItems
* @var $unassignedItems string[]
*/ */
$this->title = Yii::t('usuario', 'Update role'); $this->title = Yii::t('usuario', 'Update role');
$this->params['breadcrumbs'][] = $this->title; $this->params['breadcrumbs'][] = $this->title;

View File

@ -1,8 +1,8 @@
<?php <?php
/** /**
* @var $this yii\web\View * @var yii\web\View $this
* @var $model \Da\User\Model\Rule * @var \Da\User\Model\Rule $model
*/ */
use yii\helpers\Html; use yii\helpers\Html;

View File

@ -10,9 +10,9 @@
*/ */
/** /**
* @var yii\web\View $this
* @var \Da\User\Model\Rule $model * @var \Da\User\Model\Rule $model
* @var $this yii\web\View * @var string[] $unassignedItems
* @var $unassignedItems string[]
*/ */
$this->title = Yii::t('usuario', 'Create new rule'); $this->title = Yii::t('usuario', 'Create new rule');
$this->params['breadcrumbs'][] = $this->title; $this->params['breadcrumbs'][] = $this->title;

View File

@ -6,9 +6,9 @@ use yii\helpers\Url;
use yii\rbac\Rule; use yii\rbac\Rule;
/** /**
* @var $dataProvider \yii\data\ActiveDataProvider * @var \yii\data\ActiveDataProvider $dataProvider
* @var $searchModel \Da\User\Search\RuleSearch * @var \Da\User\Search\RuleSearch $searchModel
* @var $this yii\web\View * @var yii\web\View $this
*/ */
$this->title = Yii::t('usuario', 'Rules'); $this->title = Yii::t('usuario', 'Rules');

View File

@ -10,9 +10,9 @@
*/ */
/** /**
* @var yii\web\View $this
* @var \Da\User\Model\Rule $model * @var \Da\User\Model\Rule $model
* @var $this yii\web\View * @var string[] $unassignedItems
* @var $unassignedItems string[]
*/ */
$this->title = Yii::t('usuario', 'Update rule'); $this->title = Yii::t('usuario', 'Update rule');
$this->params['breadcrumbs'][] = ['label' => Yii::t('usuario', 'Rules'), 'url' => ['index']]; $this->params['breadcrumbs'][] = ['label' => Yii::t('usuario', 'Rules'), 'url' => ['index']];

View File

@ -11,7 +11,7 @@
use yii\widgets\ActiveForm; use yii\widgets\ActiveForm;
use yii\helpers\Html; use yii\helpers\Html;
/** @var $model \Da\User\Form\GdprDeleteForm */ /** @var \Da\User\Form\GdprDeleteForm $model */
?> ?>
<div class="row"> <div class="row">

View File

@ -2,7 +2,8 @@
use yii\helpers\Html; use yii\helpers\Html;
/** @var $module \Da\User\Module */ /** @var \yii\web\View $this */
/** @var \Da\User\Module $module */
$this->title = Yii::t('usuario', 'Privacy settings'); $this->title = Yii::t('usuario', 'Privacy settings');

View File

@ -11,9 +11,8 @@
use yii\bootstrap\Alert; use yii\bootstrap\Alert;
/** /** @var \Da\User\Module $module */
* @var $module Da\User\Module
*/
?> ?>
<?php if ($module->enableFlashMessages): ?> <?php if ($module->enableFlashMessages): ?>

View File

@ -11,9 +11,8 @@
use yii\helpers\Html; use yii\helpers\Html;
/** /** @var \yii\web\View $this */
* @var $content string /** @var string $content */
*/
?> ?>
<div class="clearfix"></div> <div class="clearfix"></div>

View File

@ -9,11 +9,11 @@
* the LICENSE file that was distributed with this source code. * the LICENSE file that was distributed with this source code.
*/ */
/** /** @var \yii\web\View $this */
* @var yii\web\View /** @var string $content */
* @var \Da\User\Module $module /** @var string $title */
* @var string $title /** @var \Da\User\Module $module */
*/
$this->title = $title; $this->title = $title;

View File

@ -14,11 +14,10 @@ use yii\bootstrap\Alert;
use yii\helpers\Html; use yii\helpers\Html;
use yii\widgets\ActiveForm; use yii\widgets\ActiveForm;
/** /** @var \yii\web\View $this */
* @var $this yii\web\View /** @var string[] $availableItems */
* @var $model Da\User\Model\Assignment /** @var Da\User\Model\Assignment $model */
* @var $availableItems string[]
*/
?> ?>