Completed
Push — master ( 303d2f...b0c15d )
by Ruud
07:00
created
src/Database/Schema/Macros/UserStampsMacro.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -23,8 +23,8 @@  discard block
 block discarded – undo
23 23
 
24 24
     private function registerUserstamps()
25 25
     {
26
-        Blueprint::macro('userstamps', function () {
27
-            if(config('userstamps.users_table_column_type') === 'bigIncrements') {
26
+        Blueprint::macro('userstamps', function() {
27
+            if ( config('userstamps.users_table_column_type') === 'bigIncrements' ) {
28 28
                 $this->unsignedBigInteger(config('userstamps.created_by_column'))->nullable();
29 29
                 $this->unsignedBigInteger(config('userstamps.updated_by_column'))->nullable();
30 30
             } else {
@@ -48,8 +48,8 @@  discard block
 block discarded – undo
48 48
 
49 49
     private function registerSoftUserstamps()
50 50
     {
51
-        Blueprint::macro('softUserstamps', function () {
52
-            if(config('userstamps.users_table_column_type') === 'bigIncrements') {
51
+        Blueprint::macro('softUserstamps', function() {
52
+            if ( config('userstamps.users_table_column_type') === 'bigIncrements' ) {
53 53
                 $this->unsignedBigInteger(config('userstamps.deleted_by_column'))->nullable();
54 54
             } else {
55 55
                 $this->unsignedInteger(config('userstamps.deleted_by_column'))->nullable();
@@ -66,14 +66,14 @@  discard block
 block discarded – undo
66 66
 
67 67
     private function registerDropUserstamps()
68 68
     {
69
-        Blueprint::macro('dropUserstamps', function () {
70
-            if (! DB::connection() instanceof SQLiteConnection) {
69
+        Blueprint::macro('dropUserstamps', function() {
70
+            if ( !DB::connection() instanceof SQLiteConnection ) {
71 71
                 $this->dropForeign([
72 72
                     config('userstamps.created_by_column'),
73 73
                 ]);
74 74
             }
75 75
 
76
-            if (! DB::connection() instanceof SQLiteConnection) {
76
+            if ( !DB::connection() instanceof SQLiteConnection ) {
77 77
                 $this->dropForeign([
78 78
                     config('userstamps.updated_by_column'),
79 79
                 ]);
@@ -88,8 +88,8 @@  discard block
 block discarded – undo
88 88
 
89 89
     private function registerDropSoftUserstamps()
90 90
     {
91
-        Blueprint::macro('dropSoftUserstamps', function () {
92
-            if (! DB::connection() instanceof SQLiteConnection) {
91
+        Blueprint::macro('dropSoftUserstamps', function() {
92
+            if ( !DB::connection() instanceof SQLiteConnection ) {
93 93
                 $this->dropForeign([
94 94
                     config('userstamps.deleted_by_column'),
95 95
                 ]);
Please login to merge, or discard this patch.