kylekatarnls/business-time

View on GitHub

Showing 227 of 228 total issues

Line exceeds 120 characters; contains 248 characters
Open

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

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 253 characters
Open

 * @method $this|null                                                          unobserveHolidays(CarbonInterface $date, $holidayId = null, $observed = null, $self = null)                                Set a holiday as not observed in the selected zone.

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.

Line exceeds 120 characters; contains 244 characters
Open

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

Line exceeds 120 characters; contains 226 characters
Open

 * @method mixed                                                               resetHolidays(CarbonInterface $date)                                                                                       Reset the holidays list.

Line exceeds 120 characters; contains 268 characters
Open

 * @method bool                                                                isDateTimeInstance(CarbonInterface $date, $value)                                                                          Return true if the given value is a DateTime or DateTimeInterface.

Line exceeds 120 characters; contains 271 characters
Open

 * @method \Carbon\Carbon|\Carbon\CarbonImmutable|\Carbon\CarbonInterface      previousCloseIncludingHolidays(CarbonInterface $date)                                                                      Go to the previous close date and time or previous holiday if sooner.

Line exceeds 120 characters; contains 271 characters
Open

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

Line exceeds 120 characters; contains 132 characters
Open

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

Line exceeds 120 characters; contains 287 characters
Open

 * @method \Carbon\CarbonInterface|\Carbon\Carbon|\Carbon\CarbonImmutable      previousBusinessDay(CarbonInterface $date)                                                                                 Sets the date to the previous business day (neither a weekend day nor a holiday).

Line exceeds 120 characters; contains 260 characters
Open

 * @method $this|null                                                          setHolidayObserveStatus(CarbonInterface $date, $holidayId, $observed, $self = null)                                        Set a holiday as observed/unobserved in the selected zone.

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 224 characters
Open

 * @method mixed                                                               setHolidays(CarbonInterface $date, $region, $holidays)                                                                     Set the holidays list.

Line exceeds 120 characters; contains 262 characters
Open

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

Line exceeds 120 characters; contains 270 characters
Open

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

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 236 characters
Open

 * @method \Carbon\Carbon|\Carbon\CarbonImmutable|\Carbon\CarbonInterface      nextOpen(CarbonInterface $date, $method = null)                                                                            Go to the next open date and time.

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 248 characters
Open

 * @method \Carbon\Carbon|\Carbon\CarbonImmutable|\Carbon\CarbonInterface      subtractBusinessDay(CarbonInterface $date, $days = 1, $date = null)                                                        Subtract one business day to the current date.
Severity
Category
Status
Source
Language