Return tests to passing now that we don't ignore a critical event...
This commit is contained in:
parent
09832cc558
commit
0621d8475d
14 changed files with 44 additions and 60 deletions
|
@ -2,7 +2,6 @@
|
|||
|
||||
namespace Pterodactyl\Services\Activity;
|
||||
|
||||
use InvalidArgumentException;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class ActivityLogTargetableService
|
||||
|
@ -13,19 +12,11 @@ class ActivityLogTargetableService
|
|||
|
||||
public function setActor(Model $actor): void
|
||||
{
|
||||
if (!is_null($this->actor)) {
|
||||
throw new InvalidArgumentException('Cannot call ' . __METHOD__ . ' when an actor is already set on the instance.');
|
||||
}
|
||||
|
||||
$this->actor = $actor;
|
||||
}
|
||||
|
||||
public function setSubject(Model $subject): void
|
||||
{
|
||||
if (!is_null($this->subject)) {
|
||||
throw new InvalidArgumentException('Cannot call ' . __METHOD__ . ' when a target is already set on the instance.');
|
||||
}
|
||||
|
||||
$this->subject = $subject;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue