Passed
Pull Request — master (#6)
by Andrey
14:00 queued 10:35
created
app/Observers/ScriptObserver.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -32,9 +32,9 @@
 block discarded – undo
32 32
     }
33 33
 
34 34
     // public function restoring(Model $result) {
35
-  //   cache()->forget('scripts');
36
-  // }
37
-  // public function restored(Model $result) {
38
-  //   cache()->forget('scripts');
39
-  // }
35
+    //   cache()->forget('scripts');
36
+    // }
37
+    // public function restored(Model $result) {
38
+    //   cache()->forget('scripts');
39
+    // }
40 40
 }
Please login to merge, or discard this patch.
app/Admin/Policies/UsersSectionModelPolicy.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -63,9 +63,9 @@
 block discarded – undo
63 63
     }
64 64
 
65 65
     // public function destroy(User $user, Users $section, User $item) {
66
-  //   if ($user->isAdmin()) {
67
-  //     return true;
68
-  //   }
69
-  //   return false;
70
-  // }
66
+    //   if ($user->isAdmin()) {
67
+    //     return true;
68
+    //   }
69
+    //   return false;
70
+    // }
71 71
 }
Please login to merge, or discard this patch.
app/BaseClearModel.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,13 +22,13 @@
 block discarded – undo
22 22
     public function creators()
23 23
     {
24 24
         return $this->belongsTo(User::class, 'created_by', 'id')
25
-      ->withDefault(['name' => '-']);
25
+        ->withDefault(['name' => '-']);
26 26
     }
27 27
 
28 28
     public function editors()
29 29
     {
30 30
         return $this->belongsTo(User::class, 'modifed_by', 'id')
31
-      ->withDefault(['name' => '-']);
31
+        ->withDefault(['name' => '-']);
32 32
     }
33 33
 
34 34
     //observers
Please login to merge, or discard this patch.
app/Providers/RouteServiceProvider.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -52,8 +52,8 @@  discard block
 block discarded – undo
52 52
     protected function mapWebRoutes()
53 53
     {
54 54
         Route::middleware('web')
55
-             ->namespace($this->namespace)
56
-             ->group(base_path('routes/web.php'));
55
+                ->namespace($this->namespace)
56
+                ->group(base_path('routes/web.php'));
57 57
     }
58 58
 
59 59
     /**
@@ -66,8 +66,8 @@  discard block
 block discarded – undo
66 66
     protected function mapApiRoutes()
67 67
     {
68 68
         Route::prefix('api')
69
-             ->middleware('api')
70
-             ->namespace($this->namespace)
71
-             ->group(base_path('routes/api.php'));
69
+                ->middleware('api')
70
+                ->namespace($this->namespace)
71
+                ->group(base_path('routes/api.php'));
72 72
     }
73 73
 }
Please login to merge, or discard this patch.
app/Http/Controllers/AdminController.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
         cache()->flush();
15 15
 
16 16
         return redirect()
17
-      ->back()
18
-      ->with(['success_message' => __('api.admin.cache_clear')]);
17
+        ->back()
18
+        ->with(['success_message' => __('api.admin.cache_clear')]);
19 19
     }
20 20
 }
Please login to merge, or discard this patch.
app/Http/Controllers/Api/AuthController.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
     public function __construct()
21 21
     {
22 22
         $this->middleware('auth')
23
-      ->only(['logout_get', 'logout']);
23
+        ->only(['logout_get', 'logout']);
24 24
     }
25 25
 
26 26
     public function robot()
Please login to merge, or discard this patch.
app/Repositories/ScriptRepository.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -27,10 +27,10 @@
 block discarded – undo
27 27
         ];
28 28
 
29 29
         $result = $this->startConditions()
30
-      ->active()
31
-      ->select($columns)
32
-      ->toBase()
33
-      ->get();
30
+        ->active()
31
+        ->select($columns)
32
+        ->toBase()
33
+        ->get();
34 34
 
35 35
         $result = $result->groupBy('top');
36 36
         // dd($result);
Please login to merge, or discard this patch.
app/Repositories/SettingRepository.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,8 +26,8 @@
 block discarded – undo
26 26
         ];
27 27
 
28 28
         $result = $this->startConditions()
29
-      ->select($columns)
30
-      ->get();
29
+        ->select($columns)
30
+        ->get();
31 31
 
32 32
         $setting = $result->mapWithKeys(function ($item) {
33 33
             return [$item['name'] => $item['value']];
Please login to merge, or discard this patch.
app/Admin/Sections/Settings.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -39,21 +39,21 @@  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 46
             //   ->setWidth('50px'),
47 47
             AdminColumn::link('name', 'Настройка')
48
-              ->setWidth('150px'),
48
+                ->setWidth('150px'),
49 49
             AdminColumn::boolean('value', 'Состояние')
50
-              ->setWidth('130px')
51
-              ->setOrderable(true),
50
+                ->setWidth('130px')
51
+                ->setOrderable(true),
52 52
             AdminColumn::text('description', 'Описание'),
53 53
             AdminColumn::text('updated_at', 'Изменен', 'editors.name')
54
-              ->setWidth('160px')
55
-              ->setSearchable(false)
56
-              ->setOrderable(true),
54
+                ->setWidth('160px')
55
+                ->setSearchable(false)
56
+                ->setOrderable(true),
57 57
         ]);
58 58
 
59 59
         return $display;
@@ -64,23 +64,23 @@  discard block
 block discarded – undo
64 64
         $form = AdminForm::panel()->addBody([
65 65
             AdminFormElement::columns()->addColumn([
66 66
                 AdminFormElement::text('name', 'Название')
67
-                  ->setReadonly(1)
68
-                  ->required(),
67
+                    ->setReadonly(1)
68
+                    ->required(),
69 69
                 AdminFormElement::textarea('description', 'Описание')
70
-                  ->setRows(3)
71
-                  ->addValidationRule('max:190', __('adm.valid.max190')),
70
+                    ->setRows(3)
71
+                    ->addValidationRule('max:190', __('adm.valid.max190')),
72 72
                 AdminFormElement::html('<hr>'),
73 73
                 AdminFormElement::checkbox('value', 'Состояние настройки'),
74 74
             ], 8)->addColumn([
75 75
                 AdminFormElement::text('creators.name', 'Создал')
76
-                  ->setReadonly(1),
76
+                    ->setReadonly(1),
77 77
                 AdminFormElement::text('updated_at', 'Создано')
78
-                  ->setReadonly(1),
78
+                    ->setReadonly(1),
79 79
                 AdminFormElement::html('<hr>'),
80 80
                 AdminFormElement::text('editors.name', 'Редактировал')
81
-                  ->setReadonly(1),
81
+                    ->setReadonly(1),
82 82
                 AdminFormElement::text('updated_at', 'Редакция')
83
-                  ->setReadonly(1),
83
+                    ->setReadonly(1),
84 84
             ]),
85 85
         ]);
86 86
 
Please login to merge, or discard this patch.