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