Closed (fixed)
Project:
Profile Switcher
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Nov 2021 at 01:33 UTC
Updated:
28 Jul 2022 at 21:49 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
smulvih2Patch to fix PHPCS errors.
Comment #3
smulvih2Comment #4
Matheus Macario commentedComment #5
Matheus Macario commentedSo, after have done the code review on the #3 patch , i noticed that there are still some errors and warnings popping out on terminal. The profile-switcher-phpcs-errors-3250768-3.patch(#3) fix plenty of errors but there are some dependency injection issues on the
ProfileSwitcherCommands.phpfile . I attached a txt file showing these errors after the patch been applied. With that been said i'm changing the status to ''needs work''.Comment #6
Matheus Macario commentedComment #7
smulvih2New patch also fixes PHPCS warnings.
I'm running PHPCS with the following parameters:
--standard="Drupal,DrupalPractice" --extensions="php,module,inc,install,test,profile,theme,md,info"Comment #8
smulvih2Issue with too few arguments. Need more time to resolve dependency injection issue.
Comment #9
tmaiochi commentedI'll work on this.
Comment #10
tmaiochi commentedI tried to do the dependecy injection, but I couldn't find the services necessary to do this, so I'm leaving this issue for someone else can try
Comment #11
beatrizrodriguesI will work on the dependency injection here
Comment #12
beatrizrodriguesI couldn't proceed with that issue right know, sorry.
Comment #13
Willy Christian commentedWorking on it.
Comment #14
Willy Christian commentedThe patch #7 already fixed DI. Was missing only line size in a few files.
Comment #15
joachim commentedThe DI needs work -- currently it crashes.
Typo in the 2nd 'Always'.
Stray whitespace.
AFAIK this can be removed too.
This can just be removed.
This needs the injected services to be declared as parameters in the yml file.
A quoted string shouldn't be wrapped like that.
Comment #16
smulvih2Comment #17
smulvih2Fixed issue with DI, ready for review.
Comment #18
Guilherme Rabelo commentedI'll review this patch.
Comment #19
Guilherme Rabelo commentedI apply the #17 patch and all coding standards messages in PHPCS have been fixed.
Moving to RTBC.
Comment #20
rajeshreeputraRTBC +1
Comment #24
kreynen commented