Skip to content

Commit 2bd0332

Browse files
committed
wip
1 parent 019057d commit 2bd0332

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/Algos/Algo.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

tests/src/TestClasses/GenerateUserFeed.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)