@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | */ |
38 | 38 | public function deleting(Model $model) |
39 | 39 | { |
40 | - if ($model->usingSoftDeletes()) { |
|
40 | + if ( $model->usingSoftDeletes() ) { |
|
41 | 41 | $model->{config('userstamps.deleted_by_column')} = Auth::id(); |
42 | 42 | |
43 | 43 | $this->saveWithoutEventDispatching($model); |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | */ |
53 | 53 | public function restoring(Model $model) |
54 | 54 | { |
55 | - if ($model->usingSoftDeletes()) { |
|
55 | + if ( $model->usingSoftDeletes() ) { |
|
56 | 56 | $model->{config('userstamps.deleted_by_column')} = null; |
57 | 57 | |
58 | 58 | $this->saveWithoutEventDispatching($model); |
@@ -23,8 +23,8 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 | ]); |