tripal/tripal_galaxy

View on GitHub
api/tripal_galaxy.api.inc

Summary

Maintainability
Test Coverage

Closing parenthesis of array declaration must be on a new line
Open

        'error' => $error_msg])
Severity: Minor
Found in api/tripal_galaxy.api.inc by phpcodesniffer

Missing parameter comment
Open

 * @param GalaxyInstance $galaxy
Severity: Minor
Found in api/tripal_galaxy.api.inc by phpcodesniffer

Separate the @param and @code sections by a blank line.
Invalid

 *   @code
Severity: Minor
Found in api/tripal_galaxy.api.inc by phpcodesniffer

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


Severity: Minor
Found in api/tripal_galaxy.api.inc by phpcodesniffer

There must be no blank line following an inline comment
Invalid

// phpcs:disable Drupal.Commenting.DocComment.TagsNotGrouped
Severity: Minor
Found in api/tripal_galaxy.api.inc by phpcodesniffer

Parameter comment must end with a full stop
Open

 *   must be in the following format:
Severity: Minor
Found in api/tripal_galaxy.api.inc by phpcodesniffer

Missing parameter comment
Open

 * @param string $history_name
Severity: Minor
Found in api/tripal_galaxy.api.inc by phpcodesniffer

Line exceeds 80 characters; contains 81 characters
Open

          // If no jobs are in the state of 'paused', 'running', or 'queued', the
Severity: Minor
Found in api/tripal_galaxy.api.inc by phpcodesniffer

Tags must be grouped together in a doc comment
Open

 *   @code
Severity: Minor
Found in api/tripal_galaxy.api.inc by phpcodesniffer

Expected 1 space after asterisk; 3 found
Invalid

 *   @endcode
Severity: Minor
Found in api/tripal_galaxy.api.inc by phpcodesniffer

Parameter tags must be grouped together in a doc comment
Open

 * @param
Severity: Minor
Found in api/tripal_galaxy.api.inc by phpcodesniffer

Missing parameter type
Open

 * @param
Severity: Minor
Found in api/tripal_galaxy.api.inc by phpcodesniffer

Expected 1 space between comma and "'Completed'"; 0 found
Open

  $query->condition('tgws.status', ['Error','Completed', 'Deleted'], 'NOT IN');
Severity: Minor
Found in api/tripal_galaxy.api.inc by phpcodesniffer

Comment indentation error, expected only 1 spaces
Open

        //   discarded, running, setting_metadata, error, queued,  empty.
Severity: Minor
Found in api/tripal_galaxy.api.inc by phpcodesniffer

Expected 1 space after "=>"; 2 found
Open

                  'id' =>  $element['object']['id'],
Severity: Minor
Found in api/tripal_galaxy.api.inc by phpcodesniffer

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

  // Make sure we have the correct inputs
Severity: Minor
Found in api/tripal_galaxy.api.inc by phpcodesniffer

Closing parenthesis of array declaration must be on a new line
Open

        'error' => '']),
Severity: Minor
Found in api/tripal_galaxy.api.inc by phpcodesniffer

There must be no blank line following an inline comment
Invalid

// phpcs:enable Drupal.Commenting.DocComment.TagsNotGrouped
Severity: Minor
Found in api/tripal_galaxy.api.inc by phpcodesniffer

Array indentation error, expected 19 spaces but found 18
Open

                  'history_id' => $element['object']['history_id'],
Severity: Minor
Found in api/tripal_galaxy.api.inc by phpcodesniffer

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

        'error' => $error_msg])
Severity: Minor
Found in api/tripal_galaxy.api.inc by phpcodesniffer

Line indented incorrectly; expected 16 spaces, found 17
Open

                 $object_contents = $ghistory_contents->show([
Severity: Minor
Found in api/tripal_galaxy.api.inc by phpcodesniffer

Expected 1 space after asterisk; 3 found
Invalid

 *   @endcode
Severity: Minor
Found in api/tripal_galaxy.api.inc by phpcodesniffer

Expected 1 blank line after function; 2 found
Open

}
Severity: Minor
Found in api/tripal_galaxy.api.inc by phpcodesniffer

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

  // Set the file as being managed by Tripal and Tripal Galaxy
Severity: Minor
Found in api/tripal_galaxy.api.inc by phpcodesniffer

Expected 1 newline at end of file; 2 found
Open

}
Severity: Minor
Found in api/tripal_galaxy.api.inc by phpcodesniffer

Array closing indentation error, expected 17 spaces but found 16
Open

                ]);
Severity: Minor
Found in api/tripal_galaxy.api.inc by phpcodesniffer

Expected 1 space after asterisk; 3 found
Invalid

 *   @code
Severity: Minor
Found in api/tripal_galaxy.api.inc by phpcodesniffer

Tags must be grouped together in a doc comment
Invalid

 * @param array $history
Severity: Minor
Found in api/tripal_galaxy.api.inc by phpcodesniffer

Array closing indentation error, expected 4 spaces but found 6
Open

      ])
Severity: Minor
Found in api/tripal_galaxy.api.inc by phpcodesniffer

Line exceeds 80 characters; contains 83 characters
Open

        // if 'ok' state has value larger than 0 and all other states' values being
Severity: Minor
Found in api/tripal_galaxy.api.inc by phpcodesniffer

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

          // Get greater details about this history
Severity: Minor
Found in api/tripal_galaxy.api.inc by phpcodesniffer

Array indentation error, expected 19 spaces but found 18
Open

                  'id' =>  $element['object']['id'],
Severity: Minor
Found in api/tripal_galaxy.api.inc by phpcodesniffer

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

// phpcs:enable Drupal.Commenting.DocComment.TagsNotGrouped
Severity: Minor
Found in api/tripal_galaxy.api.inc by phpcodesniffer

Tags must be grouped together in a doc comment
Open

 * @param array $inputs
Severity: Minor
Found in api/tripal_galaxy.api.inc by phpcodesniffer

Expected "object" but found "stdClass" for parameter type
Open

 * @param stdClass $submission
Severity: Minor
Found in api/tripal_galaxy.api.inc by phpcodesniffer

Expected "object" but found "stdClass" for parameter type
Open

 * @param stdClass $submission
Severity: Minor
Found in api/tripal_galaxy.api.inc by phpcodesniffer

Expected "object" but found "stdClass" for parameter type
Open

 * @param stdClass $submission
Severity: Minor
Found in api/tripal_galaxy.api.inc by phpcodesniffer

Expected one space after the comma, 0 found
Open

  $query->condition('tgws.status', ['Error','Completed', 'Deleted'], 'NOT IN');
Severity: Minor
Found in api/tripal_galaxy.api.inc by phpcodesniffer

Separate the @param and @code sections by a blank line.
Invalid

 *   @code
Severity: Minor
Found in api/tripal_galaxy.api.inc by phpcodesniffer

Line exceeds 80 characters; contains 84 characters
Open

        // 0, then this history has completed successfully. We can set the $status =
Severity: Minor
Found in api/tripal_galaxy.api.inc by phpcodesniffer

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

// phpcs:disable Drupal.Commenting.DocComment.TagsNotGrouped
Severity: Minor
Found in api/tripal_galaxy.api.inc by phpcodesniffer

Expected 1 space after asterisk; 3 found
Invalid

 *   @code
Severity: Minor
Found in api/tripal_galaxy.api.inc by phpcodesniffer

Tags must be grouped together in a doc comment
Open

 *   @endcode
Severity: Minor
Found in api/tripal_galaxy.api.inc by phpcodesniffer

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

  // Now save the file
Severity: Minor
Found in api/tripal_galaxy.api.inc by phpcodesniffer

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

  // Now register the file with Drupal
Severity: Minor
Found in api/tripal_galaxy.api.inc by phpcodesniffer

Use "elseif" in place of "else if"
Open

          else if (
Severity: Minor
Found in api/tripal_galaxy.api.inc by phpcodesniffer

There are no issues that match your filters.

Category
Status