for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace roaresearch\yii2\roa\actions;
use Yii;
class View extends Action
{
/**
* @return ActiveDataProvider
\yii\db\ActiveRecordInterface
This check compares the return type specified in the @return annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.
@return
* @param mixed $id
*/
public function run($id)
/* @var $model \yii\db\ActiveRecordInterface */
$model = $this->findModel($id);
$request = Yii::$app->getRequest();
$this->checkAccess($model, $request->getQueryParams());
return $model;
}
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.