Making WordPress.org


Ignore:
Timestamp:
12/13/2017 07:27:11 PM (8 years ago)
Author:
danielbachhuber
Message:

phpunit-test-reporter: Clean up formatting with phpcbf

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/phpunit-test-reporter/parts/single-result.php

    r5806 r6262  
    22use PTR\Display;
    33
    4 $status = 'Errored';
     4$status       = 'Errored';
    55$status_title = 'No results found for test.';
    6 $results = get_post_meta( $report->ID, 'results', true );
     6$results      = get_post_meta( $report->ID, 'results', true );
    77if ( isset( $results['failures'] ) ) {
    8     $status = 0 === (int) $results['failures'] && 0 === (int) $results['errors'] ? 'Passed' : 'Failed';
     8    $status       = 0 === (int) $results['failures'] && 0 === (int) $results['errors'] ? 'Passed' : 'Failed';
    99    $status_title = (int) $results['tests'] . ' tests, ' . (int) $results['failures'] . ' failed, ' . (int) $results['errors'] . ' errors';
    1010}
Note: See TracChangeset for help on using the changeset viewer.