Lines Matching defs:invert
18 public function increment(DateTime $date, $invert = false, $parts = null)
21 if ($invert) {
36 $position = $invert ? count($minutes) - 1 : 0;
39 if ((!$invert && $current_minute >= $minutes[$i] && $current_minute < $minutes[$i + 1]) ||
40 ($invert && $current_minute > $minutes[$i] && $current_minute <= $minutes[$i + 1])) {
41 $position = $invert ? $i : $i + 1;
47 if ((!$invert && $current_minute >= $minutes[$position]) || ($invert && $current_minute <= $minutes[$position])) {
48 $date->modify(($invert ? '-' : '+') . '1 hour');
49 $date->setTime($date->format('H'), $invert ? 59 : 0);