tripal/tripal_galaxy

View on GitHub
tripal_galaxy.module

Summary

Maintainability
Test Coverage

Expected 1 space after IF keyword; 0 found
Open

        if(array_key_exists('existing', $component) and $component['existing']) {
Severity: Minor
Found in tripal_galaxy.module by phpcodesniffer

Expected 1 space after IF keyword; 0 found
Open

        if(array_key_exists('data_collection', $component) and $component['data_collection']) {
Severity: Minor
Found in tripal_galaxy.module by phpcodesniffer

Expected one space after the comma, 0 found
Open

          $fids_list = explode(",",$fids[0]);
Severity: Minor
Found in tripal_galaxy.module by phpcodesniffer

Expected 1 space after IF keyword; 0 found
Open

        if(array_key_exists('site_wide', $component) and $component['site_wide']) {
Severity: Minor
Found in tripal_galaxy.module by phpcodesniffer

Functions must not contain multiple empty lines in a row; found 2 empty lines
Open


Severity: Minor
Found in tripal_galaxy.module by phpcodesniffer

Expected 1 blank line after function; 2 found
Open

}
Severity: Minor
Found in tripal_galaxy.module by phpcodesniffer

Functions must not contain multiple empty lines in a row; found 2 empty lines
Open


Severity: Minor
Found in tripal_galaxy.module by phpcodesniffer

Expected one space after the comma, 0 found
Open

        db_update('tripal_galaxy')->fields(['serverstatus' => 'available',])
Severity: Minor
Found in tripal_galaxy.module by phpcodesniffer

Comma not allowed after last value in single-line array declaration
Open

        db_update('tripal_galaxy')->fields(['serverstatus' => 'available',])
Severity: Minor
Found in tripal_galaxy.module by phpcodesniffer

Expected 1 blank line after function; 3 found
Open

}
Severity: Minor
Found in tripal_galaxy.module by phpcodesniffer

Function comment short description must start with exactly one space
Open

 *  Adds a new setting for the workflow.
Severity: Minor
Found in tripal_galaxy.module by phpcodesniffer

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

  // Retrieve the list of galaxy servers
Severity: Minor
Found in tripal_galaxy.module by phpcodesniffer

More than 2 empty lines are not allowed
Open


Severity: Minor
Found in tripal_galaxy.module by phpcodesniffer

A comma should follow the last multiline array item. Found: 0
Open

      'no_email' => 0
Severity: Minor
Found in tripal_galaxy.module by phpcodesniffer

Expected 1 blank line after function; 2 found
Open

}
Severity: Minor
Found in tripal_galaxy.module by phpcodesniffer

A comma should follow the last multiline array item. Found: 0
Open

      'no_email' => 0
Severity: Minor
Found in tripal_galaxy.module by phpcodesniffer

Concat operator must be surrounded by a single space
Open

  $line = preg_replace('/\[results_link\]/', url('/user/' . $user->uid . '/galaxy-jobs/'. $submission->sid, ['absolute' => TRUE]), $line);
Severity: Minor
Found in tripal_galaxy.module by phpcodesniffer

Function comment short description must start with exactly one space
Open

 *  Adds a new setting for the workflow.
Severity: Minor
Found in tripal_galaxy.module by phpcodesniffer

A comma should follow the last multiline array item. Found: 0
Open

      'no_email' => 0
Severity: Minor
Found in tripal_galaxy.module by phpcodesniffer

There are no issues that match your filters.

Category
Status