| Conditions | 3 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | 19 | protected function slugBehaviorConfig(): array |
|
| 27 | { |
||
| 28 | return [ |
||
| 29 | 19 | 'resourceName' => 'workflow', |
|
| 30 | 19 | 'checkAccess' => function ($params) { |
|
| 31 | if ( |
||
| 32 | 19 | isset($params['workflow_id']) |
|
| 33 | 19 | && $this->id != $params['workflow_id'] |
|
| 34 | ) { |
||
| 35 | 4 | throw new NotFoundHttpException( |
|
| 36 | 4 | 'Workflow not associated to element.' |
|
| 37 | ); |
||
| 61 |