@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('authentication_log', function (Blueprint $table) { |
|
16 | + Schema::create('authentication_log', function(Blueprint $table) { |
|
17 | 17 | $table->bigIncrements('id'); |
18 | 18 | $table->morphs('authenticatable'); |
19 | 19 | $table->string('ip_address', 45)->nullable(); |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | throw new \Exception('Error: config/permission.php not found and defaults could not be merged. Please publish the package configuration before proceeding.'); |
21 | 21 | } |
22 | 22 | |
23 | - Schema::create($tableNames['permissions'], function (Blueprint $table) { |
|
23 | + Schema::create($tableNames['permissions'], function(Blueprint $table) { |
|
24 | 24 | $table->bigIncrements('id'); |
25 | 25 | $table->uuid('uuid')->default('-'); |
26 | 26 | $table->string('name'); |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | $table->timestamps(); |
29 | 29 | }); |
30 | 30 | |
31 | - Schema::create($tableNames['roles'], function (Blueprint $table) { |
|
31 | + Schema::create($tableNames['roles'], function(Blueprint $table) { |
|
32 | 32 | $table->bigIncrements('id'); |
33 | 33 | $table->uuid('uuid')->default('-'); |
34 | 34 | $table->string('name'); |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | $table->timestamps(); |
37 | 37 | }); |
38 | 38 | |
39 | - Schema::create($tableNames['model_has_permissions'], function (Blueprint $table) use ($tableNames, $columnNames) { |
|
39 | + Schema::create($tableNames['model_has_permissions'], function(Blueprint $table) use ($tableNames, $columnNames) { |
|
40 | 40 | $table->unsignedBigInteger('permission_id'); |
41 | 41 | |
42 | 42 | $table->string('model_type'); |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | 'model_has_permissions_permission_model_type_primary'); |
53 | 53 | }); |
54 | 54 | |
55 | - Schema::create($tableNames['model_has_roles'], function (Blueprint $table) use ($tableNames, $columnNames) { |
|
55 | + Schema::create($tableNames['model_has_roles'], function(Blueprint $table) use ($tableNames, $columnNames) { |
|
56 | 56 | $table->unsignedBigInteger('role_id'); |
57 | 57 | |
58 | 58 | $table->string('model_type'); |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | 'model_has_roles_role_model_type_primary'); |
69 | 69 | }); |
70 | 70 | |
71 | - Schema::create($tableNames['role_has_permissions'], function (Blueprint $table) use ($tableNames) { |
|
71 | + Schema::create($tableNames['role_has_permissions'], function(Blueprint $table) use ($tableNames) { |
|
72 | 72 | $table->unsignedBigInteger('permission_id'); |
73 | 73 | $table->unsignedBigInteger('role_id'); |
74 | 74 |
@@ -11,7 +11,7 @@ |
||
11 | 11 | */ |
12 | 12 | public function up() |
13 | 13 | { |
14 | - Schema::create('media', function (Blueprint $table) { |
|
14 | + Schema::create('media', function(Blueprint $table) { |
|
15 | 15 | $table->bigIncrements('id'); |
16 | 16 | $table->uuid('uuid')->default('-'); |
17 | 17 | $table->morphs('model'); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('users', function (Blueprint $table) { |
|
16 | + Schema::create('users', function(Blueprint $table) { |
|
17 | 17 | $table->id(); |
18 | 18 | $table->uuid('uuid')->default('-'); |
19 | 19 | $table->string('name'); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('audits', function (Blueprint $table) { |
|
16 | + Schema::create('audits', function(Blueprint $table) { |
|
17 | 17 | $table->bigIncrements('id'); |
18 | 18 | $table->uuid('uuid')->default('-'); |
19 | 19 | $table->string('user_type')->nullable(); |
@@ -13,7 +13,7 @@ |
||
13 | 13 | */ |
14 | 14 | public function up() |
15 | 15 | { |
16 | - Schema::create('failed_jobs', function (Blueprint $table) { |
|
16 | + Schema::create('failed_jobs', function(Blueprint $table) { |
|
17 | 17 | $table->id(); |
18 | 18 | $table->text('connection'); |
19 | 19 | $table->text('queue'); |
@@ -3,7 +3,7 @@ |
||
3 | 3 | /* |
4 | 4 | * Check if current route is active navigation |
5 | 5 | */ |
6 | -if (! function_exists('isActiveNav')) { |
|
6 | +if (!function_exists('isActiveNav')) { |
|
7 | 7 | function isActiveNav($route_names) |
8 | 8 | { |
9 | 9 | return \Illuminate\Support\Str::contains( |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | collect(glob(__DIR__ . '/*.php')) |
4 | - ->each(function ($path) { |
|
4 | + ->each(function($path) { |
|
5 | 5 | if (basename($path) !== basename(__FILE__)) { |
6 | 6 | require $path; |
7 | 7 | } |
@@ -3,7 +3,7 @@ discard block |
||
3 | 3 | /* |
4 | 4 | * Check Is Mail Enabled |
5 | 5 | */ |
6 | -if (! function_exists('isMailEnabled')) { |
|
6 | +if (!function_exists('isMailEnabled')) { |
|
7 | 7 | function isMailEnabled(): bool |
8 | 8 | { |
9 | 9 | return config('mail.enabled') ?? false; |
@@ -13,11 +13,11 @@ discard block |
||
13 | 13 | /* |
14 | 14 | * Get Available Locales |
15 | 15 | */ |
16 | -if (! function_exists('locales')) { |
|
16 | +if (!function_exists('locales')) { |
|
17 | 17 | function locales() |
18 | 18 | { |
19 | - return collect(explode(',', config('app.locales')))->reject(function ($locale) { |
|
20 | - return ! file_exists(resource_path('lang/' . $locale)); |
|
19 | + return collect(explode(',', config('app.locales')))->reject(function($locale) { |
|
20 | + return !file_exists(resource_path('lang/' . $locale)); |
|
21 | 21 | }); |
22 | 22 | } |
23 | 23 | } |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | /* |
26 | 26 | * Get gravatar image if any. |
27 | 27 | */ |
28 | -if (! function_exists('gravatar')) { |
|
28 | +if (!function_exists('gravatar')) { |
|
29 | 29 | function gravatar($size = 36) |
30 | 30 | { |
31 | 31 | return 'https://www.gravatar.com/avatar/' . md5(auth()->user()->email) . '?s=' . $size; |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | /* |
36 | 36 | * Get authenticated user object. |
37 | 37 | */ |
38 | -if (! function_exists('user')) { |
|
38 | +if (!function_exists('user')) { |
|
39 | 39 | function user($guard = 'web') |
40 | 40 | { |
41 | 41 | return auth()->guard($guard)->user(); |