Lines Matching refs:response_body
150 if ( ! empty( $response_body['location']['ip'] ) ) {
151 $response_body['location']['ip'] = $request_args['body']['ip'];
159 …$this->coordinates_match( $request_args['body'], $response_body['location'] ) && empty( $response_…
160 $response_body['location']['description'] = $this->user_location['description'];
167 $this->cache_events( $response_body, $expiration );
169 $response_body['events'] = $this->trim_events( $response_body['events'] );
171 return $response_body;
375 * @param array $response_body The response which contains the events.
378 protected function format_event_data_time( $response_body ) { argument
385 if ( isset( $response_body['events'] ) ) {
386 foreach ( $response_body['events'] as $key => $event ) {
435 $response_body['events'][ $key ]['formatted_date'] = $formatted_date;
436 $response_body['events'][ $key ]['formatted_time'] = $formatted_time;
440 return $response_body;