Completed
Pull Request — master (#13)
by
unknown
12:29
created
src/Models/Tournament.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -57,13 +57,13 @@
 block discarded – undo
57 57
     protected static function boot()
58 58
     {
59 59
         parent::boot();
60
-        static::deleting(function ($tournament) {
60
+        static::deleting(function($tournament) {
61 61
             foreach ($tournament->championships as $ct) {
62 62
                 $ct->delete();
63 63
             }
64 64
             // $tournament->invites()->delete();
65 65
         });
66
-        static::restoring(function ($tournament) {
66
+        static::restoring(function($tournament) {
67 67
             foreach ($tournament->championships()->withTrashed()->get() as $ct) {
68 68
                 $ct->restore();
69 69
             }
Please login to merge, or discard this patch.