Closed (outdated)
Project:
scroll to top
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
5 Jun 2013 at 18:29 UTC
Updated:
20 Oct 2025 at 08:46 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
tarekdj commentedIssue marked for Tunisian local sprint next week.
Comment #2
willieseabrook commentedI have rerolled the patch against 7.x-2.x latest. See attached
Comment #3
chi commentedThe patch is outdated.
Comment #4
darol100 commentedComment #5
darol100 commentedI have created a new patch that will fix all Drupal standards coding errors.
I only have one warning that I did not figure out how to fix it.
Comment #6
darol100 commentedComment #7
chi commentedI think it's a bad practice using t() function for variable translation. Here are some explanations: http://hojtsy.hu/blog/2011-may-19/drupals-multilingual-problem-why-t-wro...
Common way to translate variables is using i18n module. https://www.drupal.org/node/1113374
Comment #8
darol100 commented@Chi
Thank you for the amazing resources.
I have created another patch where will fix ALL Drupal Coding Standards errors.
Comment #9
darol100 commentedComment #10
jwilson3Comment #11
darol100 commentedWhat is Needs to reroll means ?
Comment #12
tarekdj commentedNeeds reroll means that the code changed and the patch does not apply anymore.
https://www.drupal.org/contributor-tasks/reroll
Comment #13
darol100 commentedI can submitted an updated version of the patch. But would be possible to give it a priority so this does not have to be re-rolling over and over again ?
Comment #14
dhanushka madushan commentedthe patch applied cleanly
Comment #16
anabpvI will work on this issue
Comment #17
anabpvI ran phpcs and phpcbf and fixed most issues.
The ones that still need to be fixed are these:
Since these errors still need to be corrected, I'm changing the status to Needs Work.
Comment #18
Johnny Santos commentedOk, im going for this
Comment #19
Johnny Santos commentedJust an update, I applied the last patch and run phpcs as well as phpcbf and what I got was this, as listed below:
FILE: ...t-drupal_useful_scripts-20f10c7ee60f/d7webform/sites/all/modules/scroll_to_top/scroll_to_top.admin.inc
------------------------------------------------------------------------------------------------------------
FOUND 9 ERRORS AND 3 WARNINGS AFFECTING 6 LINES
------------------------------------------------------------------------------------------------------------
3 | ERROR | Missing short description in doc comment
6 | WARNING | PHP version not specified
6 | ERROR | Missing @category tag in file comment
6 | ERROR | Missing @package tag in file comment
6 | ERROR | Missing @author tag in file comment
6 | ERROR | Missing @license tag in file comment
6 | ERROR | Missing @link tag in file comment
10 | ERROR | Missing @return tag in function comment
11 | ERROR | Function name "scroll_to_top_settings" is prefixed with a package name but does not begin
| | with a capital letter
11 | ERROR | Function name "scroll_to_top_settings" is invalid; consider "Scroll_To_Top_settings"
| | instead
17 | WARNING | Line exceeds 85 characters; contains 89 characters
64 | WARNING | Line exceeds 85 characters; contains 171 characters
Comment #20
Johnny Santos commentedPlease do not consider my last comment, I used the wrong standart, instead of Drupal's.
Comment #22
Johnny Santos commentedOk, so after using phpcs with the right standart, I got the same log as the comment #17.
Worked on it, and now its pushed and fixed.
Changing to needs review status.
Comment #23
matheusmaciel commentedI'll review it!
Comment #24
matheusmaciel commentedI reviewed the issue with the phpcs and everything looks fine.
The "arrow.png" file shows that the module still works.
The "error_screen_2022-05-16 11-31-59.png" file shows the phpcs error messages.
And lastly, the "correct_screen2022-05-16 11-38-06.png" file shows the phpcs output (which is none) after the last commited work done.
Comment #25
matheusmaciel commentedComment #27
astonvictor commentedD7 reached its EOL back in January 2025, and there is no active release for D7 for this module anymore.
Development or support is not planned for D7. All D7-related issues are marked as outdated in a bunch.