Make WordPress Core

Changeset 50152


Ignore:
Timestamp:
02/02/2021 06:02:36 PM (6 years ago)
Author:
desrosj
Message:

Coding Standards: Fix several minor coding standards issues.

These are made by running composer format.

Follow up to [50124], [50129], [50143].

See #49961, #52192, #34281.

Location:
trunk/src/wp-includes
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/cron.php

    r50143 r50152  
    545545        if ( ! is_array( $args ) ) {
    546546                _deprecated_argument( __FUNCTION__, '3.0.0', __( 'This argument has changed to an array to match the behavior of the other cron functions.' ) );
    547                 $args = array_slice( func_get_args(), 1 ); // phpcs:ignore PHPCompatibility.FunctionUse.ArgumentFunctionsReportCurrentValue.NeedsInspection
     547                $args     = array_slice( func_get_args(), 1 ); // phpcs:ignore PHPCompatibility.FunctionUse.ArgumentFunctionsReportCurrentValue.NeedsInspection
    548548                $wp_error = false;
    549549        }
     
    11831183function _set_cron_array( $cron, $wp_error = false ) {
    11841184        $cron['version'] = 2;
    1185         $result = update_option( 'cron', $cron );
     1185        $result          = update_option( 'cron', $cron );
    11861186
    11871187        if ( $wp_error && ! $result ) {
  • trunk/src/wp-includes/media.php

    r50148 r50152  
    49874987         * Silencing notice and warning is intentional.
    49884988         *
    4989          * getimagesize() has a tendency to generate errors, such as 
     4989         * getimagesize() has a tendency to generate errors, such as
    49904990         * "corrupt JPEG data: 7191 extraneous bytes before marker",
    49914991         * even when it's able to provide image size information.
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php

    r50124 r50152  
    13361336                                        'oneOf'       => array(
    13371337                                                array(
    1338                                                         'title'       => __( 'Rotation' ),
    1339                                                         'properties'  => array(
     1338                                                        'title'      => __( 'Rotation' ),
     1339                                                        'properties' => array(
    13401340                                                                'type' => array(
    13411341                                                                        'description' => __( 'Rotation type.' ),
     
    13591359                                                ),
    13601360                                                array(
    1361                                                         'title'       => __( 'Crop' ),
    1362                                                         'properties'  => array(
     1361                                                        'title'      => __( 'Crop' ),
     1362                                                        'properties' => array(
    13631363                                                                'type' => array(
    13641364                                                                        'description' => __( 'Crop type.' ),
  • trunk/src/wp-includes/script-loader.php

    r50129 r50152  
    10841084                'userProfileL10n',
    10851085                array(
    1086                         'user_id'  => $user_id,
    1087                         'nonce'    => wp_create_nonce( 'reset-password-for-' . $user_id ),
     1086                        'user_id' => $user_id,
     1087                        'nonce'   => wp_create_nonce( 'reset-password-for-' . $user_id ),
    10881088                )
    10891089        );
Note: See TracChangeset for help on using the changeset viewer.