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/option/sanitize-option.php

    r42146 r42343  
    1010     *
    1111     * Inner array params: $option_name, $sanitized, $original
     12     *
    1213     * @return array
    13      *
    1414     */
    1515    public function sanitize_option_provider() {
     
    5555                'illegal_names',
    5656                array( 'www', 'web', 'root', 'admin', 'main', 'invite', 'administrator', 'files' ),
    57                 "www     web root admin main invite administrator files",
     57                'www     web root admin main invite administrator files',
    5858            ),
    5959            array(
     
    8787    }
    8888
    89     public function upload_path_provider()  {
     89    public function upload_path_provider() {
    9090        return array(
    9191            array( '<a href="http://www.example.com">Link</a>', 'Link' ),
     
    129129        $old_wp_settings_errors = (array) $wp_settings_errors;
    130130
    131         $actual = sanitize_option( 'permalink_structure', $provided);
     131        $actual = sanitize_option( 'permalink_structure', $provided );
    132132        $errors = get_settings_errors( 'permalink_structure' );
    133133
     
    169169        global $wp_settings_errors;
    170170
    171         $blogname_error = array(
     171        $blogname_error        = array(
    172172            'setting' => 'blogname',
    173173            'code'    => 'blogname',
Note: See TracChangeset for help on using the changeset viewer.