Problem/Motivation
Getting following error/warnings.
FILE: /web/modules/contrib/login_time_restriction/tests/src/Functional/AccessTimeSettingsTest.php
------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------------
35 | WARNING | Unused variable $target_entity.
------------------------------------------------------------------------------------------------------------------------------------------------
FILE: /web/modules/contrib/login_time_restriction/login_time_restriction.module
------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------
162 | WARNING | [x] '@TODO Replace FALSE value with config value.' should match the format '@todo Fix problem X here.'
------------------------------------------------------------------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
------------------------------------------------------------------------------------------------------------------------------
Time: 916ms; Memory: 12MB
Steps to reproduce
Run following command
phpcs --standard=Drupal,DrupalPractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml modules/contrib/login_time_restriction/
Proposed resolution
Above error/warnings need to be fixed.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 3353980 - after.png | 112.48 KB | kenyoowen |
| #4 | 3353980 - before.png | 147.7 KB | kenyoowen |
Issue fork login_time_restriction-3353980
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
mukesh88 commentedComment #4
kenyoowen commentedHi mukesh88
I applied your MR in my local and confirmed that the warnings are resolved. Please see the screenshots attached.
For your review.
Thank you.
Comment #6
kunal_singh commentedApologies for the multiple changes. The Pipeline was not configured. I did that and things are working fine now.
Thanks @mukesh88 & @kenyoOwen for the contribution.
Comment #7
kunal_singh commentedComment #8
kunal_singh commented