Fix PHP CS errors

Created on 9 August 2024, 5 months ago
Updated 19 September 2024, 4 months ago

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:
  • dev php /var/www/html/vendor/bin/phpcs --standard=Drupal web/modules/development/languagewire_translation_provider/

  • Or run connect to the PHP docker container (ddev ssh) and run this command:
          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.

📌 Task
Status

Fixed

Component

Code

Created by

🇪🇸Spain tunic Madrid

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024