Completed
Pull Request — master (#5882)
by
unknown
38s
created
test-app/app/Admin/Controllers/HomeController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -16,17 +16,17 @@
 block discarded – undo
16 16
             ->title('Dashboard')
17 17
             ->description('Description...')
18 18
             ->row(Dashboard::title())
19
-            ->row(function (Row $row) {
19
+            ->row(function(Row $row) {
20 20
 
21
-                $row->column(4, function (Column $column) {
21
+                $row->column(4, function(Column $column) {
22 22
                     $column->append(Dashboard::environment());
23 23
                 });
24 24
 
25
-                $row->column(4, function (Column $column) {
25
+                $row->column(4, function(Column $column) {
26 26
                     $column->append(Dashboard::extensions());
27 27
                 });
28 28
 
29
-                $row->column(4, function (Column $column) {
29
+                $row->column(4, function(Column $column) {
30 30
                     $column->append(Dashboard::dependencies());
31 31
                 });
32 32
             });
Please login to merge, or discard this patch.
test-app/app/Admin/routes.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,8 +8,8 @@
 block discarded – undo
8 8
     'prefix'        => config('admin.route.prefix'),
9 9
     'namespace'     => config('admin.route.namespace'),
10 10
     'middleware'    => config('admin.route.middleware'),
11
-    'as'            => config('admin.route.prefix') . '.',
12
-], function (Router $router) {
11
+    'as'            => config('admin.route.prefix').'.',
12
+], function(Router $router) {
13 13
 
14 14
     $router->get('/', 'HomeController@index')->name('home');
15 15
 
Please login to merge, or discard this patch.
node_modules/flatted/php/flatted.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@
 block discarded – undo
121 121
   private static function transform(&$known, &$input, &$value) {
122 122
     if (is_array($value)) {
123 123
       return array_map(
124
-        function ($value) use(&$known, &$input) {
124
+        function($value) use(&$known, &$input) {
125 125
           return Flatted::relate($known, $input, $value);
126 126
         },
127 127
         $value
Please login to merge, or discard this patch.
database/migrations/2016_01_04_173148_create_admin_tables.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
      */
22 22
     public function up()
23 23
     {
24
-        Schema::create(config('admin.database.users_table'), function (Blueprint $table) {
24
+        Schema::create(config('admin.database.users_table'), function(Blueprint $table) {
25 25
             $table->id();
26 26
             $table->string('username', 190)->unique();
27 27
             $table->string('password', 60);
@@ -31,14 +31,14 @@  discard block
 block discarded – undo
31 31
             $table->timestamps();
32 32
         });
33 33
 
34
-        Schema::create(config('admin.database.roles_table'), function (Blueprint $table) {
34
+        Schema::create(config('admin.database.roles_table'), function(Blueprint $table) {
35 35
             $table->id();
36 36
             $table->string('name', 50)->unique();
37 37
             $table->string('slug', 50)->unique();
38 38
             $table->timestamps();
39 39
         });
40 40
 
41
-        Schema::create(config('admin.database.permissions_table'), function (Blueprint $table) {
41
+        Schema::create(config('admin.database.permissions_table'), function(Blueprint $table) {
42 42
             $table->id();
43 43
             $table->string('name', 50)->unique();
44 44
             $table->string('slug', 50)->unique();
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
             $table->timestamps();
48 48
         });
49 49
 
50
-        Schema::create(config('admin.database.menu_table'), function (Blueprint $table) {
50
+        Schema::create(config('admin.database.menu_table'), function(Blueprint $table) {
51 51
             $table->id();
52 52
             $table->integer('parent_id')->default(0);
53 53
             $table->integer('order')->default(0);
@@ -59,35 +59,35 @@  discard block
 block discarded – undo
59 59
             $table->timestamps();
60 60
         });
61 61
 
62
-        Schema::create(config('admin.database.role_users_table'), function (Blueprint $table) {
62
+        Schema::create(config('admin.database.role_users_table'), function(Blueprint $table) {
63 63
             $table->foreignId('role_id')->constrained(config('admin.database.roles_table'))->onDelete('cascade');
64 64
             $table->foreignId('user_id')->constrained(config('admin.database.users_table'))->onDelete('cascade');
65 65
             $table->index(['role_id', 'user_id']);
66 66
             $table->timestamps();
67 67
         });
68 68
 
69
-        Schema::create(config('admin.database.role_permissions_table'), function (Blueprint $table) {
69
+        Schema::create(config('admin.database.role_permissions_table'), function(Blueprint $table) {
70 70
             $table->foreignId('role_id')->constrained(config('admin.database.roles_table'))->onDelete('cascade');
71 71
             $table->foreignId('permission_id')->constrained(config('admin.database.permissions_table'))->onDelete('cascade');
72 72
             $table->index(['role_id', 'permission_id']);
73 73
             $table->timestamps();
74 74
         });
75 75
 
76
-        Schema::create(config('admin.database.user_permissions_table'), function (Blueprint $table) {
76
+        Schema::create(config('admin.database.user_permissions_table'), function(Blueprint $table) {
77 77
             $table->foreignId('user_id')->constrained(config('admin.database.users_table'))->onDelete('cascade');
78 78
             $table->foreignId('permission_id')->constrained(config('admin.database.permissions_table'))->onDelete('cascade');
79 79
             $table->index(['user_id', 'permission_id']);
80 80
             $table->timestamps();
81 81
         });
82 82
 
83
-        Schema::create(config('admin.database.role_menu_table'), function (Blueprint $table) {
83
+        Schema::create(config('admin.database.role_menu_table'), function(Blueprint $table) {
84 84
             $table->foreignId('role_id')->constrained(config('admin.database.roles_table'))->onDelete('cascade');
85 85
             $table->foreignId('menu_id')->constrained(config('admin.database.menu_table'))->onDelete('cascade');
86 86
             $table->index(['role_id', 'menu_id']);
87 87
             $table->timestamps();
88 88
         });
89 89
 
90
-        Schema::create(config('admin.database.operation_log_table'), function (Blueprint $table) {
90
+        Schema::create(config('admin.database.operation_log_table'), function(Blueprint $table) {
91 91
             $table->id();
92 92
             $table->foreignId('user_id')->constrained(config('admin.database.users_table'))->onDelete('cascade');
93 93
             $table->string('path');
Please login to merge, or discard this patch.
src/Traits/HasAssets.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
     public static function useVite()
73 73
     {
74 74
         return config('admin.assets.use_vite', false) && 
75
-               file_exists(public_path(config('admin.assets.vite_build_path', 'build') . '/manifest.json'));
75
+               file_exists(public_path(config('admin.assets.vite_build_path', 'build').'/manifest.json'));
76 76
     }
77 77
 
78 78
     /**
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
         $script = collect(static::$script)
260 260
             ->merge(static::$deferredScript)
261 261
             ->unique()
262
-            ->map(function ($line) {
262
+            ->map(function($line) {
263 263
                 return $line;
264 264
                 //@see https://stackoverflow.com/questions/19509863/how-to-remove-js-comments-using-php
265 265
                 $pattern = '/(?:(?:\/\*(?:[^*]|(?:\*+[^*\/]))*\*+\/)|(?:(?<!\:|\\\|\')\/\/.*))/';
@@ -284,7 +284,7 @@  discard block
 block discarded – undo
284 284
 
285 285
         $style = collect(static::$style)
286 286
             ->unique()
287
-            ->map(function ($line) {
287
+            ->map(function($line) {
288 288
                 return preg_replace('/\s+/', ' ', $line);
289 289
             });
290 290
 
@@ -501,7 +501,7 @@  discard block
 block discarded – undo
501 501
 
502 502
         $script = "
503 503
         // AdminLTE 4 + Bootstrap 5 Initialization
504
-        window.AdminConfig = " . json_encode($config) . ";
504
+        window.AdminConfig = " . json_encode($config).";
505 505
         
506 506
         // Initialize theme on page load
507 507
         document.addEventListener('DOMContentLoaded', function() {
Please login to merge, or discard this patch.