Make WordPress Core

Ticket #40702: 40702-docs-cs.diff

File 40702-docs-cs.diff, 1.7 KB (added by Soean, 7 years ago)

documentation and coding standards

  • src/wp-admin/includes/class-wp-community-events.php

     
    239239         * @access protected
    240240         * @since 4.8.0
    241241         *
    242          * @param  string      $address The IP address that should be anonymized.
     242         * @param  string $address The IP address that should be anonymized.
    243243         * @return bool|string The anonymized address on success; the given address
    244244         *                     or false on failure.
    245245         */
     
    269269         * @access protected
    270270         * @since 4.8.0
    271271         *
    272          * @param  array       $location Should contain 'latitude' and 'longitude' indexes.
     272         * @param  array $location Should contain 'latitude' and 'longitude' indexes.
    273273         * @return bool|string false on failure, or a string on success.
    274274         */
    275275        protected function get_events_transient_key( $location ) {
     
    364364         */
    365365        protected function trim_events( $response_body ) {
    366366                if ( isset( $response_body['events'] ) ) {
    367                         $current_timestamp = current_time('timestamp' );
     367                        $current_timestamp = current_time( 'timestamp' );
    368368
    369369                        foreach ( $response_body['events'] as $key => $event ) {
    370370                                // Skip WordCamps, because they might be multi-day events.
     
    401401         * @since 4.8.0
    402402         *
    403403         * @param string $message        A description of what occurred.
    404          * @param array  $debugging_info Details that provide more context for the
     404         * @param array  $details Details that provide more context for the
    405405         *                               log entry.
    406406         */
    407407        protected function maybe_log_events_response( $message, $details ) {