protected function getCacheExpiresTime($time = null)
    {
        if ($time === self::EXPIRES_END_OF_DAY) {
            return class_exists(Carbon::class)
                ? round(Carbon::now()->secondsUntilEndOfDay() / 60)
                : $this->cacheMinutes;
        }

        return $time ?: $this->cacheMinutes;
    }
protected function getCacheExpiresTime($time = null)
    {
        if ($time === self::EXPIRES_END_OF_DAY) {
            return class_exists(Carbon::class)
                ? round(Carbon::now()->secondsUntilEndOfDay() / 60)
                : $this->cacheMinutes;
        }

        return $time ?: $this->cacheMinutes;
    }
protected function getCacheExpiresTime ( $ time = null ) { if ( $ time === self :: EXPIRES_END_OF_DAY ) { return class_exists ( Carbon :: class ) ? round ( Carbon :: now ( ) -> secondsUntilEndOfDay ( ) / 60 ) : $ this -> cacheMinutes ; } return $ time ? : $ this -> cacheMinutes ; }
Return the time until expires in minutes.

@param int $time

@return int
Return the time until expires in minutes .