Completed
Push — master ( 3dacf3...538517 )
by Anton
13s
created
src/Scopes/Inverse/ClosedAtScope.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
      */
67 67
     protected function addOpen(Builder $builder): void
68 68
     {
69
-        $builder->macro('open', function (Builder $builder) {
69
+        $builder->macro('open', function(Builder $builder) {
70 70
             $builder->withClosed();
71 71
 
72 72
             return $builder->update(['closed_at' => null]);
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
      */
82 82
     protected function addClose(Builder $builder): void
83 83
     {
84
-        $builder->macro('close', function (Builder $builder) {
84
+        $builder->macro('close', function(Builder $builder) {
85 85
             return $builder->update(['closed_at' => Date::now()]);
86 86
         });
87 87
     }
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
      */
95 95
     protected function addWithClosed(Builder $builder): void
96 96
     {
97
-        $builder->macro('withClosed', function (Builder $builder) {
97
+        $builder->macro('withClosed', function(Builder $builder) {
98 98
             return $builder->withoutGlobalScope($this);
99 99
         });
100 100
     }
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
      */
108 108
     protected function addWithoutClosed(Builder $builder): void
109 109
     {
110
-        $builder->macro('withoutClosed', function (Builder $builder) {
110
+        $builder->macro('withoutClosed', function(Builder $builder) {
111 111
             return $builder->withoutGlobalScope($this)->whereNull('closed_at');
112 112
         });
113 113
     }
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
      */
121 121
     protected function addOnlyClosed(Builder $builder): void
122 122
     {
123
-        $builder->macro('onlyClosed', function (Builder $builder) {
123
+        $builder->macro('onlyClosed', function(Builder $builder) {
124 124
             return $builder->withoutGlobalScope($this)->whereNotNull('closed_at');
125 125
         });
126 126
     }
Please login to merge, or discard this patch.
src/Scopes/Inverse/DraftedAtScope.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
      */
71 71
     protected function addUndraft(Builder $builder): void
72 72
     {
73
-        $builder->macro('undraft', function (Builder $builder) {
73
+        $builder->macro('undraft', function(Builder $builder) {
74 74
             $builder->withDrafted();
75 75
 
76 76
             return $builder->update(['drafted_at' => null]);
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
      */
86 86
     protected function addDraft(Builder $builder): void
87 87
     {
88
-        $builder->macro('draft', function (Builder $builder) {
88
+        $builder->macro('draft', function(Builder $builder) {
89 89
             return $builder->update(['drafted_at' => Date::now()]);
90 90
         });
91 91
     }
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
      */
99 99
     protected function addWithDrafted(Builder $builder): void
100 100
     {
101
-        $builder->macro('withDrafted', function (Builder $builder) {
101
+        $builder->macro('withDrafted', function(Builder $builder) {
102 102
             return $builder->withoutGlobalScope($this);
103 103
         });
104 104
     }
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
      */
112 112
     protected function addWithoutDrafted(Builder $builder): void
113 113
     {
114
-        $builder->macro('withoutDrafted', function (Builder $builder) {
114
+        $builder->macro('withoutDrafted', function(Builder $builder) {
115 115
             return $builder->withoutGlobalScope($this)->whereNull('drafted_at');
116 116
         });
117 117
     }
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
      */
125 125
     protected function addOnlyDrafted(Builder $builder): void
126 126
     {
127
-        $builder->macro('onlyDrafted', function (Builder $builder) {
127
+        $builder->macro('onlyDrafted', function(Builder $builder) {
128 128
             return $builder->withoutGlobalScope($this)->whereNotNull('drafted_at');
129 129
         });
130 130
     }
Please login to merge, or discard this patch.
src/Scopes/Inverse/ArchivedAtScope.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
      */
71 71
     protected function addUnarchive(Builder $builder): void
72 72
     {
73
-        $builder->macro('unarchive', function (Builder $builder) {
73
+        $builder->macro('unarchive', function(Builder $builder) {
74 74
             $builder->withArchived();
75 75
 
76 76
             return $builder->update(['archived_at' => null]);
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
      */
86 86
     protected function addArchive(Builder $builder): void
87 87
     {
88
-        $builder->macro('archive', function (Builder $builder) {
88
+        $builder->macro('archive', function(Builder $builder) {
89 89
             return $builder->update(['archived_at' => Date::now()]);
90 90
         });
91 91
     }
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
      */
99 99
     protected function addWithArchived(Builder $builder): void
100 100
     {
101
-        $builder->macro('withArchived', function (Builder $builder) {
101
+        $builder->macro('withArchived', function(Builder $builder) {
102 102
             return $builder->withoutGlobalScope($this);
103 103
         });
104 104
     }
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
      */
112 112
     protected function addWithoutArchived(Builder $builder): void
113 113
     {
114
-        $builder->macro('withoutArchived', function (Builder $builder) {
114
+        $builder->macro('withoutArchived', function(Builder $builder) {
115 115
             return $builder->withoutGlobalScope($this)->whereNull('archived_at');
116 116
         });
117 117
     }
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
      */
125 125
     protected function addOnlyArchived(Builder $builder): void
126 126
     {
127
-        $builder->macro('onlyArchived', function (Builder $builder) {
127
+        $builder->macro('onlyArchived', function(Builder $builder) {
128 128
             return $builder->withoutGlobalScope($this)->whereNotNull('archived_at');
129 129
         });
130 130
     }
Please login to merge, or discard this patch.