Passed
Pull Request — master (#1094)
by Iman
03:07
created

LogsForm   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 13
c 0
b 0
f 0
rs 10
wmc 1
1
<?php
2
3
namespace crocodicstudio\crudbooster\Modules\LogsModule;
4
5
class LogsForm
6
{
7
    public static function makeForm()
8
    {
9
        $form = [];
10
        $form[] = ['label' => 'Time Access', 'name' => 'created_at', 'readonly' => true];
11
        $form[] = ['label' => 'IP Address', 'name' => 'ipaddress', 'readonly' => true];
12
        $form[] = ['label' => 'User Agent', 'name' => 'useragent', 'readonly' => true];
13
        $form[] = ['label' => 'URL', 'name' => 'url', 'readonly' => true];
14
        $form[] = ['label' => 'User', 'name' => 'id_cms_users', 'type' => 'select', 'datatable' => 'cms_users,name', 'readonly' => true];
15
        $form[] = ['label' => 'Description', 'name' => 'description', 'readonly' => true];
16
17
        return $form;
18
    }
19
}