includes/admin/Import_Form.php
Expected 0 spaces before closing bracket; 1 found Open
Open
<?php foreach ( $reader as $row ) { ?>
- Create a ticketCreate a ticket
- Exclude checks
Space found after opening bracket of FOREACH loop Open
Open
foreach ( $reader as $key => $value ) {
- Create a ticketCreate a ticket
- Exclude checks
Expected 0 spaces between argument "$file" and closing bracket; 1 found Open
Open
public function prepare_data( $file ) {
- Create a ticketCreate a ticket
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
Open
switch ( $submit_value ) :
- Create a ticketCreate a ticket
- Exclude checks
Opening brace of a class must be on the line after the definition Open
Open
class Import_Form extends Form {
- Create a ticketCreate a ticket
- Exclude checks
Method name "Import_Form::results_table" is not in camel caps format Open
Open
public function results_table( $reader ) {
- Create a ticketCreate a ticket
- Exclude checks
Method name "Import_Form::render_form" is not in camel caps format Open
Open
public function render_form() {
- Create a ticketCreate a ticket
- Exclude checks
Space found after opening bracket of FOREACH loop Open
Open
<?php foreach ( $reader as $row ) { ?>
- Create a ticketCreate a ticket
- Exclude checks
Expected 0 spaces between opening bracket and argument "$reader"; 1 found Open
Open
public function setup_data( $reader ) {
- Create a ticketCreate a ticket
- Exclude checks
Expected 0 spaces between argument "$reader" and closing bracket; 1 found Open
Open
public function setup_data( $reader ) {
- Create a ticketCreate a ticket
- Exclude checks
Expected 0 spaces between argument "$text" and closing bracket; 1 found Open
Open
public function return_button( $text ) {
- Create a ticketCreate a ticket
- Exclude checks
Expected 0 spaces between opening bracket and argument "$file"; 1 found Open
Open
public function prepare_data( $file ) {
- Create a ticketCreate a ticket
- Exclude checks
Expected 0 spaces between argument "$position" and closing bracket; 1 found Open
Open
public function add_position( $position ) {
- Create a ticketCreate a ticket
- Exclude checks
Method name "Import_Form::import_data" is not in camel caps format Open
Open
public function import_data() {
- Create a ticketCreate a ticket
- Exclude checks
Space found before closing bracket of FOREACH loop Open
Open
foreach ( $data as $position ) {
- Create a ticketCreate a ticket
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
Open
foreach ( $reader as $key => $value ) {
- Create a ticketCreate a ticket
- Exclude checks
Expected 0 spaces between opening bracket and argument "$position"; 1 found Open
Open
public function add_position( $position ) {
- Create a ticketCreate a ticket
- Exclude checks
Method name "Import_Form::import_form" is not in camel caps format Open
Open
public function import_form() {
- Create a ticketCreate a ticket
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
Open
foreach ( $data as $position ) {
- Create a ticketCreate a ticket
- Exclude checks
Expected 0 spaces between opening bracket and argument "$text"; 1 found Open
Open
public function return_button( $text ) {
- Create a ticketCreate a ticket
- Exclude checks
DEFAULT statements must be defined using a colon Open
Open
default;
- Create a ticketCreate a ticket
- Exclude checks
Expected 0 spaces between argument "$args" and closing bracket; 1 found Open
Open
public function file( $args ) {
- Create a ticketCreate a ticket
- Exclude checks
Method name "Import_Form::prepare_data" is not in camel caps format Open
Open
public function prepare_data( $file ) {
- Create a ticketCreate a ticket
- Exclude checks
Expected 0 spaces between argument "$reader" and closing bracket; 1 found Open
Open
public function results_table( $reader ) {
- Create a ticketCreate a ticket
- Exclude checks
Space found after opening bracket of FOREACH loop Open
Open
foreach ( $data as $position ) {
- Create a ticketCreate a ticket
- Exclude checks
Space found before closing bracket of FOREACH loop Open
Open
foreach ( $reader as $key => $value ) {
- Create a ticketCreate a ticket
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
Open
if ( array_key_exists ( $position['#Code'], $new_positions ) ) {
- Create a ticketCreate a ticket
- Exclude checks
Method name "Import_Form::setup_data" is not in camel caps format Open
Open
public function setup_data( $reader ) {
- Create a ticketCreate a ticket
- Exclude checks
Expected 0 spaces between opening bracket and argument "$args"; 1 found Open
Open
public function file( $args ) {
- Create a ticketCreate a ticket
- Exclude checks
Expected 0 spaces between opening bracket and argument "$reader"; 1 found Open
Open
public function results_table( $reader ) {
- Create a ticketCreate a ticket
- Exclude checks
Method name "Import_Form::return_button" is not in camel caps format Open
Open
public function return_button( $text ) {
- Create a ticketCreate a ticket
- Exclude checks
Space found before closing bracket of FOREACH loop Open
Open
<?php foreach ( $reader as $row ) { ?>
- Create a ticketCreate a ticket
- Exclude checks
Method name "Import_Form::add_position" is not in camel caps format Open
Open
public function add_position( $position ) {
- Create a ticketCreate a ticket
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
echo '<h3>Choose the positions to import</h3>';
- Create a ticketCreate a ticket
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$reader = new CsvReader($file);
- Create a ticketCreate a ticket
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
<table>
- Create a ticketCreate a ticket
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
<tbody>
- Create a ticketCreate a ticket
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
<td><?php _e( $row['Sizes'] ); ?></td>
- Create a ticketCreate a ticket
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
</tbody>
- Create a ticketCreate a ticket
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$file = new \SplFileObject( $file );
- Create a ticketCreate a ticket
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
/**
- Create a ticketCreate a ticket
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
<thead>
- Create a ticketCreate a ticket
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
<tr>
- Create a ticketCreate a ticket
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
<th align="center">Code</th>
- Create a ticketCreate a ticket
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
</table>
- Create a ticketCreate a ticket
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
// Nested args....
- Create a ticketCreate a ticket
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
public $csv_importer;
- Create a ticketCreate a ticket
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
<?php
- Create a ticketCreate a ticket
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
case 'Import CSV':
- Create a ticketCreate a ticket
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
default;
- Create a ticketCreate a ticket
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
echo '</form>';
- Create a ticketCreate a ticket
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
* @param $reader
- Create a ticketCreate a ticket
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
<th align="center">Select</th>
- Create a ticketCreate a ticket
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
// We're importing a CSV
- Create a ticketCreate a ticket
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
break;
- Create a ticketCreate a ticket
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Create a ticketCreate a ticket
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
<td><?php _e( $row['#Code']); ?></td>
- Create a ticketCreate a ticket
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
?><input id="<?php _e( $id, 'dfp-ads' ); ?>" name="<?php _e( $id, 'dfp-ads' ); ?>" type="file" /><?php
- Create a ticketCreate a ticket
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$reader->setHeaderRowNumber(0);
- Create a ticketCreate a ticket
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
</tr>
- Create a ticketCreate a ticket
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$this->button( $text );
- Create a ticketCreate a ticket
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$id = $this->options_str . '[' . $args['id'] . ']';
- Create a ticketCreate a ticket
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
// Display Import Form
- Create a ticketCreate a ticket
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
?>
- Create a ticketCreate a ticket
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
echo '<form id="return" name="return" method="post">';
- Create a ticketCreate a ticket
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$submit_value = ( DFP_Ads_Globals::post_var_exists( 'submit' ) ? DFP_Ads_Globals::get_post_var('submit') : '' );
- Create a ticketCreate a ticket
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
switch ( $submit_value ) :
- Create a ticketCreate a ticket
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
</form>
- Create a ticketCreate a ticket
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
echo '<form id="CSVImport" name="CSVImport" method="post" enctype="multipart/form-data">';
- Create a ticketCreate a ticket
- Exclude checks
Line exceeds 120 characters; contains 184 characters Open
Open
<td align="center"><input type="checkbox" id="code[<?php _e( $row['#Code']); ?>]" name="code[<?php _e( $row['#Code']); ?>]" value="<?php _e( $row['#Code']); ?>" /></td>
- Create a ticketCreate a ticket
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
public function import_form() {
- Create a ticketCreate a ticket
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
<form id="CSVImport" name="CSVImport" method="post" enctype="multipart/form-data">
- Create a ticketCreate a ticket
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$this->results_table( $reader );
- Create a ticketCreate a ticket
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$this->button( 'Confirm Import', true );
- Create a ticketCreate a ticket
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Create a ticketCreate a ticket
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
echo '</form>';
- Create a ticketCreate a ticket
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Create a ticketCreate a ticket
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
<?php
- Create a ticketCreate a ticket
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
<th align="center">Name</th>
- Create a ticketCreate a ticket
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
<tr>
- Create a ticketCreate a ticket
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$this->prepare_data( $_FILES['DFP_Ads_Import']['tmp_name']['import_csv'] );
- Create a ticketCreate a ticket
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
public function return_button( $text ) {
- Create a ticketCreate a ticket
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
echo '<br />';
- Create a ticketCreate a ticket
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Create a ticketCreate a ticket
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
<?php foreach ( $reader as $row ) { ?>
- Create a ticketCreate a ticket
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$args = $args[0];
- Create a ticketCreate a ticket
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
?>
- Create a ticketCreate a ticket
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
public function file( $args ) {
- Create a ticketCreate a ticket
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
endswitch;
- Create a ticketCreate a ticket
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
<th align="center">Sizes</th>
- Create a ticketCreate a ticket
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
</thead>
- Create a ticketCreate a ticket
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
<?php } ?>
- Create a ticketCreate a ticket
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
<?php
- Create a ticketCreate a ticket
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
<td align="center"><input type="checkbox" id="code[<?php _e( $row['#Code']); ?>]" name="code[<?php _e( $row['#Code']); ?>]" value="<?php _e( $row['#Code']); ?>" /></td>
- Create a ticketCreate a ticket
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
<td><?php _e( $row['Name'] ); ?></td>
- Create a ticketCreate a ticket
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
// Field values
- Create a ticketCreate a ticket
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
$this->import_form();
- Create a ticketCreate a ticket
- Exclude checks
Line exceeds 120 characters; contains 151 characters Open
Open
<a href="http://www.chriswgerber.com/dfp-ads/import-from-csv" target="_blank">www.chriswgerber.com/dfp-ads/import-from-csv</a>.</p>
- Create a ticketCreate a ticket
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
}
- Create a ticketCreate a ticket
- Exclude checks
Line exceeds 120 characters; contains 132 characters Open
Open
$submit_value = ( DFP_Ads_Globals::post_var_exists( 'submit' ) ? DFP_Ads_Globals::get_post_var('submit') : '' );
- Create a ticketCreate a ticket
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
public function prepare_data( $file ) {
- Create a ticketCreate a ticket
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
public function results_table( $reader ) {
- Create a ticketCreate a ticket
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
?>
- Create a ticketCreate a ticket
- Exclude checks
Spaces must be used to indent lines; tabs are not allowed Open
Open
</tr>
- Create a ticketCreate a ticket
- Exclude checks
Space after opening parenthesis of function call prohibited Open
Open
<?php $this->button( 'Import CSV' ); ?>
- Create a ticketCreate a ticket
- Exclude checks
Opening brace should be on a new line Open
Open
public function prepare_data( $file ) {
- Create a ticketCreate a ticket
- Exclude checks
Space after opening parenthesis of function call prohibited Open
Open
$data = get_transient( 'import_data' );
- Create a ticketCreate a ticket
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
Open
$ad_post_id = wp_insert_post( $post );
- Create a ticketCreate a ticket
- Exclude checks
Expected 0 spaces after opening bracket; 1 found Open
Open
switch ( $submit_value ) :
- Create a ticketCreate a ticket
- Exclude checks
Space after opening parenthesis of function call prohibited Open
Open
<?php settings_fields( $this->settings_fields ); ?>
- Create a ticketCreate a ticket
- Exclude checks
Space after opening parenthesis of function call prohibited Open
Open
$this->setup_data( $reader );
- Create a ticketCreate a ticket
- Exclude checks
Space after opening parenthesis of function call prohibited Open
Open
$this->button( 'Confirm Import', true );
- Create a ticketCreate a ticket
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
Open
$this->button( 'Confirm Import', true );
- Create a ticketCreate a ticket
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
Open
<td><?php _e( $row['Sizes'] ); ?></td>
- Create a ticketCreate a ticket
- Exclude checks
Space after opening parenthesis of function call prohibited Open
Open
$this->button( $text );
- Create a ticketCreate a ticket
- Exclude checks
Space after opening parenthesis of function call prohibited Open
Open
update_post_meta( $ad_post_id, 'dfp_ad_code', $position['#Code'] );
- Create a ticketCreate a ticket
- Exclude checks
Space after opening parenthesis of function call prohibited Open
Open
$submit_value = ( DFP_Ads_Globals::post_var_exists( 'submit' ) ? DFP_Ads_Globals::get_post_var('submit') : '' );
- Create a ticketCreate a ticket
- Exclude checks
Space after opening parenthesis of function call prohibited Open
Open
<?php do_settings_sections( $this->settings_sections ); ?>
- Create a ticketCreate a ticket
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
Open
<?php do_settings_sections( $this->settings_sections ); ?>
- Create a ticketCreate a ticket
- Exclude checks
Space after opening parenthesis of function call prohibited Open
Open
<td><?php _e( $row['#Code']); ?></td>
- Create a ticketCreate a ticket
- Exclude checks
Space after opening parenthesis of function call prohibited Open
Open
<td><?php _e( $row['Name'] ); ?></td>
- Create a ticketCreate a ticket
- Exclude checks
Space after opening parenthesis of function call prohibited Open
Open
<td><?php _e( $row['Sizes'] ); ?></td>
- Create a ticketCreate a ticket
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
Open
$new_positions = DFP_Ads_Globals::filter_post_var( 'code', FILTER_DEFAULT, FILTER_REQUIRE_ARRAY );
- Create a ticketCreate a ticket
- Exclude checks
Space after opening parenthesis of function call prohibited Open
Open
<td align="center"><input type="checkbox" id="code[<?php _e( $row['#Code']); ?>]" name="code[<?php _e( $row['#Code']); ?>]" value="<?php _e( $row['#Code']); ?>" /></td>
- Create a ticketCreate a ticket
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
Open
if ( array_key_exists ( $position['#Code'], $new_positions ) ) {
- Create a ticketCreate a ticket
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
Open
$data = get_transient( 'import_data' );
- Create a ticketCreate a ticket
- Exclude checks
Space after opening parenthesis of function call prohibited Open
Open
?><input id="<?php _e( $id, 'dfp-ads' ); ?>" name="<?php _e( $id, 'dfp-ads' ); ?>" type="file" /><?php
- Create a ticketCreate a ticket
- Exclude checks
Space after opening parenthesis of function call prohibited Open
Open
update_post_meta( $ad_post_id, 'dfp_position_sizes', $position['Sizes'] );
- Create a ticketCreate a ticket
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
Open
?><input id="<?php _e( $id, 'dfp-ads' ); ?>" name="<?php _e( $id, 'dfp-ads' ); ?>" type="file" /><?php
- Create a ticketCreate a ticket
- Exclude checks
Space after opening parenthesis of function call prohibited Open
Open
update_post_meta( $ad_post_id, 'dfp_position_name', $position['Name'] );
- Create a ticketCreate a ticket
- Exclude checks
Space after opening parenthesis of function call prohibited Open
Open
$this->results_table( $reader );
- Create a ticketCreate a ticket
- Exclude checks
Expected 0 spaces after opening bracket; 1 found Open
Open
<?php foreach ( $reader as $row ) { ?>
- Create a ticketCreate a ticket
- Exclude checks
Space after opening parenthesis of function call prohibited Open
Open
$ad_post_id = wp_insert_post( $post );
- Create a ticketCreate a ticket
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
Open
update_post_meta( $ad_post_id, 'dfp_position_name', $position['Name'] );
- Create a ticketCreate a ticket
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
Open
?><input id="<?php _e( $id, 'dfp-ads' ); ?>" name="<?php _e( $id, 'dfp-ads' ); ?>" type="file" /><?php
- Create a ticketCreate a ticket
- Exclude checks
Opening brace should be on a new line Open
Open
public function import_form() {
- Create a ticketCreate a ticket
- Exclude checks
Space after opening parenthesis of function call prohibited Open
Open
$file = new \SplFileObject( $file );
- Create a ticketCreate a ticket
- Exclude checks
Space after opening parenthesis of function call prohibited Open
Open
set_transient( 'import_data', $transient, 30 );
- Create a ticketCreate a ticket
- Exclude checks
Opening brace should be on a new line Open
Open
public function add_position( $position ) {
- Create a ticketCreate a ticket
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
Open
update_post_meta( $ad_post_id, 'dfp_position_sizes', $position['Sizes'] );
- Create a ticketCreate a ticket
- Exclude checks
Space after opening parenthesis of function call prohibited Open
Open
?><input id="<?php _e( $id, 'dfp-ads' ); ?>" name="<?php _e( $id, 'dfp-ads' ); ?>" type="file" /><?php
- Create a ticketCreate a ticket
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
Open
$file = new \SplFileObject( $file );
- Create a ticketCreate a ticket
- Exclude checks
Opening brace should be on a new line Open
Open
public function results_table( $reader ) {
- Create a ticketCreate a ticket
- Exclude checks
Space after opening parenthesis of function call prohibited Open
Open
<td align="center"><input type="checkbox" id="code[<?php _e( $row['#Code']); ?>]" name="code[<?php _e( $row['#Code']); ?>]" value="<?php _e( $row['#Code']); ?>" /></td>
- Create a ticketCreate a ticket
- Exclude checks
Opening brace should be on a new line Open
Open
public function setup_data( $reader ) {
- Create a ticketCreate a ticket
- Exclude checks
Space after opening parenthesis of function call prohibited Open
Open
$this->prepare_data( $_FILES['DFP_Ads_Import']['tmp_name']['import_csv'] );
- Create a ticketCreate a ticket
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
Open
<?php settings_fields( $this->settings_fields ); ?>
- Create a ticketCreate a ticket
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
Open
<td><?php _e( $row['Name'] ); ?></td>
- Create a ticketCreate a ticket
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
Open
$this->button( $text );
- Create a ticketCreate a ticket
- Exclude checks
Expected 0 spaces after opening bracket; 1 found Open
Open
foreach ( $reader as $key => $value ) {
- Create a ticketCreate a ticket
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
Open
<?php $this->button( 'Import CSV' ); ?>
- Create a ticketCreate a ticket
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
Open
$this->results_table( $reader );
- Create a ticketCreate a ticket
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
Open
$this->setup_data( $reader );
- Create a ticketCreate a ticket
- Exclude checks
Space after opening parenthesis of function call prohibited Open
Open
if ( array_key_exists ( $position['#Code'], $new_positions ) ) {
- Create a ticketCreate a ticket
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
Open
$submit_value = ( DFP_Ads_Globals::post_var_exists( 'submit' ) ? DFP_Ads_Globals::get_post_var('submit') : '' );
- Create a ticketCreate a ticket
- Exclude checks
Space after opening parenthesis of function call prohibited Open
Open
<td align="center"><input type="checkbox" id="code[<?php _e( $row['#Code']); ?>]" name="code[<?php _e( $row['#Code']); ?>]" value="<?php _e( $row['#Code']); ?>" /></td>
- Create a ticketCreate a ticket
- Exclude checks
Opening brace should be on a new line Open
Open
public function return_button( $text ) {
- Create a ticketCreate a ticket
- Exclude checks
Class name "Import_Form" is not in camel caps format Open
Open
class Import_Form extends Form {
- Create a ticketCreate a ticket
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
Open
$this->prepare_data( $_FILES['DFP_Ads_Import']['tmp_name']['import_csv'] );
- Create a ticketCreate a ticket
- Exclude checks
Opening brace should be on a new line Open
Open
public function import_data() {
- Create a ticketCreate a ticket
- Exclude checks
Expected 0 spaces after opening bracket; 1 found Open
Open
foreach ( $data as $position ) {
- Create a ticketCreate a ticket
- Exclude checks
Space after opening parenthesis of function call prohibited Open
Open
$this->add_position( $position );
- Create a ticketCreate a ticket
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
Open
$this->add_position( $position );
- Create a ticketCreate a ticket
- Exclude checks
Space before opening parenthesis of function call prohibited Open
Open
if ( array_key_exists ( $position['#Code'], $new_positions ) ) {
- Create a ticketCreate a ticket
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
Open
update_post_meta( $ad_post_id, 'dfp_ad_code', $position['#Code'] );
- Create a ticketCreate a ticket
- Exclude checks
Opening brace should be on a new line Open
Open
public function file( $args ) {
- Create a ticketCreate a ticket
- Exclude checks
Opening brace should be on a new line Open
Open
public function render_form() {
- Create a ticketCreate a ticket
- Exclude checks
Space after opening parenthesis of function call prohibited Open
Open
$new_positions = DFP_Ads_Globals::filter_post_var( 'code', FILTER_DEFAULT, FILTER_REQUIRE_ARRAY );
- Create a ticketCreate a ticket
- Exclude checks
Expected 0 spaces after opening bracket; 1 found Open
Open
if ( array_key_exists ( $position['#Code'], $new_positions ) ) {
- Create a ticketCreate a ticket
- Exclude checks
Expected 0 spaces before closing bracket; 1 found Open
Open
set_transient( 'import_data', $transient, 30 );
- Create a ticketCreate a ticket
- Exclude checks