Making WordPress.org


Ignore:
Timestamp:
12/13/2017 07:27:11 PM (9 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/src/class-content-model.php

    r5806 r6262  
    1010         */
    1111        public static function action_init_register_post_type() {
    12                 register_post_type( 'result',
     12                register_post_type(
     13                        'result',
    1314                        array(
    14                                 'labels' => array(
    15                                         'name' => __( 'Test Results', 'ptr' ),
     15                                'labels'       => array(
     16                                        'name'          => __( 'Test Results', 'ptr' ),
    1617                                        'singular_name' => __( 'Test Result', 'ptr' ),
    1718                                ),
    18                                 'public' => true,
    19                                 'has_archive' => false,
     19                                'public'       => true,
     20                                'has_archive'  => false,
    2021                                'show_in_rest' => true,
    2122                                'hierarchical' => true,
    22                                 'rewrite' => array(
     23                                'rewrite'      => array(
    2324                                        'slug' => 'test-results',
    2425                                ),
    25                                 'supports' => array(
     26                                'supports'     => array(
    2627                                        'title',
    2728                                        'editor',
     
    3233                                'map_meta_cap' => true,
    3334                                'capabilities' => array(
    34                                         'edit_post' => 'edit_result',
    35                                         'edit_posts' => 'edit_results',
    36                                         'edit_others_posts' => 'edit_others_results',
    37                                         'publish_posts' => 'publish_results',
    38                                         'read_post' => 'read_result',
     35                                        'edit_post'          => 'edit_result',
     36                                        'edit_posts'         => 'edit_results',
     37                                        'edit_others_posts'  => 'edit_others_results',
     38                                        'publish_posts'      => 'publish_results',
     39                                        'read_post'          => 'read_result',
    3940                                        'read_private_posts' => 'read_private_results',
    40                                         'delete_post' => 'delete_result',
     41                                        'delete_post'        => 'delete_result',
    4142                                ),
    4243                        )
     
    4950        public static function action_init_register_role() {
    5051                if ( ! get_role( 'test-reporter' ) ) {
    51                         add_role( 'test-reporter', __( 'Test Reporter', 'ptr' ), array(
    52                                 'read' => true,
    53                         ) );
     52                        add_role(
     53                                'test-reporter', __( 'Test Reporter', 'ptr' ), array(
     54                                        'read' => true,
     55                                )
     56                        );
    5457                }
    5558                $role = get_role( 'test-reporter' );
Note: See TracChangeset for help on using the changeset viewer.