Conditions | 2 |
Paths | 1 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
27 | 8 | public function run($id): ?ARContract |
|
28 | { |
||
29 | 8 | $this->checkAccess( |
|
30 | 8 | ($model = $this->findModel($id)), |
|
31 | 8 | ($params = Yii::$app->request->getQueryParams()) |
|
32 | ); |
||
33 | 8 | $this->proct($model, $params) ?: throw $this->errorException(); |
|
34 | |||
35 | 8 | return $this->successResponse($model); |
|
36 | } |
||
61 |