GitLab CI reports PHP_CodeSniffer errors/warnings which should be fixed.
| Comment | File | Size | Author |
|---|---|---|---|
| #18 | 3332563-18-after.png | 24.59 KB | shyam_bhatt |
| #17 | afterpatch.png | 42.86 KB | thakurnishant_06 |
| #16 | interdiff-12-16.patch | 2.49 KB | imustakim |
| #16 | 3332563-16.patch | 6.75 KB | imustakim |
| #13 | after.png | 19.36 KB | thakurnishant_06 |
Issue fork recently_read-3332563
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
samitk commentedError/Warnings are fixed.
Comment #3
irfan.gul commentedThe given patch was empty. So, I have created a new patch. Please review the patch.
Comment #4
sourabhjainI have applied the patch #3 and still below issues are showing
So I have fixed it and attaching the patch for that.
Comment #5
akshay.singh commentedI will review this.
Thanks
Comment #6
samitk commentedNot sure, how it shown empty patch in #2
Adding the same patch again.
Comment #7
akshay.singh commentedPatch #4 applied cleanly.
And no further issues left.
Moving to RTBC!
Comment #10
Sonal Gyanani commentedPatch #4 working fine, all errors and warnings are fixed.
Comment #11
avpadernoThe last line is not indented corrected. It should start 2 spaces to the right of the previous line.
That description is still repeating the class name, while it should describe what the class does.
The report shown in the issue summary does not say that the default value for that property must be changed.
Comment #12
mrinalini9 commentedUpdated patch #6 by addressing #11, please review it.
Thanks!
Comment #13
thakurnishant_06 commentedHello Folks !!
I have applied and tested the #12 patch and the phpcs issues has been successfully fixed! The patch was tested on Drupal 9.5.9 and PHP 8.2.4. To provide you with a comprehensive view, I will be adding both a before and after screenshot.
Thank you for your support!!
Comment #14
avpadernoI apologize if I have not been clear. This is how that text should be formatted.
A comma is missing before and.
the Recently read type form does not say what the form does.
That is still just repeating the interface name. The article at the beginning does not change that.
Comment #15
imustakim commentedWorking on this.
Comment #16
imustakim commentedUpdated patch addressing suggestions mentioned in #14.
Please review.
Comment #17
thakurnishant_06 commentedHello imustakim,
I have reviewed your patch & Implemented it on my website having Drupal version-9.5.9 And PHP version - 8.2
I am adding screenshot(after applying the patch) for your reference.
Please have a look.
Thank You for your support!!!
Comment #18
shyam_bhattI have reviewed your patch & Implemented it on my website having Drupal version 10.0.9 And PHP version 8.1
The patch #16 is working fine.
Please take the latest pull of the "8.x-1.x" and run the below command from the root folder:
vendor/bin/phpcs --standard=DrupalPractice,Drupal --extensions=php,module,info,txt,md,yml web/modules/contrib/recently_read/Please check the below screenshot:

Comment #20
deaom commentedCorrected order of use statements and also removed static calls for loading entities, added type hint etc. Needs review as there are not adequate test, to see if anything broke.
Comment #22
admirlju commentedRebased and tested the code. From what I see everything works like it's supposed to. The tests issued are being handled by #3382214: Drupal 10 Fix deprecations in tests. Marking the issue as RTBC. Should be now ready for merge.
Comment #23
avpadernoComment #24
thakurnishant_06 commentedHello updated the file as per the changes suggested . Kindly review the changes
Thank you .
Comment #25
paraderojether commentedHi
I reviewed MR!6, applied against Recently Read 8.x-1.x-dev, and confirmed it fixes the issues reported by phpcs.
Thank you.
Comment #27
avpadernoComment #28
avpadernoComment #30
Anonymous (not verified) commentedI'm closing this issue as outdated because coding standards were resolved in Drupal 11 Compatibility release.