Passed
Pull Request — master (#6)
by Andrey
14:00 queued 10:35
created
app/Admin/Sections/Scripts.php 1 patch
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -44,22 +44,22 @@  discard block
 block discarded – undo
44 44
     public function onDisplay()
45 45
     {
46 46
         $display = AdminDisplay::datatables()
47
-      ->setHtmlAttribute('class', 'table-success table-hover')
48
-      ->setDisplaySearch(true);
47
+        ->setHtmlAttribute('class', 'table-success table-hover')
48
+        ->setDisplaySearch(true);
49 49
 
50 50
         $display->setColumns([
51 51
             AdminColumn::text('id', '#')
52
-              ->setWidth('50px')
53
-              ->setHtmlAttribute('class', 'text-center'),
52
+                ->setWidth('50px')
53
+                ->setHtmlAttribute('class', 'text-center'),
54 54
             AdminColumn::link('name', 'Название'),
55 55
             AdminColumn::boolean('active', 'ВКЛ'),
56 56
             AdminColumn::boolean('top', 'Header')
57
-              ->setWidth('110px')
58
-              ->setOrderable(true),
57
+                ->setWidth('110px')
58
+                ->setOrderable(true),
59 59
             AdminColumn::text('updated_at', 'Изменен', 'editors.name')
60
-              ->setWidth('160px')
61
-              ->setSearchable(false)
62
-              ->setOrderable(false),
60
+                ->setWidth('160px')
61
+                ->setSearchable(false)
62
+                ->setOrderable(false),
63 63
         ]);
64 64
 
65 65
         return $display;
@@ -70,25 +70,25 @@  discard block
 block discarded – undo
70 70
         $form = AdminForm::panel()->addBody([
71 71
             AdminFormElement::columns()->addColumn([
72 72
                 AdminFormElement::text('name', 'Название скрипта')
73
-                  ->addValidationRule('max:190', __('adm.valid.max190'))
74
-                  ->required(),
73
+                    ->addValidationRule('max:190', __('adm.valid.max190'))
74
+                    ->required(),
75 75
                 AdminFormElement::textarea('data', 'Данные')
76
-                  ->setRows(8),
76
+                    ->setRows(8),
77 77
                 AdminFormElement::checkbox('active', 'ВКЛ'),
78 78
                 AdminFormElement::html('<hr>'),
79 79
                 AdminFormElement::checkbox('top', 'В шапку сайта (иначе в конец документа)'),
80 80
             ], 8)->addColumn([
81 81
                 AdminFormElement::text('id', '#')
82
-                  ->setReadonly(1),
82
+                    ->setReadonly(1),
83 83
                 AdminFormElement::text('creators.name', 'Создал')
84
-                  ->setReadonly(1),
84
+                    ->setReadonly(1),
85 85
                 AdminFormElement::text('updated_at', 'Создано')
86
-                  ->setReadonly(1),
86
+                    ->setReadonly(1),
87 87
                 AdminFormElement::html('<hr>'),
88 88
                 AdminFormElement::text('editors.name', 'Редактировал')
89
-                  ->setReadonly(1),
89
+                    ->setReadonly(1),
90 90
                 AdminFormElement::text('updated_at', 'Редакция')
91
-                  ->setReadonly(1),
91
+                    ->setReadonly(1),
92 92
             ]),
93 93
         ]);
94 94
 
Please login to merge, or discard this patch.
app/Admin/Sections/Roles.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -39,14 +39,14 @@  discard block
 block discarded – undo
39 39
     public function onDisplay()
40 40
     {
41 41
         $display = AdminDisplay::table()
42
-      ->setHtmlAttribute('class', 'table-danger table-hover');
42
+        ->setHtmlAttribute('class', 'table-danger table-hover');
43 43
 
44 44
         $display->setColumns([
45 45
             AdminColumn::text('id', '#')
46
-              ->setWidth('50px')
47
-              ->setHtmlAttribute('class', 'text-center'),
46
+                ->setWidth('50px')
47
+                ->setHtmlAttribute('class', 'text-center'),
48 48
             AdminColumn::link('name', 'Название')
49
-              ->setWidth('150px'),
49
+                ->setWidth('150px'),
50 50
             AdminColumn::text('description', 'Описание'),
51 51
         ]);
52 52
 
@@ -57,13 +57,13 @@  discard block
 block discarded – undo
57 57
     {
58 58
         $form = AdminForm::panel()->addBody([
59 59
             AdminFormElement::text('id', '#')
60
-              ->setReadonly(1),
60
+                ->setReadonly(1),
61 61
             AdminFormElement::text('name', 'Название')
62
-              ->required()
63
-              ->addValidationRule('max:190', __('adm.valid.max190')),
62
+                ->required()
63
+                ->addValidationRule('max:190', __('adm.valid.max190')),
64 64
             AdminFormElement::textarea('description', 'Описание')
65
-              ->setRows(3)
66
-              ->addValidationRule('max:190', __('adm.valid.max190')),
65
+                ->setRows(3)
66
+                ->addValidationRule('max:190', __('adm.valid.max190')),
67 67
         ]);
68 68
 
69 69
         $form->getButtons()->setButtons([
Please login to merge, or discard this patch.
app/Admin/navigation.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -35,14 +35,14 @@
 block discarded – undo
35 35
         'priority' => 5000,
36 36
         'pages'    => [
37 37
             (new Page(\App\Setting::class))
38
-              ->setPriority(100),
38
+                ->setPriority(100),
39 39
             (new Page(\App\Models\Script::class))
40
-              ->setPriority(800),
40
+                ->setPriority(800),
41 41
             (new Page(\App\User::class))
42
-              ->setPriority(900),
42
+                ->setPriority(900),
43 43
             (new Page(\App\Role::class))
44
-              ->setPriority(1000),
44
+                ->setPriority(1000),
45 45
         ],
46
-  ],
46
+    ],
47 47
 
48 48
 ];
Please login to merge, or discard this patch.