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:
level: 0
level: 1
paths:
- src
excludePaths:

View File

@ -10,8 +10,8 @@
*/
/**
* @var \yii\web\View
* @var yii\mail\BaseMessage $content
* @var \yii\web\View $this
* @var string $content
*/
?>
<?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
*/
?>

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -2,7 +2,8 @@
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');

View File

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

View File

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

View File

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

View File

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