File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -56,8 +56,8 @@ public function constraintsDescriptions(): array
5656 {
5757 try {
5858 return collect ($ this ->constraints )
59- ->map (fn (string $ event ) => unserialize ($ event ))
60- ->filter (fn ($ event ) => is_subclass_of ($ event , Descriptionable::class))
59+ ->map (fn (string $ event ) => unserialize ($ event ))
60+ ->filter (fn ($ event ) => is_subclass_of ($ event , Descriptionable::class))
6161 ->reduce (function ($ base , Descriptionable $ descriable ) {
6262 return array_merge ($ base , $ descriable ::conditions ());
6363 }, []);
@@ -72,9 +72,9 @@ public function constraintsNotSatisfiedDescriptions(): array
7272 {
7373 try {
7474 return collect ($ this ->constraints )
75- ->map (fn (string $ event ) => unserialize ($ event ))
76- ->filter (fn ($ event ) => is_subclass_of ($ event , Descriptionable::class))
77- ->filter (fn ($ event ) => !$ event ->canSend ($ this , $ this ->logs ))
75+ ->map (fn (string $ event ) => unserialize ($ event ))
76+ ->filter (fn ($ event ) => is_subclass_of ($ event , Descriptionable::class))
77+ ->filter (fn ($ event ) => ! $ event ->canSend ($ this , $ this ->logs ))
7878 ->reduce (function ($ base , Descriptionable $ descriable ) {
7979 return array_merge ($ base , $ descriable ::conditions ());
8080 }, []);
You can’t perform that action at this time.
0 commit comments