Problem/Motivation

I see that the module follows very old PHP standard practices, for example it doesn't follow the function return type hinting, among other features that need to be added

More information about Drupal's coding standards

Steps to reproduce

Look into the module's source code, it is using outdated PHP practices.

Proposed resolution

Upgrade the module follow recent standard practices for writing more robust PHP code.

Remaining tasks

N/A

User interface changes

N/A

API changes

N/A

Data model changes

N/A

Issue fork jqcloud-3581168

Command icon 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

danrod created an issue. See original summary.

danrod’s picture

Issue tags: +Novice

sapnil_biswas made their first commit to this issue’s fork.

sapnil_biswas’s picture

Assigned: Unassigned » sapnil_biswas

I would like to work on this

sapnil_biswas’s picture

Status: Active » Needs review

marking this as needs review please let me know for any further changes required

vinodhini.e’s picture

Hi,

Tested this on Drupal 10.5.1 and ran coding standards using PHPCS, ESLint, and Stylelint.

After applying MR !15 and re-running the reports:

ESLint and Stylelint are not reporting any issues.
PHPCS is showing warnings only (no errors), listed below.

FILE: /var/www/html/web/modules/contrib/jqcloud-3581168/tests/src/FunctionalJavascript/JqcloudJavascriptTest.php
FOUND 0 ERRORS AND 19 WARNINGS AFFECTING 19 LINES

All warnings are related to the usage of t() in classes, suggesting the use of StringTranslationTrait and $this->t() instead.

Thanks.

sapnil_biswas’s picture

Thanks @vinodhini.e , for testing this out I have tried to resolve the issues in 25c9ead8

vinodhini.e’s picture

Hi, @sapnil_biswas,

I applied your changes and re-ran the PHPCS report. No errors or warnings are being reported, and its working fine.

Thanks.

sapnil_biswas’s picture

Assigned: sapnil_biswas » Unassigned
sapnil_biswas’s picture

@danrod Could you please review this once when you have time and let me know if there is anything i am currently missing at

danrod’s picture

Hi @sapnil_biswas , Could you create a MR against the 2.0.x branch?

danrod’s picture

Status: Needs review » Needs work

sapnil_biswas’s picture

Status: Needs work » Needs review

MR 16 is based on 2.0.x. @danrod please review it when you have time

danrod’s picture

Sorry @sapnil_biswas my mistake !!!
I meant branch 3.0.x, I got confused with another project.
I'm setting this to "Needs Work" again, I can do this myself if don't feel like doing it again.

danrod’s picture

Status: Needs review » Needs work
sapnil_biswas’s picture

Thats completely fine. I will get this done asap

sapnil_biswas’s picture

Status: Needs work » Needs review

updated the changes on 3.0.x , marking as needs review

jerech made their first commit to this issue’s fork.

jerech’s picture

Status: Needs review » Reviewed & tested by the community

I've updated the MR to use the PHPUnit annotation approach for cross-version compatibility.

Verified locally and in GitLab CI:

* PHPCS ✅
* PHPStan ✅
* PHPUnit ✅
* Stylelint ✅
* CSpell ✅

All pipelines are now passing and the issue is ready for review/merge.

danrod’s picture

Thank you all, I also tested functionality and works as expected, merging this.

Thanks again !

danrod’s picture

Status: Reviewed & tested by the community » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.