Passed
Branch master (b0a7b3)
by Nasrul Hazim
09:16
created
Category
database/migrations/2017_09_01_000000_create_authentication_log_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
stubs/database/migrations/2020_04_09_092021_create_permission_tables.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
stubs/database/migrations/2020_04_09_094328_create_media_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
stubs/database/migrations/2014_10_12_000000_create_users_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
stubs/database/migrations/2020_04_09_103535_create_audits_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
stubs/database/migrations/2019_08_19_000000_create_failed_jobs_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
stubs/app/Support/navigation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
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(
Please login to merge, or discard this patch.
stubs/app/Support/_.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
stubs/app/Support/global.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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();
Please login to merge, or discard this patch.