Passed
Push — master ( ae3e5c...e9cc44 )
by Anton
02:39
created
src/Scopes/Inverse/EndedAtScope.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 addUndoEnd(Builder $builder): void
72 72
     {
73
-        $builder->macro('undoEnd', function (Builder $builder) {
73
+        $builder->macro('undoEnd', function(Builder $builder) {
74 74
             $builder->withEnded();
75 75
 
76 76
             return $builder->update(['ended_at' => null]);
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
      */
86 86
     protected function addEnd(Builder $builder): void
87 87
     {
88
-        $builder->macro('end', function (Builder $builder) {
88
+        $builder->macro('end', function(Builder $builder) {
89 89
             return $builder->update(['ended_at' => Date::now()]);
90 90
         });
91 91
     }
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
      */
99 99
     protected function addWithEnded(Builder $builder): void
100 100
     {
101
-        $builder->macro('withEnded', function (Builder $builder) {
101
+        $builder->macro('withEnded', 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 addWithoutEnded(Builder $builder): void
113 113
     {
114
-        $builder->macro('withoutEnded', function (Builder $builder) {
114
+        $builder->macro('withoutEnded', function(Builder $builder) {
115 115
             return $builder->withoutGlobalScope($this)->whereNull('ended_at');
116 116
         });
117 117
     }
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
      */
125 125
     protected function addOnlyEnded(Builder $builder): void
126 126
     {
127
-        $builder->macro('onlyEnded', function (Builder $builder) {
127
+        $builder->macro('onlyEnded', function(Builder $builder) {
128 128
             return $builder->withoutGlobalScope($this)->whereNotNull('ended_at');
129 129
         });
130 130
     }
Please login to merge, or discard this patch.
src/Scopes/Inverse/ArchivedFlagScope.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
      */
70 70
     protected function addUndoArchive(Builder $builder): void
71 71
     {
72
-        $builder->macro('undoArchive', function (Builder $builder) {
72
+        $builder->macro('undoArchive', function(Builder $builder) {
73 73
             $builder->withArchived();
74 74
 
75 75
             return $builder->update(['is_archived' => 0]);
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
      */
85 85
     protected function addArchive(Builder $builder): void
86 86
     {
87
-        $builder->macro('archive', function (Builder $builder) {
87
+        $builder->macro('archive', function(Builder $builder) {
88 88
             return $builder->update(['is_archived' => 1]);
89 89
         });
90 90
     }
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
      */
98 98
     protected function addWithArchived(Builder $builder): void
99 99
     {
100
-        $builder->macro('withArchived', function (Builder $builder) {
100
+        $builder->macro('withArchived', function(Builder $builder) {
101 101
             return $builder->withoutGlobalScope($this);
102 102
         });
103 103
     }
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
      */
111 111
     protected function addWithoutArchived(Builder $builder): void
112 112
     {
113
-        $builder->macro('withoutArchived', function (Builder $builder) {
113
+        $builder->macro('withoutArchived', function(Builder $builder) {
114 114
             return $builder->withoutGlobalScope($this)->where('is_archived', 0);
115 115
         });
116 116
     }
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
      */
124 124
     protected function addOnlyArchived(Builder $builder): void
125 125
     {
126
-        $builder->macro('onlyArchived', function (Builder $builder) {
126
+        $builder->macro('onlyArchived', function(Builder $builder) {
127 127
             return $builder->withoutGlobalScope($this)->where('is_archived', 1);
128 128
         });
129 129
     }
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 addUndoArchive(Builder $builder): void
72 72
     {
73
-        $builder->macro('undoArchive', function (Builder $builder) {
73
+        $builder->macro('undoArchive', 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.
src/Scopes/Inverse/DraftedFlagScope.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
      */
70 70
     protected function addUndoDraft(Builder $builder): void
71 71
     {
72
-        $builder->macro('undoDraft', function (Builder $builder) {
72
+        $builder->macro('undoDraft', function(Builder $builder) {
73 73
             $builder->withDrafted();
74 74
 
75 75
             return $builder->update(['is_drafted' => 0]);
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
      */
85 85
     protected function addDraft(Builder $builder): void
86 86
     {
87
-        $builder->macro('draft', function (Builder $builder) {
87
+        $builder->macro('draft', function(Builder $builder) {
88 88
             return $builder->update(['is_drafted' => 1]);
89 89
         });
90 90
     }
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
      */
98 98
     protected function addWithDrafted(Builder $builder): void
99 99
     {
100
-        $builder->macro('withDrafted', function (Builder $builder) {
100
+        $builder->macro('withDrafted', function(Builder $builder) {
101 101
             return $builder->withoutGlobalScope($this);
102 102
         });
103 103
     }
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
      */
111 111
     protected function addWithoutDrafted(Builder $builder): void
112 112
     {
113
-        $builder->macro('withoutDrafted', function (Builder $builder) {
113
+        $builder->macro('withoutDrafted', function(Builder $builder) {
114 114
             return $builder->withoutGlobalScope($this)->where('is_drafted', 0);
115 115
         });
116 116
     }
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
      */
124 124
     protected function addOnlyDrafted(Builder $builder): void
125 125
     {
126
-        $builder->macro('onlyDrafted', function (Builder $builder) {
126
+        $builder->macro('onlyDrafted', function(Builder $builder) {
127 127
             return $builder->withoutGlobalScope($this)->where('is_drafted', 1);
128 128
         });
129 129
     }
Please login to merge, or discard this patch.
src/Scopes/Inverse/ExpiredFlagScope.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
      */
70 70
     protected function addUndoExpire(Builder $builder): void
71 71
     {
72
-        $builder->macro('undoExpire', function (Builder $builder) {
72
+        $builder->macro('undoExpire', function(Builder $builder) {
73 73
             $builder->withExpired();
74 74
 
75 75
             return $builder->update(['is_expired' => 0]);
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
      */
85 85
     protected function addExpire(Builder $builder): void
86 86
     {
87
-        $builder->macro('expire', function (Builder $builder) {
87
+        $builder->macro('expire', function(Builder $builder) {
88 88
             return $builder->update(['is_expired' => 1]);
89 89
         });
90 90
     }
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
      */
98 98
     protected function addWithExpired(Builder $builder): void
99 99
     {
100
-        $builder->macro('withExpired', function (Builder $builder) {
100
+        $builder->macro('withExpired', function(Builder $builder) {
101 101
             return $builder->withoutGlobalScope($this);
102 102
         });
103 103
     }
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
      */
111 111
     protected function addWithoutExpired(Builder $builder): void
112 112
     {
113
-        $builder->macro('withoutExpired', function (Builder $builder) {
113
+        $builder->macro('withoutExpired', function(Builder $builder) {
114 114
             return $builder->withoutGlobalScope($this)->where('is_expired', 0);
115 115
         });
116 116
     }
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
      */
124 124
     protected function addOnlyExpired(Builder $builder): void
125 125
     {
126
-        $builder->macro('onlyExpired', function (Builder $builder) {
126
+        $builder->macro('onlyExpired', function(Builder $builder) {
127 127
             return $builder->withoutGlobalScope($this)->where('is_expired', 1);
128 128
         });
129 129
     }
Please login to merge, or discard this patch.
src/Scopes/Inverse/ClosedFlagScope.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
      */
66 66
     protected function addUndoClose(Builder $builder): void
67 67
     {
68
-        $builder->macro('undoClose', function (Builder $builder) {
68
+        $builder->macro('undoClose', function(Builder $builder) {
69 69
             $builder->withClosed();
70 70
 
71 71
             return $builder->update(['is_closed' => 0]);
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
      */
81 81
     protected function addClose(Builder $builder): void
82 82
     {
83
-        $builder->macro('close', function (Builder $builder) {
83
+        $builder->macro('close', function(Builder $builder) {
84 84
             return $builder->update(['is_closed' => 1]);
85 85
         });
86 86
     }
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
      */
94 94
     protected function addWithClosed(Builder $builder): void
95 95
     {
96
-        $builder->macro('withClosed', function (Builder $builder) {
96
+        $builder->macro('withClosed', function(Builder $builder) {
97 97
             return $builder->withoutGlobalScope($this);
98 98
         });
99 99
     }
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
      */
107 107
     protected function addWithoutClosed(Builder $builder): void
108 108
     {
109
-        $builder->macro('withoutClosed', function (Builder $builder) {
109
+        $builder->macro('withoutClosed', function(Builder $builder) {
110 110
             return $builder->withoutGlobalScope($this)->where('is_closed', 0);
111 111
         });
112 112
     }
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
      */
120 120
     protected function addOnlyClosed(Builder $builder): void
121 121
     {
122
-        $builder->macro('onlyClosed', function (Builder $builder) {
122
+        $builder->macro('onlyClosed', function(Builder $builder) {
123 123
             return $builder->withoutGlobalScope($this)->where('is_closed', 1);
124 124
         });
125 125
     }
Please login to merge, or discard this patch.
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 addUndoClose(Builder $builder): void
68 68
     {
69
-        $builder->macro('undoClose', function (Builder $builder) {
69
+        $builder->macro('undoClose', 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/ExpiredAtScope.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 addUndoExpire(Builder $builder): void
72 72
     {
73
-        $builder->macro('undoExpire', function (Builder $builder) {
73
+        $builder->macro('undoExpire', function(Builder $builder) {
74 74
             $builder->withExpired();
75 75
 
76 76
             return $builder->update(['expired_at' => null]);
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
      */
86 86
     protected function addExpire(Builder $builder): void
87 87
     {
88
-        $builder->macro('expire', function (Builder $builder) {
88
+        $builder->macro('expire', function(Builder $builder) {
89 89
             return $builder->update(['expired_at' => Date::now()]);
90 90
         });
91 91
     }
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
      */
99 99
     protected function addWithExpired(Builder $builder): void
100 100
     {
101
-        $builder->macro('withExpired', function (Builder $builder) {
101
+        $builder->macro('withExpired', 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 addWithoutExpired(Builder $builder): void
113 113
     {
114
-        $builder->macro('withoutExpired', function (Builder $builder) {
114
+        $builder->macro('withoutExpired', function(Builder $builder) {
115 115
             return $builder->withoutGlobalScope($this)->whereNull('expired_at');
116 116
         });
117 117
     }
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
      */
125 125
     protected function addOnlyExpired(Builder $builder): void
126 126
     {
127
-        $builder->macro('onlyExpired', function (Builder $builder) {
127
+        $builder->macro('onlyExpired', function(Builder $builder) {
128 128
             return $builder->withoutGlobalScope($this)->whereNotNull('expired_at');
129 129
         });
130 130
     }
Please login to merge, or discard this patch.
src/Scopes/Inverse/EndedFlagScope.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
      */
70 70
     protected function addUndoEnd(Builder $builder): void
71 71
     {
72
-        $builder->macro('undoEnd', function (Builder $builder) {
72
+        $builder->macro('undoEnd', function(Builder $builder) {
73 73
             $builder->withEnded();
74 74
 
75 75
             return $builder->update(['is_ended' => 0]);
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
      */
85 85
     protected function addEnd(Builder $builder): void
86 86
     {
87
-        $builder->macro('end', function (Builder $builder) {
87
+        $builder->macro('end', function(Builder $builder) {
88 88
             return $builder->update(['is_ended' => 1]);
89 89
         });
90 90
     }
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
      */
98 98
     protected function addWithEnded(Builder $builder): void
99 99
     {
100
-        $builder->macro('withEnded', function (Builder $builder) {
100
+        $builder->macro('withEnded', function(Builder $builder) {
101 101
             return $builder->withoutGlobalScope($this);
102 102
         });
103 103
     }
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
      */
111 111
     protected function addWithoutEnded(Builder $builder): void
112 112
     {
113
-        $builder->macro('withoutEnded', function (Builder $builder) {
113
+        $builder->macro('withoutEnded', function(Builder $builder) {
114 114
             return $builder->withoutGlobalScope($this)->where('is_ended', 0);
115 115
         });
116 116
     }
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
      */
124 124
     protected function addOnlyEnded(Builder $builder): void
125 125
     {
126
-        $builder->macro('onlyEnded', function (Builder $builder) {
126
+        $builder->macro('onlyEnded', function(Builder $builder) {
127 127
             return $builder->withoutGlobalScope($this)->where('is_ended', 1);
128 128
         });
129 129
     }
Please login to merge, or discard this patch.