-
-
Save mariowhowrites/5269065daa669b4c88a9324026d9dbf7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function handle(SavePriceSnapshot $event) | |
{ | |
if ($this->validateMoonConditions($event)) { | |
$this->sendMoonAlert($event); | |
} | |
} | |
public function validateMoonConditions($event) | |
{ | |
return (bool) ($this->hitsMooningPercentageTarget($event) && $this->hasNotRecentlyMooned($event) && $this->isActive($event)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment