Completed
Pull Request — master (#67)
by
unknown
02:40
created
src/Scopes/Classic/CommentFlagScope.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
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_commentable' => 1]);
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
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_commentable' => 0]);
87 87
         });
88 88
     }
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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_commentable', 1);
113 113
         });
114 114
     }
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
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_commentable', 0);
126 126
         });
127 127
     }
Please login to merge, or discard this patch.
src/Scopes/Classic/CommentAtScope.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
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(['commentable_at' => Date::now()]);
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
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(['commentable_at' => null]);
88 88
         });
89 89
     }
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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('commentable_at');
114 114
         });
115 115
     }
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
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('commentable_at');
127 127
         });
128 128
     }
Please login to merge, or discard this patch.