Skip to content

Commit b243021

Browse files
committed
Coding standards
1 parent 632f018 commit b243021

File tree

6 files changed

+1668
-1678
lines changed

6 files changed

+1668
-1678
lines changed

ad-code-manager.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -224,15 +224,15 @@ function get_options() {
224224
$default_provider = 'doubleclick_for_publishers';
225225
// Make sure our default provider exists. Otherwise, the sky will fall on our head
226226
if ( ! isset( $this->providers->$default_provider ) ) {
227-
foreach( $this->providers as $slug => $provider ) {
227+
foreach ( $this->providers as $slug => $provider ) {
228228
$default_provider = $slug;
229229
break;
230230
}
231231
}
232232

233233
$defaults = array(
234-
'provider' => $default_provider,
235-
);
234+
'provider' => $default_provider,
235+
);
236236
$options = get_option( 'acm_options', array() );
237237
return array_merge( $defaults, $options );
238238
}
@@ -336,7 +336,7 @@ function handle_admin_action() {
336336
break;
337337
case 'update_options':
338338
$options = $this->get_options();
339-
foreach( $options as $key => $value ) {
339+
foreach ( $options as $key => $value ) {
340340
if ( isset( $_REQUEST[$key] ) )
341341
$options[$key] = sanitize_text_field( $_REQUEST[$key] );
342342
}
@@ -805,7 +805,7 @@ function register_ad_codes( $ad_codes = array() ) {
805805
/**
806806
* 'enable_ui_mapping' is a special argument which means this ad tag can be
807807
* mapped with ad codes through the admin interface. If that's the case, we
808-
* want to make sure those ad codes are only registered with the tag.
808+
* want to make sure those ad codes are only registered with the tag.
809809
*/
810810
if ( isset( $default_tag['enable_ui_mapping'] ) && $default_tag['tag'] != $ad_code['url_vars']['tag'] )
811811
continue;

common/lib/acm-wp-list-table.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ function column_id( $item ) {
228228
$ad_code_arg = array_shift( wp_filter_object_list( $ad_code_args, array( 'key' => $slug ) ) );
229229
if ( isset( $ad_code_arg['type'] ) && 'select' == $ad_code_arg['type'] ) {
230230
$output .= '<select name="' . esc_attr( $column_id ) . '">';
231-
foreach( $ad_code_arg['options'] as $key => $label ) {
231+
foreach ( $ad_code_arg['options'] as $key => $label ) {
232232
$output .= '<option value="' . esc_attr( $key ) . '" ' . selected( $value, $key, false ) . '>' . esc_attr( $label ) . '</option>';
233233
}
234234
$output .= '</select>';
@@ -347,4 +347,4 @@ function inline_edit() {
347347
<?php
348348
}
349349

350-
}
350+
}

0 commit comments

Comments
 (0)