| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | public function run() |
||
| 32 | { |
||
| 33 | $user = Yii::$app->user->identity; |
||
| 34 | /* @var $user User */ |
||
| 35 | $noInitOrg = $user->getNoInitOrganization(); |
||
| 36 | /* @var $noInitOrg Organization */ |
||
| 37 | $searchModel = $noInitOrg->getSearchModel(); |
||
| 38 | $searchModel->query = $searchModel->query->andWhere([$searchModel->memberUserAlias . '.guid' => $user->getGUID()]); |
||
| 39 | $dataProvider = $searchModel->search(Yii::$app->request->get()); |
||
| 40 | return $this->controller->render('index', [ |
||
| 41 | 'dataProvider' => $dataProvider, |
||
| 42 | 'searchModel' => $searchModel, |
||
| 43 | 'user' => $user, |
||
| 44 | ]); |
||
| 45 | } |
||
| 46 | } |
||
| 47 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italyis not defined by the methodfinale(...).The most likely cause is that the parameter was removed, but the annotation was not.