Passed
Branch master (b0ec44)
by Anton
04:32
created
Category
database/migrations/2017_03_04_000000_create_bans_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
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');
Please login to merge, or discard this patch.
src/Services/BanService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Scopes/BannedAtScope.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.