File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -76,12 +76,12 @@ public function getName(): string
7676 return Str::of ($ baseName )->beforeLast ('Algo ' );
7777 }
7878
79- public function markAsFailed (): Result
79+ public function failed (): Result
8080 {
8181 return Result::make ()->status (Status::Failed);
8282 }
8383
84- public function markAsSuccess (): Result
84+ public function succcess (): Result
8585 {
8686 return Result::make ()->status (Status::Success);
8787 }
Original file line number Diff line number Diff line change @@ -15,15 +15,13 @@ class GenerateUserFeed extends Algo
1515
1616 public function handle (): Result
1717 {
18- $ result = Result::make ();
19-
2018 $ hash = $ this ->user ->modelCache (
2119 $ this ->generateUniqueId (),
2220 ['ids ' => (array ) $ this ->getCollection ()],
2321 now ()->addMinutes (10 ),
2422 );
2523
26- return $ result
24+ return $ this
2725 ->success ('Feed generated successfully ' )
2826 ->with ('hash ' , $ hash );
2927 }
You can’t perform that action at this time.
0 commit comments