| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php namespace Anomaly\PreferencesModule\Http\Controller\Admin; |
||
| 46 | public function edit(PreferenceFormBuilder $form, Authorizer $authorizer, $type, $addon) |
||
| 47 | { |
||
| 48 | if (!$authorizer->authorize('anomaly.module.preferences::preferences.write')) { |
||
| 49 | abort(403); |
||
| 50 | } |
||
| 51 | |||
| 52 | unset($type); |
||
| 53 | |||
| 54 | return $form->render($addon); |
||
| 55 | } |
||
| 56 | } |
||
| 57 |