@@ -24,7 +24,7 @@ |
||
| 24 | 24 | */ |
| 25 | 25 | public function up(): void |
| 26 | 26 | { |
| 27 | - Schema::create('bans', function (Blueprint $table) { |
|
| 27 | + Schema::create('bans', function(Blueprint $table) { |
|
| 28 | 28 | $table->increments('id'); |
| 29 | 29 | $table->morphs('bannable'); |
| 30 | 30 | $table->nullableMorphs('created_by'); |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | */ |
| 42 | 42 | public function unban(BannableContract $bannable): void |
| 43 | 43 | { |
| 44 | - $bannable->bans->each(function ($ban) { |
|
| 44 | + $bannable->bans->each(function($ban) { |
|
| 45 | 45 | $ban->delete(); |
| 46 | 46 | }); |
| 47 | 47 | } |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | ->where('expired_at', '<=', Carbon::now()->format('Y-m-d H:i:s')) |
| 58 | 58 | ->get(); |
| 59 | 59 | |
| 60 | - $bans->each(function ($ban) { |
|
| 60 | + $bans->each(function($ban) { |
|
| 61 | 61 | $ban->delete(); |
| 62 | 62 | }); |
| 63 | 63 | } |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | */ |
| 68 | 68 | protected function addWithBanned(Builder $builder): void |
| 69 | 69 | { |
| 70 | - $builder->macro('withBanned', function (Builder $builder) { |
|
| 70 | + $builder->macro('withBanned', function(Builder $builder) { |
|
| 71 | 71 | return $builder->withoutGlobalScope($this); |
| 72 | 72 | }); |
| 73 | 73 | } |
@@ -80,7 +80,7 @@ discard block |
||
| 80 | 80 | */ |
| 81 | 81 | protected function addWithoutBanned(Builder $builder): void |
| 82 | 82 | { |
| 83 | - $builder->macro('withoutBanned', function (Builder $builder) { |
|
| 83 | + $builder->macro('withoutBanned', function(Builder $builder) { |
|
| 84 | 84 | return $builder->withoutGlobalScope($this)->whereNull('banned_at'); |
| 85 | 85 | }); |
| 86 | 86 | } |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | */ |
| 94 | 94 | protected function addOnlyBanned(Builder $builder): void |
| 95 | 95 | { |
| 96 | - $builder->macro('onlyBanned', function (Builder $builder) { |
|
| 96 | + $builder->macro('onlyBanned', function(Builder $builder) { |
|
| 97 | 97 | return $builder->withoutGlobalScope($this)->whereNotNull('banned_at'); |
| 98 | 98 | }); |
| 99 | 99 | } |