TripalCultivate / TripalCultivate-Phenotypes

Provides generic support for large scale phenotypic data and traits with importers, content pages and visualizations.
GNU General Public License v3.0
1 stars 0 forks source link

G2.121 Improve PHP/Drupal standards for the Traits Importer #122

Closed carolyncaron closed 6 days ago

carolyncaron commented 1 week ago

Issue #121

Dependant on PR #119

Motivation

Using the VS Code extension PHP Sniffer & Beautifier as a guideline, the Traits Importer and its test files need to be brought up to PHP/Drupal coding standards before we proceed with further development.

What does this PR do?

Applies PHP/Drupal standards to the following files:

Testing

Automated Testing

No automated tests have been added, though it's good to confirm that every test is still passing.

Manual Testing

You can check that all errors/warnings were addressed by doing the following:

  1. Create a new docker from this branch and open the repo in vs code.
  2. Choose any one of the files changed in this PR, and confirm that no problems are reported in your terminal window.

Additionally, please visually inspect the changes that occurred in each file as part of this PR. You may have to click on Load diff in the Files Changed tab to see changes to the Traits Importer- these changes are considered the most important to focus on review-wise. Fortunately, this PR should be far more manageable than #119 😅 🙏