Passed
Branch master (fbd3d7)
by Andrey
10:26
created
app/BaseClearModel.php 2 patches
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.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,14 +36,14 @@
 block discarded – undo
36 36
     {
37 37
         parent::boot();
38 38
 
39
-        self::creating(function ($model) {
39
+        self::creating(function($model) {
40 40
             if (Auth()->check()) {
41 41
                 $model->created_by = Auth()->user()->id;
42 42
                 $model->modifed_by = Auth()->user()->id;
43 43
             }
44 44
         });
45 45
 
46
-        self::updating(function ($model) {
46
+        self::updating(function($model) {
47 47
             if (Auth()->check()) {
48 48
                 $model->modifed_by = Auth()->user()->id;
49 49
             }
Please login to merge, or discard this patch.
app/Providers/AdminSectionsServiceProvider.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,11 +13,11 @@
 block discarded – undo
13 13
     \App\Models\Script::class     => 'App\Admin\Sections\Scripts',
14 14
     \App\Setting::class           => 'App\Admin\Sections\Settings',
15 15
 
16
-  ];
16
+    ];
17 17
 
18 18
     protected $widgets = [
19 19
     \App\Admin\Widgets\NavigationUserBlock::class,
20
-  ];
20
+    ];
21 21
 
22 22
     public function boot(\SleepingOwl\Admin\Admin $admin)
23 23
     {
Please login to merge, or discard this patch.
app/Providers/AppServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
         Script::observe(ScriptObserver::class);
36 36
         Setting::observe(SettingObserver::class);
37 37
 
38
-        Gate::define('admin-only', function ($user) {
38
+        Gate::define('admin-only', function($user) {
39 39
             if ($user->isAdmin() || $user->isModerator()) {
40 40
                 return true;
41 41
             }
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/User.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
      * @var array
46 46
      */
47 47
     protected $casts = [
48
-      'email_verified_at' => 'datetime',
48
+        'email_verified_at' => 'datetime',
49 49
     ];
50 50
 
51 51
     public function isAdmin()
Please login to merge, or discard this patch.
app/Http/Middleware/EncryptCookies.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,6 +12,6 @@
 block discarded – undo
12 12
      * @var array
13 13
      */
14 14
     protected $except = [
15
-      'token', 'menu-state',
15
+        'token', 'menu-state',
16 16
     ];
17 17
 }
Please login to merge, or discard this patch.
app/Http/Middleware/CheckSite.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
         // cache()->forget('check');
19 19
 
20 20
         if (!Cache::has('check')) {
21
-            $data_cache = Cache::remember('check', $time, function () use ($error) {
21
+            $data_cache = Cache::remember('check', $time, function() use ($error) {
22 22
                 try {
23 23
                     DB::connection()->table(DB::raw('settings'))->first([DB::raw(1)]);
24 24
                     if (!DB::connection()->table(DB::raw('settings'))->count()) {
Please login to merge, or discard this patch.
app/Http/Middleware/WebToken.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
             if (Cache::has('t_'.$this->apiKey)) {
31 31
                 $check = Cache::get('t_'.$this->apiKey);
32 32
             } else {
33
-                $check = Cache::remember('t_'.$this->apiKey, $cache_time_forever, function () {
33
+                $check = Cache::remember('t_'.$this->apiKey, $cache_time_forever, function() {
34 34
                     $m1token = Token::where('api_token', $this->apiKey)->first();
35 35
 
36 36
                     return $m1token;
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.