|
@ -31,7 +31,7 @@ function generateUrl($supplier = null, $event = null) { |
|
|
return sprintf('%s/%s/%s', $requestUrl, $supplier, $event); |
|
|
return sprintf('%s/%s/%s', $requestUrl, $supplier, $event); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
function findNext($start, $frequency, $excludes = [], $maxIterations = 1000i, $direction = +1) { |
|
|
|
|
|
|
|
|
function findNext($start, $frequency, $excludes = [], $maxIterations = 1000, $direction = +1) { |
|
|
$current = clone $start; |
|
|
$current = clone $start; |
|
|
$frequency = \DateInterval::createFromDateString($frequency); |
|
|
$frequency = \DateInterval::createFromDateString($frequency); |
|
|
do { |
|
|
do { |
|
|