Problem/Motivation
When running PHP CS there are more one hundred errors. They should be fixed to increase module's quality and it is one of the requests in the issue to opt to security review, see https://www.drupal.org/project/projectapplications/issues/3398888#commen....
Steps to reproduce
Run PHP CS. The easisest way is to use ddev. Follow steps to setup a drupal site with ddev: https://ddev.readthedocs.io/en/stable/users/quickstart/#drupal-drupal-10
Once it is up and running, do the following:
- git clone it under web/module/development
- Either run this command from your computer:
- Or run connect to the PHP docker container (ddev ssh) and run this command:
phpcs --standard=Drupal web/modules/development/languagewire_translation_provider/
dev php /var/www/html/vendor/bin/phpcs --standard=Drupal web/modules/development/languagewire_translation_provider/
Then you only have to fix errors, run php cs again and fix more errors.
Proposed resolution
Fix reported errors.
Issue fork languagewire_translation_provider-3467132
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
tunicAdded fixes for mos of the errors thanks to automatics fixes provided by phpcbf.
To try yourself run:
phpcbf --standard=Drupal web/modules/development/languagewire_translation_provider/Comment #3
sarwan_verma commentedComment #5
sarwan_verma commentedHi,
I have resolved the PHPCS issues and created MR!1.
Please review and verify.
Thanks!
Comment #10
lucm_lw commented