@@ -25,7 +25,7 @@ |
||
25 | 25 | */ |
26 | 26 | public function up() |
27 | 27 | { |
28 | - Schema::create('bans', function (Blueprint $table) { |
|
28 | + Schema::create('bans', function(Blueprint $table) { |
|
29 | 29 | $table->increments('id'); |
30 | 30 | $table->morphs('bannable'); |
31 | 31 | $table->nullableMorphs('created_by'); |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | */ |
44 | 44 | public function unban(Bannable $bannable) |
45 | 45 | { |
46 | - $bannable->bans->each(function ($ban) { |
|
46 | + $bannable->bans->each(function($ban) { |
|
47 | 47 | $ban->delete(); |
48 | 48 | }); |
49 | 49 | } |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | { |
58 | 58 | $bans = Ban::where('expired_at', '<=', Carbon::now()->format('Y-m-d H:i:s'))->get(); |
59 | 59 | |
60 | - $bans->each(function ($ban) { |
|
60 | + $bans->each(function($ban) { |
|
61 | 61 | $ban->delete(); |
62 | 62 | }); |
63 | 63 | } |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | */ |
71 | 71 | protected function addWithBanned(Builder $builder) |
72 | 72 | { |
73 | - $builder->macro('withBanned', function (Builder $builder) { |
|
73 | + $builder->macro('withBanned', function(Builder $builder) { |
|
74 | 74 | return $builder->withoutGlobalScope($this); |
75 | 75 | }); |
76 | 76 | } |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | */ |
84 | 84 | protected function addWithoutBanned(Builder $builder) |
85 | 85 | { |
86 | - $builder->macro('withoutBanned', function (Builder $builder) { |
|
86 | + $builder->macro('withoutBanned', function(Builder $builder) { |
|
87 | 87 | return $builder->withoutGlobalScope($this)->whereNull('banned_at'); |
88 | 88 | }); |
89 | 89 | } |
@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | */ |
97 | 97 | protected function addOnlyBanned(Builder $builder) |
98 | 98 | { |
99 | - $builder->macro('onlyBanned', function (Builder $builder) { |
|
99 | + $builder->macro('onlyBanned', function(Builder $builder) { |
|
100 | 100 | return $builder->withoutGlobalScope($this)->whereNotNull('banned_at'); |
101 | 101 | }); |
102 | 102 | } |