src/DateRange.php
protected function refactorRolledOverDate(Carbon $date, Carbon $original_date)
    {
        return $date
            ->subMonth()
            ->endOfMonth()
            ->setTime($original_date->hour, $original_date->minute, $original_date->second);
    }
protected function refactorRolledOverDate(Carbon $date, Carbon $original_date)
    {
        return $date
            ->subMonth()
            ->endOfMonth()
            ->setTime($original_date->hour, $original_date->minute, $original_date->second);
    }
protected function refactorRolledOverDate ( Carbon $ date , Carbon $ original_date ) { return $ date -> subMonth ( ) -> endOfMonth ( ) -> setTime ( $ original_date -> hour , $ original_date -> minute , $ original_date -> second ) ; }
Adjusts a date that has rolled over back to the previous month; setting the day
to the last day of the previous month; time values are maintained.

@param Carbon $date
@param Carbon $original_date

@return \DateTime
Adjusts a date that has rolled over back to the previous month ; setting the day to the last day of the previous month ; time values are maintained .