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/post/output.php

    r38679 r42343  
    2323    function _shortcode_dumptag( $atts ) {
    2424        $out = '';
    25         foreach ($atts as $k=>$v)
     25        foreach ( $atts as $k => $v ) {
    2626            $out .= "$k = $v\n";
     27        }
    2728        return $out;
    2829    }
    2930
    3031    function _shortcode_paragraph( $atts, $content ) {
    31         extract(shortcode_atts(array(
    32             'class' => 'graf',
    33         ), $atts));
     32        extract(
     33            shortcode_atts(
     34                array(
     35                    'class' => 'graf',
     36                ), $atts
     37            )
     38        );
    3439        return "<p class='$class'>$content</p>\n";
    3540    }
     
    6873EOF;
    6974
    70         $expected =<<<EOF
     75        $expected = <<<EOF
    7176foo = bar
    7277baz = 123
Note: See TracChangeset for help on using the changeset viewer.