tripal/tripal_galaxy

View on GitHub
includes/tripal_galaxy.results.inc

Summary

Maintainability
Test Coverage

Array indentation error, expected 10 spaces but found 12
Open

            '%state' => $submission->status,

Array indentation error, expected 8 spaces but found 10
Open

          'width' => '25%',

Array indentation error, expected 8 spaces but found 10
Open

          'header' => TRUE,

Line indented incorrectly; expected 6 spaces, found 7
Open

       $dataset_id = $history_content['id'];

Array indentation error, expected 6 spaces but found 8
Open

        '#type' => 'markup',

Array indentation error, expected 10 spaces but found 12
Open

            'width' => '25%',

Array indentation error, expected 8 spaces but found 10
Open

          'header' => TRUE,

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

    // Dig down through dataset_collections to find the real dataset

Array indentation error, expected 4 spaces but found 6
Open

      '#collapsed' => TRUE,

Expected 1 blank line before function; 2 found
Open

function tripal_galaxy_workflow_report(int $sid) {

Array indentation error, expected 6 spaces but found 8
Open

        'status' => 'deleted',

Array indentation error, expected 10 spaces but found 12
Open

            'data' => 'Submission ID',

Array indentation error, expected 10 spaces but found 12
Open

            'header' => TRUE,

Array indentation error, expected 4 spaces but found 6
Open

      tripal_galaxy_get_history_name($submission),

Line indented incorrectly; expected 6 spaces, found 7
Open

       // same.

Inline comments must start with a capital letter
Open

    // retrieve the pertinents needed to download the file.

Line indented incorrectly; expected 4 spaces, found 2
Open

  ->fetchObject();

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

  // Get the list of input files so we can exclude them from the results

Array indentation error, expected 6 spaces but found 8
Open

        '#type' => 'item',

Array indentation error, expected 8 spaces but found 10
Open

          'data' => 'Status',

Array indentation error, expected 4 spaces but found 6
Open

      format_date($submission->submit_date),

Array indentation error, expected 4 spaces but found 6
Open

      '#type' => 'fieldset',

Expected 1 blank line after function; 0 found
Open

}

Line exceeds 80 characters; contains 103 characters
Open

       '#markup' => l($history_content['name'], $proxy_url, ['attributes' => ['target' => '_blank']] ),

Line indented incorrectly; expected 6 spaces, found 7
Open

       ];

Missing file doc comment
Open

<?php

The PHP open tag must be followed by exactly one blank line
Open

<?php

Line indented incorrectly; expected 4 spaces, found 2
Open

  ->fields('tg')

Array indentation error, expected 6 spaces but found 8
Open

        '#title' => t('Results deleted from Galaxy Server'),

Object operator not indented correctly; expected 6 spaces but found 4
Open

    ->condition('sid', $submission->sid)

Array indentation error, expected 10 spaces but found 12
Open

            'header' => TRUE,

Array indentation error, expected 8 spaces but found 10
Open

          'header' => TRUE,

Array indentation error, expected 8 spaces but found 10
Open

          'data' => 'Start Time',

Line indented incorrectly; expected 6 spaces, found 7
Open

       if ($history_content['file_size'] < pow(10, 6)) {

Object operator not indented correctly; expected 4 spaces but found 2
Open

  ->fields('tg')

Line indented incorrectly; expected 4 spaces, found 2
Open

  ->execute()

Array indentation error, expected 4 spaces but found 6
Open

      '#type' => 'item',

Array indentation error, expected 6 spaces but found 8
Open

        '#markup' => t('Currently, no results exist for this job. The current state of the job is:  %state.', [

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

              '<pre>' . $history_content['creating_job']['stderr'] . '</pre>'

Array indentation error, expected 8 spaces but found 10
Open

          'header' => TRUE,

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

        // $submission and matching dataset ids and where visible == FALSE

Array indentation error, expected 10 spaces but found 12
Open

            'data' => 'Workflow ID',

Line exceeds 80 characters; contains 98 characters
Open

       $proxy_url = tripal_galaxy_get_proxy_url($submission, $dataset, $node->uid, 'viewer-full');

Array indentation error, expected 6 spaces but found 8
Open

        $submission->workflow_id,

Line indented incorrectly; expected 6 spaces, found 7
Open

       $proxy_url = tripal_galaxy_get_proxy_url($submission, $dataset, $node->uid, 'viewer-full');

Array indentation error, expected 4 spaces but found 6
Open

      $submission->start_time ? format_date($submission->start_time) : '',

Array indentation error, expected 8 spaces but found 10
Open

          'header' => TRUE,

A comma should follow the last multiline array item. Found: 'tripal-galaxy-submission-table'
Open

        'class' => 'tripal-galaxy-submission-table'

Expected 1 space after closing parenthesis; found 9
Open

        foreach ($submission->errors['history_contents'] as $dc_history_content)

Expected 1 space after closing parenthesis; found 11
Open

          if ($dc_history_content['id'] == $inner_elements['object']['id'])

Line indented incorrectly; expected 6 spaces, found 7
Open

       $dataset = tripal_galaxy_get_dataset($submission, $dataset_id);

Line indented incorrectly; expected 6 spaces, found 7
Open

       } */

Array indentation error, expected 6 spaces but found 8
Open

        '#type' => 'item',

Array indentation error, expected 6 spaces but found 8
Open

        $submission->sid,

Array indentation error, expected 10 spaces but found 12
Open

            'header' => TRUE,

Array indentation error, expected 10 spaces but found 12
Open

            'data' => 'Invocation ID',

Array indentation error, expected 4 spaces but found 6
Open

      array_key_exists('error', $submission->errors) ? $submission->errors['error'] : '',

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


Line indented incorrectly; expected 6 spaces, found 4
Open

    ->execute();

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


Line indented incorrectly; expected 6 spaces, found 7
Open

       // SPF: originally this was $history_content['dataset_id'] but for

Array indentation error, expected 6 spaces but found 8
Open

        '#description' => t('It appears this analysis result has been deleted from the galaxy server on which it was run. Please return to the previous page and delete this from your workflow listing.'),

A comma should follow the last multiline array item. Found: 'tripal-galaxy-error-table'
Open

          'class' => 'tripal-galaxy-error-table'

Array indentation error, expected 4 spaces but found 6
Open

      $title,

Array indentation error, expected 8 spaces but found 10
Open

          'data' => 'Submission Error',

Array indentation error, expected 4 spaces but found 6
Open

      '#attributes' => [

Array indentation error, expected 4 spaces but found 6
Open

      '#attached' => [

Array indentation error, expected 8 spaces but found 10
Open

          'misc/collapse.js',

Line indented incorrectly; expected 6 spaces, found 7
Open

       // in v18.01 it seems fixed and both 'id' and 'dataset_id' are the

Line indented incorrectly; expected 4 spaces, found 2
Open

  ->condition('galaxy_id', $submission->galaxy_id)

Expected 1 space before "=="; 2 found
Open

        if ($history_content['history_content_type']  == 'dataset_collection') {

Array indentation error, expected 6 spaces but found 8
Open

        '#markup' => t('The result files are listed below. Click the filename to view or download results. Expand the field for the result below to

Array indentation error, expected 4 spaces but found 6
Open

      $submission->status,

Array indentation error, expected 8 spaces but found 10
Open

          'data' => 'Galaxy Server',

Array indentation error, expected 4 spaces but found 6
Open

      '#title' => t('Submission Details'),

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

  // If this is a file add viewing and download links

Line indented incorrectly; expected 6 spaces, found 4
Open

    ->condition('sid', $submission->sid)

Array indentation error, expected 6 spaces but found 8
Open

        '#title' => t('Results'),

Array indentation error, expected 8 spaces but found 10
Open

          'header' => TRUE,

Array indentation error, expected 8 spaces but found 10
Open

          'data' => 'History Name',

Line exceeds 80 characters; contains 111 characters
Open

        // Get the $history_content for each of the dataset ids we just dug up. These can be found by examining

Expected 1 blank line after function; 2 found
Open

}

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


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


Array indentation error, expected 8 spaces but found 10
Open

          'data' => 'Workflow Name',

Array indentation error, expected 10 spaces but found 12
Open

            'width' => '25%',

Array indentation error, expected 8 spaces but found 10
Open

          'header' => TRUE,

Array indentation error, expected 8 spaces but found 10
Open

          'data' => 'End Time',

Array indentation error, expected 4 spaces but found 6
Open

      '#collapsible' => TRUE,

Expected 1 blank line after function; 0 found
Open

}

Expected 1 space after closing parenthesis; found 5
Open

    if ($element['element_type'] == 'dataset_collection')

Line exceeds 80 characters; contains 86 characters
Open

      /*             // Any files that are smaller than 1MB can be shown in a browser.

Array indentation error, expected 6 spaces but found 8
Open

        '#type' => 'item',

Array indentation error, expected 6 spaces but found 8
Open

        '#title' => t('Result Files'),

Array indentation error, expected 10 spaces but found 12
Open

            'width' => '25%',

Array indentation error, expected 6 spaces but found 8
Open

        $submission->invocation_id,

Array indentation error, expected 4 spaces but found 6
Open

      $submission->end_time ? format_date($submission->end_time) : '',

Array indentation error, expected 8 spaces but found 10
Open

          'misc/form.js',

Line indented incorrectly; expected 6 spaces, found 7
Open

       // some reason that value seems off for v17.09 as it does not

Line indented incorrectly; expected 6 spaces, found 7
Open

       '#type' => 'item',

Line indented incorrectly; expected 6 spaces, found 7
Open

       '#title' => t('View File'),

Array indentation error, expected 8 spaces but found 10
Open

          'header' => TRUE,

Array indentation error, expected 8 spaces but found 10
Open

          'data' => 'Submission Date',

Array indentation error, expected 4 spaces but found 6
Open

      $galaxy->servername . '<br>' . $galaxy_logo,

Line indented incorrectly; expected 6 spaces, found 7
Open

       // point to the correct dataset. Rather the 'id' does.  However,

Line indented incorrectly; expected 6 spaces, found 7
Open

       $step_content['html_view'] = [

Line indented incorrectly; expected 6 spaces, found 7
Open

       '#markup' => l($history_content['name'], $proxy_url, ['attributes' => ['target' => '_blank']] ),

Array indentation error, expected 6 spaces but found 8
Open

        '#markup' => t('This link has expired. Please reload the job results page for uploaded links.'),

Array indentation error, expected 6 spaces but found 8
Open

        '#type' => 'item',

Expected 1 blank line after function; 2 found
Open

}

Return type missing for @return tag in function comment
Open

 * @return

Array indentation error, expected 6 spaces but found 8
Open

        '#type' => 'markup',

Array indentation error, expected 6 spaces but found 8
Open

        '#markup' => t('This link has expired. Please reload the job results page for uploaded links.'),

Inline comments must start with a capital letter
Open

    // retrieve the pertinents needed to download the file.

Array indentation error, expected 6 spaces but found 8
Open

        '#markup' => t('This page has expired. Please reload the job results page for uploaded links.'),

Concat operator must be surrounded by a single space
Open

    $breadcrumb[] = l(t('Analysis Results'), 'user/' . $uid . '/galaxy-jobs/'  . $sid);

Array indentation error, expected 6 spaces but found 8
Open

        '#type' => 'markup',

Array indentation error, expected 6 spaces but found 8
Open

        '#markup' => '<iframe src="' . url('galaxy/viewer-full/' . $proxy_id) . '" id="tripal-galaxy-results-viewer-iframe"></iframe>',

Expected 1 blank line after function; 2 found
Open

}

Array indentation error, expected 6 spaces but found 8
Open

        '#markup' => '<h2>Viewing results for ' . $name . '</h2>',

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

 * @param stdClass $submission

Array indentation error, expected 6 spaces but found 8
Open

        '#type' => 'markup',

Inline comments must start with a capital letter
Open

  // retrieve the pertinents needed to download the file.

Array indentation error, expected 6 spaces but found 8
Open

        '#type' => 'markup',

Inline comments must start with a capital letter
Open

  // retrieve the pertinents needed to download the file.

Array indentation error, expected 6 spaces but found 8
Open

        '#markup' => l(t('View full screen'), 'galaxy/viewer-full/' . $proxy_id),

There are no issues that match your filters.

Category
Status