src/Calendar.php
/**
     * @param \DateInterval $interval
     * @return integer  Positive or negative shift.
     */
@param \DateInterval $interval
@return integer  Positive or negative shift.
@param \ DateInterval $interval @return integer Positive or negative shift .
private function intervalToDays(\DateInterval $interval)
    {
        $days = $interval->days;
        if ($interval->invert == 1) {
            $days *= -1;
        }
        return $days;
    }
private function intervalToDays ( \ DateInterval $ interval ) { $ days = $ interval -> days ; if ( $ interval -> invert == 1 ) { $ days *= - 1 ; } return $ days ; }
@param \DateInterval $interval
 @return integer  Positive or negative shift.
@param \ DateInterval $interval @return integer Positive or negative shift .