From 92e2aff2fd9569fedf3164ef9a1a834e553a6881 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 17 Jul 2017 08:51:38 -0500 Subject: [PATCH] formatting --- src/Illuminate/Queue/InteractsWithTime.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Illuminate/Queue/InteractsWithTime.php b/src/Illuminate/Queue/InteractsWithTime.php index 8df06866c744..8971a989ea72 100644 --- a/src/Illuminate/Queue/InteractsWithTime.php +++ b/src/Illuminate/Queue/InteractsWithTime.php @@ -17,7 +17,7 @@ trait InteractsWithTime */ protected function secondsUntil($delay) { - $delay = $this->handlesInterval($delay); + $delay = $this->parseDateInterval($delay); return $delay instanceof DateTimeInterface ? max(0, $delay->getTimestamp() - $this->currentTime()) @@ -32,7 +32,7 @@ protected function secondsUntil($delay) */ protected function availableAt($delay = 0) { - $delay = $this->handlesInterval($delay); + $delay = $this->parseDateInterval($delay); return $delay instanceof DateTimeInterface ? $delay->getTimestamp() @@ -40,12 +40,12 @@ protected function availableAt($delay = 0) } /** - * Converts an interval to a DateTime instance. + * If the given value is an interval, convert it to a DateTime instance. * * @param \DateTimeInterface|\DateInterval|int * @return \DateTime */ - protected function handlesInterval($delay) + protected function parseDateInterval($delay) { if ($delay instanceof DateInterval) { $delay = (new DateTime)->add($delay);