| Total Complexity | 4 | 
| Total Lines | 39 | 
| Duplicated Lines | 0 % | 
| Changes | 2 | ||
| Bugs | 1 | Features | 1 | 
| 1 | <?php | ||
| 16 | class SettingsController extends Controller | ||
| 17 | { | ||
| 18 | /** | ||
| 19 | * Show the Testing Page. | ||
| 20 | * | ||
| 21 | * @return Response | ||
|  | |||
| 22 | */ | ||
| 23 | public function index(Content $content) | ||
| 32 | } | ||
| 33 | |||
| 34 | /** | ||
| 35 | * Make a form builder. | ||
| 36 | * | ||
| 37 | * @return Form | ||
| 38 | */ | ||
| 39 | protected function form() | ||
| 40 |     { | ||
| 41 |         $box=new Box(__('admin.settings.form.header')); | ||
| 42 |         $box->style('success'); | ||
| 43 | $form=new Form(); | ||
| 44 |         $form->simplemde('terms', __('admin.settings.form.terms'))->default(setting('terms'))->help(__('admin.settings.help.terms')); | ||
| 45 |         $form->method('POST'); | ||
| 46 |         $form->action(route('admin.settings.index')); | ||
| 47 | $form->disableReset(); | ||
| 48 | $box->content($form); | ||
| 49 | return $box; | ||
| 50 | } | ||
| 51 | |||
| 52 | protected function writeSettings() | ||
| 55 | } | ||
| 56 | } | ||
| 57 |