Make WordPress Core


Ignore:
Timestamp:
11/30/2017 11:09:33 PM (7 years ago)
Author:
pento
Message:

Code is Poetry.
WordPress' code just... wasn't.
This is now dealt with.

Props jrf, pento, netweb, GaryJ, jdgrimes, westonruter, Greg Sherwood from PHPCS, and everyone who's ever contributed to WPCS and PHPCS.
Fixes #41057.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/comment/commentForm.php

    r35242 r42343  
    99
    1010        $args = array(
    11             'name_submit' => 'foo-name',
    12             'id_submit' => 'foo-id',
     11            'name_submit'  => 'foo-name',
     12            'id_submit'    => 'foo-id',
    1313            'class_submit' => 'foo-class',
    1414            'label_submit' => 'foo-label',
     
    2525
    2626        $args = array(
    27             'name_submit' => 'foo-name',
    28             'id_submit' => 'foo-id',
    29             'class_submit' => 'foo-class',
    30             'label_submit' => 'foo-label',
    31             'submit_button' => '<input name="custom-%1$s" type="submit" id="custom-%2$s" class="custom-%3$s" value="custom-%4$s" />'
     27            'name_submit'   => 'foo-name',
     28            'id_submit'     => 'foo-id',
     29            'class_submit'  => 'foo-class',
     30            'label_submit'  => 'foo-label',
     31            'submit_button' => '<input name="custom-%1$s" type="submit" id="custom-%2$s" class="custom-%3$s" value="custom-%4$s" />',
    3232        );
    3333        $form = get_echo( 'comment_form', array( $args, $p ) );
     
    4141
    4242        $args = array(
    43             'name_submit' => 'foo-name',
    44             'id_submit' => 'foo-id',
     43            'name_submit'  => 'foo-name',
     44            'id_submit'    => 'foo-id',
    4545            'class_submit' => 'foo-class',
    4646            'label_submit' => 'foo-label',
    47             'submit_field' => '<p class="my-custom-submit-field">%1$s %2$s</p>'
     47            'submit_field' => '<p class="my-custom-submit-field">%1$s %2$s</p>',
    4848        );
    4949        $form = get_echo( 'comment_form', array( $args, $p ) );
     
    6161
    6262        $args = array(
    63             'name_submit' => 'foo-name',
    64             'id_submit' => 'foo-id',
     63            'name_submit'  => 'foo-name',
     64            'id_submit'    => 'foo-id',
    6565            'class_submit' => 'foo-class',
    6666            'label_submit' => 'foo-label',
Note: See TracChangeset for help on using the changeset viewer.