tripal/tripal_galaxy

View on GitHub
includes/tripal_galaxy.webform.inc

Summary

Maintainability
Test Coverage

Expected one space after the comma, 0 found
Open

  $fasta_aliases = ['fasta','fa','fna','faa','gz'];

Expected one space after the comma, 0 found
Open

          if (!in_array($alias_to_add,$input['extensions'])) {

Inline comments must end in full-stops, exclamation marks, colons, question marks, or closing parentheses
Invalid

      // phpcs:disable Squiz.PHP.NonExecutableCode.Unreachable

Line indented incorrectly; expected 4 spaces, found 6
Invalid

      // phpcs:enable Squiz.ControlStructures.SwitchDeclaration.SpacingAfterBreak

Inline comments must start with a capital letter
Open

  // gff aliases

Inline comments must start with a capital letter
Open

  // combined for loopiness

Inline comments must end in full-stops, exclamation marks, colons, question marks, or closing parentheses
Open

  // combined for loopiness

Line exceeds 80 characters; contains 82 characters
Invalid

      // phpcs:disable Squiz.ControlStructures.SwitchDeclaration.SpacingAfterBreak

Expected one space after the comma, 0 found
Open

  $fastq_aliases = ['fastq','fq','fastqsanger','fastqillumina','fastqsolexa','gz'];

There must be no blank line following an inline comment
Invalid

      // phpcs:enable Squiz.ControlStructures.SwitchDeclaration.SpacingAfterBreak

Inline comments must end in full-stops, exclamation marks, colons, question marks, or closing parentheses
Open

  // Loop through all arrays of aliases first, check if we're dealing with any types that require aliases

Type hint "scalar" missing for $value
Open

function _tripal_galaxy_invoke_webform_build_values(array &$values, string $input_full_name, $value) {

Line indented incorrectly; expected 4 spaces, found 6
Invalid

      // phpcs:enable Squiz.PHP.NonExecutableCode.Unreachable

Expected one space after the comma, 0 found
Open

  $fasta_aliases = ['fasta','fa','fna','faa','gz'];

Inline comments must end in full-stops, exclamation marks, colons, question marks, or closing parentheses
Open

  // gff aliases

Expected one space after the comma, 0 found
Open

  $gff_aliases = ['gff','gff3', 'gz'];

Line exceeds 80 characters; contains 88 characters
Open

        // Loop through the rest of the aliases and add them if they don't already exist

Case breaking statements must be followed by a single blank line
Invalid

      return;

Expected one space after the comma, 0 found
Open

  $fastq_aliases = ['fastq','fq','fastqsanger','fastqillumina','fastqsolexa','gz'];

Expected one space after the comma, 0 found
Open

  $alias_lists = array($fasta_aliases,$fastq_aliases,$gff_aliases);

Expected one space after the comma, 0 found
Open

  $fastq_aliases = ['fastq','fq','fastqsanger','fastqillumina','fastqsolexa','gz'];

Expected one space after the comma, 0 found
Open

  $fastq_aliases = ['fastq','fq','fastqsanger','fastqillumina','fastqsolexa','gz'];

Expected one space after the comma, 0 found
Open

  $fastq_aliases = ['fastq','fq','fastqsanger','fastqillumina','fastqsolexa','gz'];

Concat operator must be surrounded by a single space
Open

            echo "Added ". $alias_to_add . " to a list\n<br />";

If the line declaring an array spans longer than 80 characters, each element should be broken into its own line
Open

  $fastq_aliases = ['fastq','fq','fastqsanger','fastqillumina','fastqsolexa','gz'];

Inline comments must end in full-stops, exclamation marks, colons, question marks, or closing parentheses
Open

        // Loop through the rest of the aliases and add them if they don't already exist

There must be no blank line following an inline comment
Open

  // the aliases is found, which may be a naive approach.

Inline comments must start with a capital letter
Open

  // fasta aliases (includes compressed versions just in case)

Inline comments must start with a capital letter
Open

  // fastq aliases (includes compressed versions just in case)

Inline comments must end in full-stops, exclamation marks, colons, question marks, or closing parentheses
Invalid

      // phpcs:enable Squiz.ControlStructures.SwitchDeclaration.SpacingAfterBreak

Expected one space after the comma, 0 found
Open

  $fasta_aliases = ['fasta','fa','fna','faa','gz'];

Expected one space after the comma, 0 found
Open

  $fasta_aliases = ['fasta','fa','fna','faa','gz'];

Missing parameter type
Open

 * @param $webform

Line exceeds 80 characters; contains 105 characters
Open

  // Loop through all arrays of aliases first, check if we're dealing with any types that require aliases

Inline comments must end in full-stops, exclamation marks, colons, question marks, or closing parentheses
Open

        // No need to keep checking for aliases in this list, proceed

Code after RETURN statement cannot be executed
Invalid

    break;

Line exceeds 80 characters; contains 81 characters
Invalid

      // phpcs:enable Squiz.ControlStructures.SwitchDeclaration.SpacingAfterBreak

Expected one space after the comma, 0 found
Open

  $alias_lists = array($fasta_aliases,$fastq_aliases,$gff_aliases);

Whitespace found at end of line
Open

  

Whitespace found at end of line
Open

  // ($filetype_aliases). The entire array is added if even one of 

Whitespace found at end of line
Open

  // files that require aliases is so small (fa, fq). For now, if 

Whitespace found at end of line
Open

  foreach ($alias_lists as $alias_list) { 

Whitespace found at end of line
Open

  // additional aliases are needed, add a new array as below 

Whitespace found at end of line
Open

  

There are no issues that match your filters.

Category
Status