kylekatarnls/business-time

View on GitHub

Showing 227 of 228 total issues

Line exceeds 120 characters; contains 259 characters
Open

 * @method \Carbon\Carbon|\Carbon\CarbonImmutable|\Carbon\CarbonInterface      addBusinessInterval(CarbonInterface $date, bool $open, $interval = null, $unit = null, int $options = 0)                   Add the given interval taking into account only open time

Line exceeds 120 characters; contains 267 characters
Open

 * @method \Carbon\Carbon|\Carbon\CarbonImmutable|\Carbon\CarbonInterface      addOpenHours(CarbonInterface $date, int $numberOfHours, int $options = 0)                                                  Add the given number of hours taking into account only open time.

Line exceeds 120 characters; contains 272 characters
Open

 * @method \Carbon\Carbon|\Carbon\CarbonImmutable|\Carbon\CarbonInterface      subOpenHours(CarbonInterface $date, int $numberOfHours, int $options = 0)                                                  Subtract the given number of hours taking into account only open time.

Line exceeds 120 characters; contains 281 characters
Open

 * @method \Carbon\Carbon|\Carbon\CarbonImmutable|\Carbon\CarbonInterface      closedOrNextOpen(CarbonInterface $date)                                                                                    Return current date-time if it's closed, else go to the next open date and time

Line exceeds 120 characters; contains 267 characters
Open

 * @method \Carbon\Carbon|\Carbon\CarbonImmutable|\Carbon\CarbonInterface      previousBusinessOpen(CarbonInterface $date)                                                                                Go to the previous open date and time that is also not a holiday.

Line exceeds 120 characters; contains 309 characters
Open

 * @method bool                                                                isBusinessClosed(CarbonInterface $date)                                                                                    Returns true if the business is closed or a holiday now (or current date and time) according to current

Line exceeds 120 characters; contains 132 characters
Open

        $openingHours = $this->proceedConfig($config['opening-hours'] ?? $config['opening_hours'] ?? $config['openingHours'] ?? []);

Line exceeds 120 characters; contains 244 characters
Open

 * @method bool                                                                isHoliday(CarbonInterface $date)                                                                                           Checks the date to see if it is a holiday.

Line exceeds 120 characters; contains 260 characters
Open

 * @method \Carbon\Carbon|\Carbon\CarbonImmutable|\Carbon\CarbonInterface      addOpenTime(CarbonInterface $date, $interval = null, $unit = null, int $options = 0)                                       Add the given interval taking into account only open time.

Line exceeds 120 characters; contains 289 characters
Open

 * @method \Carbon\CarbonInterval                                              diffAsBusinessInterval(CarbonInterface $date, $date = null, int $options = 0)                                              Return an interval with open/closed business time between the current date and an other

Line exceeds 120 characters; contains 263 characters
Open

 * @method \Carbon\Carbon|\Carbon\CarbonImmutable|\Carbon\CarbonInterface      subtractBusinessDays(CarbonInterface $date, $days = 1, $date = null)                                                       Subtract a given number of business days to the current date.

Line exceeds 120 characters; contains 260 characters
Open

 * @method $this|null                                                          setHolidayGetter(CarbonInterface $date, callable $holidayGetter)                                                           Set the strategy to get the holiday ID from a date object.

Line exceeds 120 characters; contains 289 characters
Open

 * @method \Carbon\Carbon|\Carbon\CarbonImmutable|\Carbon\CarbonInterface|null setHolidayName(CarbonInterface $date, $holidayKey = null, $language = null, $name = null)                                  Set/change the name of holiday by ID for a given language (or a list of languages).

Line exceeds 120 characters; contains 275 characters
Open

 * @method \Carbon\Carbon|\Carbon\CarbonImmutable|\Carbon\CarbonInterface      openOrPreviousBusinessClose(CarbonInterface $date)                                                                         Return current date-time if it's open, else go to the previous close date

Line exceeds 120 characters; contains 243 characters
Open

 * @method \Carbon\Carbon|\Carbon\CarbonImmutable|\Carbon\CarbonInterface      addBusinessDay(CarbonInterface $date, $days = 1, $date = null)                                                             Add one business day to the current date.

Line exceeds 120 characters; contains 270 characters
Open

 * @method array                                                               getMonthBusinessDays(CarbonInterface $date, $date = null)                                                                  Get list of date objects for each business day in the current month.

Line exceeds 120 characters; contains 308 characters
Open

 * @method bool                                                                isBusinessDay(CarbonInterface $date)                                                                                       Checks the date to see if it is a business day (extra workday or neither a weekend day nor a holiday).

Line exceeds 120 characters; contains 246 characters
Open

 * @method string|null                                                         getObservedHolidaysZone(CarbonInterface $date)                                                                             Get the selected zone for observed holidays.

Line exceeds 120 characters; contains 266 characters
Open

 * @method $this|null                                                          setExtraWorkdayGetter(CarbonInterface $date, callable $workdayGetter)                                                      Set the strategy to get the extra workday ID from a date object.

Line exceeds 120 characters; contains 275 characters
Open

 * @method string|false                                                        getHolidayId(CarbonInterface $date)                                                                                        Get the identifier of the current holiday or false if it's not a holiday.
Severity
Category
Status
Source
Language