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/hooks/iterator.php

    r42200 r42343  
    99
    1010    public function test_foreach() {
    11         $callback_one = '__return_null';
    12         $callback_two = '__return_false';
    13         $hook = new WP_Hook();
    14         $tag = __FUNCTION__;
    15         $priority = rand( 1, 100 );
     11        $callback_one  = '__return_null';
     12        $callback_two  = '__return_false';
     13        $hook          = new WP_Hook();
     14        $tag           = __FUNCTION__;
     15        $priority      = rand( 1, 100 );
    1616        $accepted_args = rand( 1, 100 );
    1717
     
    1919        $hook->add_filter( $tag, $callback_two, $priority + 1, $accepted_args );
    2020
    21         $functions = array();
     21        $functions  = array();
    2222        $priorities = array();
    2323        foreach ( $hook as $key => $callbacks ) {
Note: See TracChangeset for help on using the changeset viewer.