gpld-limit-year-dropdown-options.php: Added snippet to limit date dropdown year options based on configured min/max.
#1621
php-lint-pr.yml
on: pull_request
PHPCS (Files Changed)
16s
Annotations
2 errors and 3 warnings
|
PHPCS (Files Changed)
Error: Command failed: ./vendor/bin/phpcs --report=checkstyle --standard=phpcs.xml gp-limit-dates/gpld-limit-year-dropdown-options.php
|
|
PHPCS (Files Changed):
gp-limit-dates/gpld-limit-year-dropdown-options.php#L67
date() is affected by runtime timezone changes which can cause date/time to be incorrectly displayed. Use gmdate() instead.
|
|
PHPCS (Files Changed):
gp-limit-dates/gpld-limit-year-dropdown-options.php#L52
Equals sign not aligned with surrounding assignments; expected 3 spaces but found 1 space
|
|
PHPCS (Files Changed):
gp-limit-dates/gpld-limit-year-dropdown-options.php#L45
Equals sign not aligned with surrounding assignments; expected 2 spaces but found 1 space
|
|
PHPCS (Files Changed):
gp-limit-dates/gpld-limit-year-dropdown-options.php#L43
Equals sign not aligned with surrounding assignments; expected 2 spaces but found 1 space
|