WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/30/2017 11:09:33 PM (4 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/src/wp-includes/customize/class-wp-customize-code-editor-control.php

    r41957 r42343  
    4848     */
    4949    public function enqueue() {
    50         $this->editor_settings = wp_enqueue_code_editor( array_merge(
    51             array(
    52                 'type' => $this->code_type,
    53                 'codemirror' => array(
    54                     'indentUnit' => 2,
    55                     'tabSize' => 2,
     50        $this->editor_settings = wp_enqueue_code_editor(
     51            array_merge(
     52                array(
     53                    'type'       => $this->code_type,
     54                    'codemirror' => array(
     55                        'indentUnit' => 2,
     56                        'tabSize'    => 2,
     57                    ),
    5658                ),
    57             ),
    58             $this->editor_settings
    59         ) );
     59                $this->editor_settings
     60            )
     61        );
    6062    }
    6163
     
    6971     */
    7072    public function json() {
    71         $json = parent::json();
     73        $json                    = parent::json();
    7274        $json['editor_settings'] = $this->editor_settings;
    73         $json['input_attrs'] = $this->input_attrs;
     75        $json['input_attrs']     = $this->input_attrs;
    7476        return $json;
    7577    }
Note: See TracChangeset for help on using the changeset viewer.