@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | */ |
| 69 | 69 | protected function addComment(Builder $builder): void |
| 70 | 70 | { |
| 71 | - $builder->macro('comment', function (Builder $builder) { |
|
| 71 | + $builder->macro('comment', function(Builder $builder) { |
|
| 72 | 72 | $builder->withNotVerified(); |
| 73 | 73 | |
| 74 | 74 | return $builder->update(['comment_at' => Date::now()]); |
@@ -83,7 +83,7 @@ discard block |
||
| 83 | 83 | */ |
| 84 | 84 | protected function addUndoComment(Builder $builder): void |
| 85 | 85 | { |
| 86 | - $builder->macro('undoComment', function (Builder $builder) { |
|
| 86 | + $builder->macro('undoComment', function(Builder $builder) { |
|
| 87 | 87 | return $builder->update(['comment_at' => null]); |
| 88 | 88 | }); |
| 89 | 89 | } |
@@ -96,7 +96,7 @@ discard block |
||
| 96 | 96 | */ |
| 97 | 97 | protected function addWithNotComment(Builder $builder): void |
| 98 | 98 | { |
| 99 | - $builder->macro('withNotComment', function (Builder $builder) { |
|
| 99 | + $builder->macro('withNotComment', function(Builder $builder) { |
|
| 100 | 100 | return $builder->withoutGlobalScope($this); |
| 101 | 101 | }); |
| 102 | 102 | } |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | */ |
| 110 | 110 | protected function addWithoutNotComment(Builder $builder): void |
| 111 | 111 | { |
| 112 | - $builder->macro('withoutNotComment', function (Builder $builder) { |
|
| 112 | + $builder->macro('withoutNotComment', function(Builder $builder) { |
|
| 113 | 113 | return $builder->withoutGlobalScope($this)->whereNotNull('comment_at'); |
| 114 | 114 | }); |
| 115 | 115 | } |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | */ |
| 123 | 123 | protected function addOnlyNotComment(Builder $builder): void |
| 124 | 124 | { |
| 125 | - $builder->macro('onlyNotComment', function (Builder $builder) { |
|
| 125 | + $builder->macro('onlyNotComment', function(Builder $builder) { |
|
| 126 | 126 | return $builder->withoutGlobalScope($this)->whereNull('comment_at'); |
| 127 | 127 | }); |
| 128 | 128 | } |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | */ |
| 68 | 68 | protected function addComment(Builder $builder): void |
| 69 | 69 | { |
| 70 | - $builder->macro('comment', function (Builder $builder) { |
|
| 70 | + $builder->macro('comment', function(Builder $builder) { |
|
| 71 | 71 | $builder->withNotVerified(); |
| 72 | 72 | |
| 73 | 73 | return $builder->update(['is_comment' => 1]); |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | */ |
| 83 | 83 | protected function addUndoComment(Builder $builder): void |
| 84 | 84 | { |
| 85 | - $builder->macro('undoComment', function (Builder $builder) { |
|
| 85 | + $builder->macro('undoComment', function(Builder $builder) { |
|
| 86 | 86 | return $builder->update(['is_comment' => 0]); |
| 87 | 87 | }); |
| 88 | 88 | } |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | */ |
| 96 | 96 | protected function addWithNotComment(Builder $builder): void |
| 97 | 97 | { |
| 98 | - $builder->macro('withNotComment', function (Builder $builder) { |
|
| 98 | + $builder->macro('withNotComment', function(Builder $builder) { |
|
| 99 | 99 | return $builder->withoutGlobalScope($this); |
| 100 | 100 | }); |
| 101 | 101 | } |
@@ -108,7 +108,7 @@ discard block |
||
| 108 | 108 | */ |
| 109 | 109 | protected function addWithoutNotComment(Builder $builder): void |
| 110 | 110 | { |
| 111 | - $builder->macro('withoutNotComment', function (Builder $builder) { |
|
| 111 | + $builder->macro('withoutNotComment', function(Builder $builder) { |
|
| 112 | 112 | return $builder->withoutGlobalScope($this)->where('is_comment', 1); |
| 113 | 113 | }); |
| 114 | 114 | } |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | */ |
| 122 | 122 | protected function addOnlyNotComment(Builder $builder): void |
| 123 | 123 | { |
| 124 | - $builder->macro('onlyNotComment', function (Builder $builder) { |
|
| 124 | + $builder->macro('onlyNotComment', function(Builder $builder) { |
|
| 125 | 125 | return $builder->withoutGlobalScope($this)->where('is_comment', 0); |
| 126 | 126 | }); |
| 127 | 127 | } |