Skip to content

Commit

Permalink
refactor: reduce sms send time to 1 second
Browse files Browse the repository at this point in the history
  • Loading branch information
im-machakata authored Jul 23, 2024
1 parent 51f5161 commit 7d674fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Sms.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class Sms
public static function new(string $destination, string $message, ?string $reference = null, string $timestamp = null, string $validity = '03:00'): self
{
// make sure optional variables are populated
if (empty($timestamp)) $timestamp = strtotime('+5 seconds');
if (empty($timestamp)) $timestamp = strtotime('+1 second');
if (empty($reference)) $reference = uniqid();

// set values to the properties
Expand Down

0 comments on commit 7d674fd

Please sign in to comment.