Passed
Push — master ( 5eab00...91dbb2 )
by Ruud
02:52
created
src/Observers/UserStampObserver.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/Database/Schema/Macros/UserStampsMacro.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 
24 24
     private function registerUserstamps()
25 25
     {
26
-        Blueprint::macro('userstamps', function () {
26
+        Blueprint::macro('userstamps', function() {
27 27
             $this->unsignedInteger(config('userstamps.created_by_column'))->nullable();
28 28
             $this->unsignedInteger(config('userstamps.updated_by_column'))->nullable();
29 29
 
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 
44 44
     private function registerSoftUserstamps()
45 45
     {
46
-        Blueprint::macro('softUserstamps', function () {
46
+        Blueprint::macro('softUserstamps', function() {
47 47
             $this->unsignedInteger(config('userstamps.deleted_by_column'))->nullable();
48 48
 
49 49
             $this->foreign(config('userstamps.deleted_by_column'))
@@ -57,14 +57,14 @@  discard block
 block discarded – undo
57 57
 
58 58
     private function registerDropUserstamps()
59 59
     {
60
-        Blueprint::macro('dropUserstamps', function () {
61
-            if (! DB::connection() instanceof SQLiteConnection) {
60
+        Blueprint::macro('dropUserstamps', function() {
61
+            if ( !DB::connection() instanceof SQLiteConnection ) {
62 62
                 $this->dropForeign([
63 63
                     config('userstamps.created_by_column'),
64 64
                 ]);
65 65
             }
66 66
 
67
-            if (! DB::connection() instanceof SQLiteConnection) {
67
+            if ( !DB::connection() instanceof SQLiteConnection ) {
68 68
                 $this->dropForeign([
69 69
                     config('userstamps.updated_by_column'),
70 70
                 ]);
@@ -79,8 +79,8 @@  discard block
 block discarded – undo
79 79
 
80 80
     private function registerDropSoftUserstamps()
81 81
     {
82
-        Blueprint::macro('dropSoftUserstamps', function () {
83
-            if (! DB::connection() instanceof SQLiteConnection) {
82
+        Blueprint::macro('dropSoftUserstamps', function() {
83
+            if ( !DB::connection() instanceof SQLiteConnection ) {
84 84
                 $this->dropForeign([
85 85
                     config('userstamps.deleted_by_column'),
86 86
                 ]);
Please login to merge, or discard this patch.