$ phpcs --standard=Drupalpractice --extensions=php,module,inc,install,test,profile,theme,css,info,txt,md,yml trinion_base/
FILE: C:\xampp\htdocs\contribution\web\modules\contrib\trinion_base\src\Theme\TrinionBackendNegotiator.php
----------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNINGS AFFECTING 1 LINES
----------------------------------------------------------------------------------------------------------
26 | WARNING | User::load calls should be avoided in classes, use dependency injection instead
----------------------------------------------------------------------------------------------------------
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | User_load_calls_should_be_avoided_in_classes-3290797-2.patch | 1.94 KB | himanshu_jhaloya |
| #5 | issue-resloved.png | 35.34 KB | himanshu_jhaloya |
| #4 | patch-failed.png | 73.38 KB | himanshu_jhaloya |
| #2 | User_load_calls_should_be_avoided_in_classes-3290797-1.patch | 1.79 KB | rakhi soni |
Issue fork 3283272-3290797
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 #2
rakhi soni commentedI have created a patch to fix this issue,,
Comment #3
himanshu_jhaloya commentedHi @Rakhi soni i am reviewing your patch.
Comment #4
himanshu_jhaloya commentedHi @Rakhi soni i reviewed your patch. Patch #failed
Comment #5
himanshu_jhaloya commentedI have fixed that issue and applied a patch for it